/etc/sysconfig/network-scripts/ifcfg-eth0
where 0 can be any other number, accordingly.
In order to properly add a network interface, besides of putting it into the slot (virtual or physical), you need to add and edit the same file as above. Example:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.166.255
HWADDR=00:21:F6:00:00:10
IPADDR=192.168.166.12
NETMASK=255.255.255.0
NETWORK=192.168.166.0
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.166.1
After you edit the text, with the right parameters, you can save it and:
/etc/init.d/network/restart
Enjoy!
Niciun comentariu:
Trimiteți un comentariu