- 7 -
If you wish to set an interface for static IP addressing, then use the
following configuration. Each interface must be configured with separate
entries in the network/interfaces file; LAN1 corresponds to eth0, LAN 2
corresponds to eth1, and so forth for the remaining interfaces.
# The loopback network interface
auto lo
iface lo inet loopback
# The first LAN interface, LAN 1
auto eth0
iface eth0 inet static
address 192.168.3.127
netmask 255.255.255.0
broadcast 192.168.3.255
# The second LAN interface, LAN 2
auto eth1
iface eth1 inet static
address 192.168.4.127
netmask 255.255.255.0
broadcast 192.168.4.255
Exit VI by typing:
:wq
After the interfaces file has been configured, use the following commands
to reinitialize the network interfaces and activate the new settings
immediately:
#sync; ifup –a
Win7 users should follow these steps:
Step 1: Go to Start
Control Panel
Network and Internet
Network Connections.
Step 2: From the Local Area Connection Properties screen click
Internet Protocol (TCP/IP) and then select Properties.
Step 3: Click OK after inputting the preferred IP address and netmask.