editing ifcfg-eth0
I would like to add another ip address to my nic. how do i format the ifcfg-eth0
file in /etc/sysconfig/network-scripts to do this. And is there anything else i would need to do? thanks |
I just copy the original settings and make the changes below. For example.....
Don't forget to restart networking after making the changes. # cat /etc/sysconfig/networking/devices/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=none NETMASK=255.255.255.0 IPADDR=192.168.0.1 USERCTL=no PEERDNS=yes TYPE=Ethernet IPV6INIT=no DEVICE=eth0:0 ONBOOT=yes BOOTPROTO=none NETMASK=255.255.255.0 IPADDR=10.0.0.1 USERCTL=no PEERDNS=yes TYPE=Ethernet IPV6INIT=no |
thanks
what is the best way to restart networking? |
# /etc/init.d/network restart
or on my Fedora box, I use # service network restart |
thanks
i will try your suggestions |
All times are GMT -5. The time now is 01:47 PM. |