multiple ips on one interface in linux
Written By smart|
19 June 2009|
No Comment
Here are the step how to configure two ipaddress to one interface.
copy the physical interface startup config file:
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
Modify the /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:13:D3:A0:B4:xx
IPADDR=192.168.14.xx
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
MACADDR=00:13:D3:A0:B4:xx
After above step done run below command
admin@smartproteam $ ifup eth0:0











Leave your response!