add the following
auto eth0:0
iface eth0:0 inet static
address xx.xx.xx.xx
gateway xx.xx.xx.xx
netmask xx.xx.xx.xx
network xx.xx.xx.xx
broadcast xx.xx.xx.xx
example,
auto eth0:0
iface eth0:0 inet static
address 192.168.0.100
gateway 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
AND, finally restart networking service
/etc/init.d/networking restart
No comments:
Post a Comment