The laptop has two NICs, one wired LAN and teh other wireless LAN.
I am trying to configure network connection using the wired NIC.
The MAC below ( ifcfg-em1) belongs to the wired NIC.
This is in my ifcfg-em1:
//-------------------------------------------
Code: Select all
DEVICE=em1
TYPE=Ethernet
UUID=dccc43e9-432b-4fc9-9c00-dd797d4cbb6a
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=a_static_ip
PREFIX=24
GATEWAY=some_appropriate_address
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System em1"
HWADDR=D0:67:E5:30:91:E4
Like this:
# PCI device 0x8086:0x422b (iwlwifi) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:24:d7:e1:37:80", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
Question:
How can I have the entry for the wired NIC (NAME = EM1) inside the 70-persistent-net.rules file?
My solution:
I edited KERNEL=="wlan*", NAME="wlan0" like this:
KERNEL=="em*", NAME="em1".
When I reboot (by the way, do I need to reboot when I change contents of 1. ifcfg-em1, 2.70-persistent-net.rules?), I now get two entries, like this:
Code: Select all
#1
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="D0:67:E5:30:91:E4",
ATTR{type}=="1", KERNEL=="em*", NAME="em1"
#2
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:24:d7:e1:37:80",
ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
I still cannot connect to the outside world.
Could someone please give me some suggestion?
Thank you.