You are not logged in.

#1 2013-03-27 09:14:21

r4ptor
Member
Registered: 2012-12-30
Posts: 46

network forgetting changes after reboot

Hi  guys,

having a little newbie troubles here with my network interfaces.

I managed to install the wifi driver and get my wired connection to work

[peter@antartica ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether 00:25:bc:de:dc:42 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
    link/ether 00:25:00:4c:e2:96 brd ff:ff:ff:ff:ff:ff

Next, i renamed enp0s10 to net01 and wlp3s0 to wifi01 with
# ifrename -i enp0s10 -n net01

Then set net01 to dhcp with
# dhcpcd net01

Ok fine, it get's the ip address, I'm online, yay!

BUT: When i reboot, net01 is again enp0s10, it's down and i have to do the procedure to set it up with ip link, gather dhcp and rename it all over again.

Completly the same thing for wlp3s0(aka wifi0). Works just fine with wicd but when i reboot i have to modprobe the wl module again, set it up with ip link and so on.


Is there any trick to tell arch to do this on it's own?

Please be gentle, 24h Arch user here big_smile Thanks guys.

Offline

#2 2013-03-27 09:38:08

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: network forgetting changes after reboot

No tricks, just basic configuration as described in the wiki.

Offline

#3 2013-03-27 12:46:19

r4ptor
Member
Registered: 2012-12-30
Posts: 46

Re: network forgetting changes after reboot

Thanks.

But i followed the instructions on the wiki, created the config file /etc/iftab

# Match on MAC address
net0    mac     00:25:bc:de:dc:42
wifi0   mac     00:25:00:4c:e2:96

did
# ifrename -c /etc/iftab

and enabbled dhcpcd
# systemctl enable dhcpcd@net0


But still, if i reboot the system, the network interfaces are back to enp0s10 && wlp3s0, also both interfaces are down by default.

Am i missing something?

Offline

#4 2013-03-27 13:03:38

bademaister
Member
From: Germany
Registered: 2011-05-31
Posts: 15

Re: network forgetting changes after reboot

Hey

i guess you have to run

 ifrename -c /etc/iftab

on every boot. You could create a systemd service.

Did you try the Udev Version?


Cheers
Paul

Offline

#5 2013-03-27 14:12:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: network forgetting changes after reboot

Why do you want to rename these in the first place?  And if you are going to rename them, why not rename them to the old standard eth0 wlan0?  Why "net01".  In any case, you should use udev, not a service to run ifrename.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2013-03-27 14:40:26

r4ptor
Member
Registered: 2012-12-30
Posts: 46

Re: network forgetting changes after reboot

I didn't choose the standard names like eth0 because of this quote on the wiki:

Note: When choosing the static names it should be avoided to use names in the format of "ethX" and "wlanX", because this may lead to race conditions between the kernel and udev during boot. Instead, it is better to use interface names that are not used by the kernel as default, e.g.: net0, net1, wifi0, wifi1. For further details please see the systemd documentation.

Anyway, thank you two, i'll give udev a try

Offline

Board footer

Powered by FluxBB