A. It is possible to bind the MAC address to the network interfaces in configuration files. This will ensure that eth0,eth1 are assigned the way you want it.
Open each interfaces configuration file:
- /etc/sysconfig/network-scripts/ifcfg-eth0 - eth0 configuration file
- /etc/sysconfig/network-scripts/ifcfg-eth1 - eth1 configuration file
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Add the following line:
HWADDR=<MAC address of the network interface>Here is my sample config file:
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)Save and close the file. Update /etc/sysconfig/network-scripts/ifcfg-eth1 file with correct HWADDR entry. Once done restart networking or just reboot the server:
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:19:B1:2A:BA:B8
IPADDR=10.10.11.24
NETMASK=255.255.255.192
ONBOOT=yes
# reboot
No comments:
Post a Comment