i am using centos 7. I am typing the command
ip addr show eth0
but its reply
Device "eth0" does not exist.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
In CentOS, network interfaces are named differently. So they aren't called
eth1, but rather have names like
ip addr to see how these interfaces are named on your system.
These names are defined in
/etc/sysconfig/network-scripts/ifcfg-<iface>. You can change their names if you really wanted to, but I don't recommend it.
RHEL / CentOS 7.x uses consistent network device naming. And it might also be called predictable network interface names.
in any case the best way I have found to get eth naming back is to
You do not need to mess with anything under /etc/sysconfig/.