Source address when IPADDR2 is configured
Issue
- When 2 or more IP addresses are configured on one NIC using "IPADDRX", which one is chosen as a source address?
- Here is an example for such a configuration.
/etc/sysconfig/network-scripts/ifcfg-eth0
---
NAME=eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR="192.168.0.11"
PREFIX="24"
GATEWAY="192.168.0.1"
IPADDR2="192.168.0.12"
PREFIX2="24"
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.