Configure ip address using ifconfig

I created ifcfg-eth0:0

ifconfig eth0:1 ip netmask 255.255.255.0
ifconfig eth0:2 ip2 netmask 255.255.255.0
ifconfig eth0:4 ip3 netmask 255.255.255.0
etc
Inside I placed:
if thats your netmask btw
DEVICE=eth0
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
HWADDR=00:13:72:FC:3C:36
IPADDR=THE IP
NETMASK=255.255.255.0
NETWORK=xxx.xxx.xxx.0
ONBOOT=yes
TYPE=Ethernet
ok its in the same subnet right?
yes
so cp ifcfg-eth0 ifcfg-eth0:1
edit that change the device to eth0:1 and ip
if you have another
:2
and so on
Thank you, thats all i need to know :)

 Business Web Hosting | Business Hosting

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Leave a Comment

You must be logged in to post a comment.


Blog Tags:

Similar posts: