Can't connect CentOS 7 to network
-
Following @scottalanmiller series on learning CentOS 7 server. I am on a Dell Latitude E4310.
I did ip addr and got back em1 for my nic. I try "ip link set em1 up" and keep getting "Operation not permitted". I use sudo and it acts like it runs, but if I check with ip addr, link is still down. I have also tried it as root and got the same thing as sudo. I know, sudo asks to escalate to root for one-time commands, but I thought I would try anyways.
Does anybody have any suggestions?
-
Have you tried using nmtui to configure the network?
-
@scottalanmiller said in Can't connect CentOS 7 to network:
nmtui
New tool. Didn't know it existed.
Just tried and activate the em1 connection. "Could not activate connection: Connection 'em1' is not available on the device em1 at this time."
-
Did nmtui show any other available connections?
-
It did the first time, but not anymore.
-
@NerdyDad said in Can't connect CentOS 7 to network:
It did the first time, but not anymore.
Can you post the contents of /etc/sysconfig/network-scripts/ifcfg-em1, or whatever file(s) start with ifcfg in that directory other than ifcfg-lo?
-
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
It did the first time, but not anymore.
Can you post the contents of /etc/sysconfig/network-scripts/ifcfg-em1, or whatever file(s) start with ifcfg in that directory other than ifcfg-lo?
Retyping as I see it.
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=em1
UUID=(big long number) Do you really need it?
DEVICE=em1
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yesEverything looks right to me, but maybe I'm missing something.
-
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
It did the first time, but not anymore.
Can you post the contents of /etc/sysconfig/network-scripts/ifcfg-em1, or whatever file(s) start with ifcfg in that directory other than ifcfg-lo?
Retyping as I see it.
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=em1
UUID=(big long number) Do you really need it?
DEVICE=em1
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yesEverything looks right to me, but maybe I'm missing something.
Yeah, ever thing looks good to me in that as well. You're not getting a DHCP address assigned for some reason. You could try changing to a static IP (easier to do with nmtui when available, but since it's not working, here we go.)
Change the BOOTPROTO to none
BOOTPROTO=none
and add the following settings with the proper information for your environment.
IPADDR=xxx.xxx.xxx.xxx PREFIX=24 GATEWAY=xxx.xxx.xxx.xxx DNS1=xxx.xxx.xxx.xxx DNS2=xxx.xxx.xxx.xxx
Finally, restart the network stack.
sudo systemctl restart network
Let's see weather that works.
-
I am also not getting any activity lights on the network card. Is this normal in Linux?
-
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
-
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
Possibly a driver issue then?
-
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
Possibly a driver issue then?
While possible, it's unlikely. The only real exceptoin that comes to mind is Debian with certain closed-source Broadcom drivers. What kind of network card is it, and was it working before?
-
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Your OS does not change the hardware.
-
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
Possibly a driver issue then?
While possible, it's unlikely. The only real exceptoin that comes to mind is Debian with certain closed-source Broadcom drivers. What kind of network card is it, and was it working before?
It used to work before as it was my first coming to this company. I later switched to a newer laptop and put this one in the back for storage.
driver: e1000e
version: 3.2.5-k
firmware-version: 0.12-1
bus-info: 0000:00:19.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no -
@scottalanmiller said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Your OS does not change the hardware.
I get that, but wasn't sure if Linux would handle the hardware differently. Thought it was a nuance of Linux vs. Windows.
-
@NerdyDad said in Can't connect CentOS 7 to network:
@scottalanmiller said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Your OS does not change the hardware.
I get that, but wasn't sure if Linux would handle the hardware differently. Thought it was a nuance of Linux vs. Windows.
That's like saying that the recent iOS upgrade for your iPhone now made your iPhone water proof. Software doesn't change hardware.
-
@NerdyDad said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@scottalanmiller said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Your OS does not change the hardware.
I get that, but wasn't sure if Linux would handle the hardware differently. Thought it was a nuance of Linux vs. Windows.
That's like saying that the recent iOS upgrade for your iPhone now made your iPhone water proof. Software doesn't change hardware.
Are you mocking yourself? LMAO
-
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
Possibly a driver issue then?
While possible, it's unlikely. The only real exceptoin that comes to mind is Debian with certain closed-source Broadcom drivers. What kind of network card is it, and was it working before?
It used to work before as it was my first coming to this company. I later switched to a newer laptop and put this one in the back for storage.
driver: e1000e
version: 3.2.5-k
firmware-version: 0.12-1
bus-info: 0000:00:19.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: noAn Intel e1000e should be fine. Any lights showing on the switch port? No lights on either end = no network.
-
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
Possibly a driver issue then?
While possible, it's unlikely. The only real exceptoin that comes to mind is Debian with certain closed-source Broadcom drivers. What kind of network card is it, and was it working before?
It used to work before as it was my first coming to this company. I later switched to a newer laptop and put this one in the back for storage.
driver: e1000e
version: 3.2.5-k
firmware-version: 0.12-1
bus-info: 0000:00:19.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: noAn Intel e1000e should be fine. Any lights showing on the switch port? No lights on either end = no network.
No lights.
-
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
@travisdh1 said in Can't connect CentOS 7 to network:
@NerdyDad said in Can't connect CentOS 7 to network:
I am also not getting any activity lights on the network card. Is this normal in Linux?
Well, that's even easier, it's a hardware problem. Nothing should ever effect the blinking lights.
Possibly a driver issue then?
While possible, it's unlikely. The only real exceptoin that comes to mind is Debian with certain closed-source Broadcom drivers. What kind of network card is it, and was it working before?
It used to work before as it was my first coming to this company. I later switched to a newer laptop and put this one in the back for storage.
driver: e1000e
version: 3.2.5-k
firmware-version: 0.12-1
bus-info: 0000:00:19.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: noAn Intel e1000e should be fine. Any lights showing on the switch port? No lights on either end = no network.
No lights.
Well, we know where the problem is now, but I doubt you'll be able to change the network card in a laptop