Wednesday, 27 August 2008

Configuring Static IP address for your network card

sudo vi /etc/network/interfaces

The primary network interface

auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x

If u need 2nd one

auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

No comments:

Post a Comment