|
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
|