Edit file etc/network/interfaces, you can use vi or pico
# pico /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0
network 192.168.1.0 broadcast 192.168.1.255
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255
Save and restart/star at network:# /etc/init.d/networking restart
Look at your setting ethernet card eth0, eth1# ifconfig
so
0 comments:
Post a Comment