Why are network interfaces not ordered correctly?
Issue
- Why are network interfaces not ordered correctly?
- In previous versions of Red Hat Enterprise Linux,
ifindexvalues were in order withethXnames:
# cd /sys/class/net
# cat eth0/ifindex eth1/ifindex eth2/ifindex eth3/ifindex
2
3
4
5
#
- In Red Hat Enterprise Linux 7 it is different:
# cd /sys/class/net
# cat eth0/ifindex eth1/ifindex eth2/ifindex eth3/ifindex
4
5
2
3
#
- The
ip addrcommand display does not display the NIC in names order, butifconfigdoes. Is it possible to have this ordered alphabetically? What is this ordered by?
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- Network interfaces
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
