Source address when IPADDR2 is configured

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.