LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-11-2017, 04:18 AM   #1
Vaurine
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
How to configure customized network interface names


Hello, I am user of RHEL 7.4. I want to make special names for some of my network interfaces like: mgmt, scan etc. How can I do so? I've tried to do:
1. In /etc/default/grub:
GRUB_CMDLINE_LINUX=" crashkernel=auto net.ifnames=0 biosdevname=0 rhgb quiet"
2. Regenerated grub:
grub2-mkconfig -o /boot/grub2/grub.cfg
3.Changed names in /etc/sysconfig/network-scripts/ifcfg-eno1 and filenames.
4. Restarted Network

When I did so my interface name changes from enp0s3 to eth0. How can I
configure RHEL to have my personal interface names?
 
Old 12-13-2017, 02:35 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Orleans, 120 km south of Paris
Distribution: Mandrake, Freeduc (the one I'm making), Slackware, MacOS X
Posts: 214

Rep: Reputation: 45
I'm not sure it's the same under RHEL, but under Debian it's:
# vim /etc/systemd/network/10-eth0.link
[Match]
MACAddress=00:00:00:00:00:00

[Link]
Name=the name you want
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enable predictable network interface names on Slackware 14.1 VanOord_NL Linux - Networking 10 06-01-2016 04:44 AM
network interface names having strange names because of udev rules pascaltaf Linux - Kernel 5 01-08-2015 09:07 AM
Network interface names: p6p1 havard Linux - Networking 3 09-16-2011 09:53 AM
configure the network interface under the Owner (not ROOT) wadhah102 Linux - Networking 6 04-25-2011 04:01 AM
network interface keeps switching names on start-up slack_dude Slackware 2 02-15-2007 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration