Persistent Network in CentOS

Issues related to configuring your network
Post Reply
kidboy
Posts: 12
Joined: 2013/01/28 21:41:01

Persistent Network in CentOS

Post by kidboy » 2015/05/16 02:02:24

Hi, i want to know two thins. First in CentOS 6 when we change a card network and want to reset the identification os system, we just delete the /etc/udev/rules.d/70-persistent-net.rules, restart the system and its redefined, in CentOS 7 how can i do this ? Second how i can find the UUID of a network card ?

stephenw
Posts: 15
Joined: 2015/02/19 17:46:27

Re: Persistent Network in CentOS

Post by stephenw » 2015/05/28 08:58:03

Hello

Try using grep to find the UUID

Code: Select all

grep /etc/sysconfig/network-scripts/ifcfg-<device>
or as per tip on Stackoverflow:

Code: Select all

egrep --color 'pattern|$' file
Then try grep the `usr/lib/udev/rules.d/` directory to see which file has the UUID

Post Reply