Ask Your Question
1

How do I change p4p1 to eth0 ?

asked 2013-02-05 21:03:07 -0500

Hyuk Jin Yun gravatar image

updated 2013-06-26 22:45:30 -0500

FranciscoD_ gravatar image

I try to intall MATLAB on fedora 18, but licence error occurred because of detection failure of Host ID.

Although there are many solution in other Fedora cores, they deosn't work. ex) http://ist.njit.edu/software/matlab/2011b/

"/etc/udev/rules.d/70-persistent-net.rules" is not being on FC 18.

I wanna change the network name called p4p1 to eth0. How do I modify it in FC 18?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2013-06-26 07:18:40 -0500

suprjami gravatar image

updated 2013-06-26 07:18:54 -0500

Add biosdevname=0 to the kernel line in GRUB.

You may also need to rename the file and DEVICE name in /etc/sysconfig/network-scripts/ifcfg-p4p1.

For example, if you are changing to "eth0" then your filename will need to be ifcfg-eth0 and it will need to contain DEVICE=eth0.

I also suggest you write to Mathworks and politely advise them of your inconvenience. If they get enough demand from paying customers, surely they will re-write their licensing method to something more sane.

edit flag offensive delete link more

Comments

FranciscoD_ gravatar imageFranciscoD_ ( 2013-06-26 22:51:29 -0500 )edit
1

answered 2013-06-27 16:14:36 -0500

shaiton gravatar image

You just have to remove the feature...

yum remove biosdevname

And then you'll be back with the old ethX naming.

edit flag offensive delete link more
-1

answered 2013-06-26 09:56:54 -0500

hmaarrfk gravatar image

The problem is that many other pieces of software also look for eth0 so you may encouter this multiple times.

I was struggling with the same problem up until today. I advise against for a different solution: Create a dummy device and call it eth0.

You only need to add the following lines to the file /etc/rc.d/rc.local (create it if it doesn't exist) -- also remember to change the script owner to root:root with root execution privileges

#!/bin/sh

/sbin/modprobe dummy
/bin/touch /etc/iftab
/sbin/ifrename -i dummy0 -n eth0
/sbin/ifconfig eth0 hw ether 001122334455
/sbin/ifconfig eth0 up

you can chose the hw mac address to be whatever you want.

If you don't want to reboot your system, you can just run the script from a terminal as root to setup your system the first time.

Hope this helps. :D

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-02-05 21:03:07 -0500

Seen: 4,352 times

Last updated: Jun 27 '13