-   Mageia (
-   -   Ifup eth0 (

GlennsPref 12-21-2013 04:09 AM

Ifup eth0
Hi, in Mageia 4 "ifup eth0" from a script won't work because the interface has been renamed enp5s0.

And eth1 has been renamed enp2s0u1!

I must of missed some thing, do we (collectively) need to change our sh files?

pingu 12-21-2013 05:16 AM

Well, I'm running Debian but these things are probably the same.
Check the file "/etc/udev/rules.d/70-persistent-net.rules". Change the names to what you want. (NB change only the name.)
I have read people saying you can delete the file and it will be recreated correctly, personally I have no experience of this. Of course, if you want to try this then rename the file, don't delete it.

GlennsPref 12-21-2013 06:10 PM

Hi, thanks for the quick responce.

The file you mention is missing from my new install (no updates applied yet).

but I found a backup...


# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# Drakx-net rule for eth0 (50:e5:49:b5:db:a0)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="50:e5:49:b5:db:a0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# Drakx-net rule for eth1 (00:e0:4c:03:38:9e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:03:38:9e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

I'll copy it. brb

GlennsPref 12-21-2013 06:23 PM

Hi, copying the file allowed me to reconfigure the eth devices.

(remove devices from network center rebooted and added the 2 devices)

Now I have the familiar names for my firewall and proxy scripts.

Thanks to you.

All times are GMT -5. The time now is 11:23 AM.