Sorry for my English…
I want to change the interface name, what I don’t know sure the steps…
First I should know my interface name and mac from it,
ip a
Seconds, down my NetworkManager,
sudo ip link set dev enp31s0 down
rename the device name, I’ll change to hallo0.
My question, what is the difference between used,
1-
sudo gedit /etc/network/interfaces
and write on this file
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug hallo0
iface hallo0 inet dhcp
2-
With udev
sudo /etc/udev/rules.d/10-network.rules
and write on this file,
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="aa:bb:cc:dd:ee:ff", KERNEL=="eth*", NAME="hallo0="
What from the Two possibilities should use?
Can please someone help with this question, Thanks!
My problem was when to tried this steps the interface name not to change.
I found the problem because of it not change…
I did Two mistakes;
1 - I forget to link the file,
sudo /etc/udev/rules.d/70-persistent-net.rules
I does it with
sudo ln -s /dev/null /etc/udev/rules.d/70-net-setup-link.rules
2 - Since Ubuntu 16.04 and Linux Mint 17 on the file,
/etc/udev/rules.d/70-persistent-net.rules
where i write,
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="aa:bb:cc:dd:ee:ff", KERNEL=="eth*", NAME="hallo0="
I had to write without the word KERNEL=="eth"*, so, I should to write,
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="aa:bb:cc:dd:ee:ff", NAME="hallo0="
As here to say.
The rest of the steps from my question is gut.
1 Like
@bbwd345 It is nice that you were able to fix your own problem. Knowing the correct syntax to use in a configuration file can be tricky at times. By posting the solution to the problem others can learn how to do the same.
Thanks!, I every time when ask a Question and find the solution or someone give me, I write it. First because can help another people with same problem, Second, some time my solution has some mistake and maybe another people can say to me, where the mistake is…
2 Likes
Lol, nice story i had never had that