Knowledgebase
Knowledgebase
Add Extra IP's
Posted by on 07 May 2013 01:31 AM

cd /etc/sysconfig/network-scripts
#Create new file:
nano ifcfg-eth0:1 (or ifcfg-eth1:1 if eth1 is live nic)

#Place the following lines into the new file for 236 network
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=66.171.23*.**
NETMASK=255.255.255.0
GATEWAY=66.171.236.1
ONBOOT=yes

#Place the following lines into the new file for 204.93.61 network
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=204.93.61.**
NETMASK=255.255.255.0
GATEWAY=204.93.61.1
ONBOOT=yes

#Place the following lines into the new file for 238 network
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=66.171.23*.**
NETMASK=255.255.254.0
GATEWAY=66.171.238.1
ONBOOT=yes


#Place the following lines into the new file for SEWO network
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=98.124.17*.**
NETMASK=255.255.254.0
GATEWAY=98.124.176.1
ONBOOT=yes


#When adding more than 1 IP, create another file named: ifcfg-eth0:2,  ifcfg-eth0:3, etc etc
Change the top line to: DEVICE=eth0:2, and set new ip.

#Once complete, run the following command:
ifup ifcfg-eth0:1 (ifup ifcfg-eth0:1, ifup ifcfg-eth0:2) 

#Unbind IP
ifconfig eth0:1 down 

(269 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: