Difference between revisions of "Configure LAN"
(→Network interfaces: no need to specify broadcast) |
m (→DHCP Server) |
||
Line 24: | Line 24: | ||
== DHCP Server == | == DHCP Server == | ||
− | A DHCP server should be installed to be authoritative on the internal (192.168.1) subnet, and should specify the gateway and DNS server as itself. First install it with '''apt-get install dhcp3-server''', then add the following configuration to ''/etc/dhcp/dhcpd.conf'': | + | A DHCP server should be installed to be authoritative on the internal (192.168.1) subnet, and should specify the gateway and DNS server as itself (it's also useful to add itself as WINS server and default gateway). First install it with '''apt-get install dhcp3-server''', then add the following configuration to ''/etc/dhcp/dhcpd.conf'': |
{{code|<pre> | {{code|<pre> | ||
ddns-update-style none; | ddns-update-style none; | ||
+ | |||
option domain-name-servers 192.168.1.1; | option domain-name-servers 192.168.1.1; | ||
+ | option netbios-name-servers 192.168.1.1; | ||
+ | option routers 192.168.1.1; | ||
+ | |||
default-lease-time 600; | default-lease-time 600; | ||
max-lease-time 7200; | max-lease-time 7200; |
Revision as of 10:44, 24 May 2009
Configure LAN Organic Design procedure |
Network interfaces
Typically when running on a LAN we'll have two LAN cards on the server with the following /etc/network/interfaces:
Firewall
The 192.168.0 subnet is on eth0 and connects to the Internet router (which should have no wireless on it), and the 192.168.1 subnet is on eth1 and connects to the internal LAN hub. These network interfaces must then be configured as a firewall which can be done by copying the firewall script to /etc/network/if-up.d/00-firewall so that it executes whenever the networking starts up. Don't forget to restart the networking after making changes with /etc/init.d/networking restart.
DHCP Server
A DHCP server should be installed to be authoritative on the internal (192.168.1) subnet, and should specify the gateway and DNS server as itself (it's also useful to add itself as WINS server and default gateway). First install it with apt-get install dhcp3-server, then add the following configuration to /etc/dhcp/dhcpd.conf: