OK, forget my brief lapse of stupidity earlier. :I just needed someone to remind me I already knew how to do this. :P
Example:
ifconfig eth0:0 192.168.10.1 netmask 255.255.255.0 up
route add -net 192.168.10.0 netmask 255.255.255.0 eth0:0
If you want it permanent, just copy your current /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0:0 and edit the setting as required.
Jim H


Reply With Quote
I just needed someone to remind me I already knew how to do this. :P
That's great. Thanks! The sample you gave have the IP addresses in the same subnet. Is it a must? Can they be any different addresses?

Bookmarks