Why are network interfaces not ordered correctly?
Issue
- Why are network interfaces not ordered correctly?
- In previous versions of Red Hat Enterprise Linux,
ifindex
values were in order withethX
names:
# 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 addr
command display does not display the NIC in names order, butifconfig
does. 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, tools, and much more.