Bonding Host name to eth3
I have RHEL7 server with 4 nics. eth1&2 are bonded for non-routed ip (x.x.x.b).. eth3 is a single port that should be the main ip interface and routable (x.x.x.a). When we reboot the server the DNS entry gets changed from x.x.x.a to x.x.x.b.. Is there a way to change or force the bonding order?
TIA!
Responses
You can always setup DNS entries per interface like so:
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=manual
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
DNS1=xxx.xxx.xxx.b
DNS2=xxx.xxx.xxx.bbb
/etc/sysconfig/network-scripts/ifcfg-eth3
DEVICE=bond0
BOOTPROTO=manual
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
DNS1=xxx.xxx.xxx.a
DNS2=xxx.xxx.xxx.aaa
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
