GOOGLE Search

Google
 

Tuesday, February 12, 2008

Linux Tip No.15: IP Address Aliasing - Temporary

Network IP aliasing

ifconfig eth0 XXX.XXX.XXX.XXX netmask 255.255.255.0 broadcast XXX.XXX.XXX.255

route add -host XXX.XXX.XXX.XXX dev eth0

ifconfig eth0:0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
ifconfig eth0:1 192.168.10.14 netmask 255.255.255.0 broadcast 192.168.10.255

route add -host 192.168.10.12 dev eth0
route add -host 192.168.10.14 dev eth0

No comments: