LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 04:09 AM   #1
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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, 05:16 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,298

Rep: Reputation: 123Reputation: 123
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, 06:10 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Original Poster
Rep: Reputation: 199Reputation: 199
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 06:26 PM. Reason: no update "applied" yet. mga4b2
 
Old 12-21-2013, 06:23 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Original Poster
Rep: Reputation: 199Reputation: 199
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 06:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:32 PM
IP alias fails when using ifup eth0:1 MrUmunhum Linux - Networking 2 08-20-2010 02:47 AM
ifup eth0 required after reboot krazyglue Linux - Networking 1 04-21-2009 11:56 PM
ifup eth0 fails.... esi-eric Linux - Hardware 4 07-23-2004 01:11 PM
eth0 ifup warmongr Linux - Networking 2 04-29-2004 05:00 PM


All times are GMT -5. The time now is 09:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration