different name for ethernet interface
5 posts
• Page 1 of 1
different name for ethernet interface
My machine contains 2 NICs named as 'eth0' and 'eth1'. But every time when my system reboots it shows a different name for eth1 as eth5 or eth8 and so on. When I try to restart the network service it shows as no such device.But the name remains the same in the files.Can any one help?
- rani
- Posts: 0
- Joined: Tue Oct 28, 2014 5:24 pm
Re: different name for ethernet interface
Try to reconfigure the network settings. After configuring the network restart the service and enable the service to ON, so that it does not change during reboot. See if this works.
- SIbinPhilip
- Posts: 0
- Joined: Tue Nov 25, 2014 12:01 pm
Re: different name for ethernet interface
Try to reconfigure the network settings. After configuring it, restart the service and enable the service, so that it does not change during reboot. See if this works.
- SIbinPhilip
- Posts: 0
- Joined: Tue Nov 25, 2014 12:01 pm
Re: different name for ethernet interface
You can change the interface name once your machine boots up.If you can check the /sys/class/net directory, you can see the interface names and you can change it using the following command.
For an eg: if your interface appeared as eth5 instead of eth1, then to change it to eth1
#ip link set dev eth5 name eth1
Now restart your network.
For an eg: if your interface appeared as eth5 instead of eth1, then to change it to eth1
#ip link set dev eth5 name eth1
Now restart your network.
- m4tomson
- Posts: 0
- Joined: Tue Oct 28, 2014 5:15 pm
5 posts
• Page 1 of 1