LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 12-21-2013, 03:09 AM   #1
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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?
 
Old 12-21-2013, 04:16 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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.
 
1 members found this post helpful.
Old 12-21-2013, 05:10 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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...

/home/glenn/local/data/backup/backup-etc-sys/etc/etc/udev/rules.d/70-persistent-net.rules
Code:
# 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

Last edited by GlennsPref; 12-21-2013 at 05:26 PM. Reason: no update "applied" yet. mga4b2
 
Old 12-21-2013, 05:23 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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.

Last edited by GlennsPref; 12-21-2013 at 05:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian - eth0 error: no such device on ifup eth0 svancouw Linux - Hardware 4 09-07-2011 04:32 PM
IP alias fails when using ifup eth0:1 MrUmunhum Linux - Networking 2 08-20-2010 01:47 AM
ifup eth0 required after reboot krazyglue Linux - Networking 1 04-21-2009 10:56 PM
ifup eth0 fails.... esi-eric Linux - Hardware 4 07-23-2004 12:11 PM
eth0 ifup warmongr Linux - Networking 2 04-29-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration