LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2016, 10:47 AM   #1
ThatGuywiththeComputer
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Rep: Reputation: Disabled
ethernet not coming online after remote reboot


I have a Centos7 machine that has some odd behavior with its ethernet ports.

When sitting at the server console i can reboot the system normally and networking functions as expected. Whenever the system is rebooted remotely the ethernet port will not come online until the cable is removed and reconnected.

after a remote reboot I can visit the console and login as a local account but cannot bring the interface online without removing and replacing the cable.

my /etc/sysconfig/network file is simple

# Created by anaconda
NETWORKING=yes

the interface file is as follows
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=RightPort
UUID=71345fbb-7f98-4bd1-bd0b-309a255dfd2d
DEVICE=enp2sOf1
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
NM_CONTROLLED=no


i have added the NM_CONTROLLED line for troubleshooting, i have tried putting the values for onboot and nm_controlled in quotes as shown in various forums and guides i have read through, but I cannot figure this out.

Does anyone have a suggestion?
 
Old 10-27-2016, 11:13 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Why are you using DHCP on a server?

How are you rebooting remotely?

Last edited by lazydog; 10-27-2016 at 11:15 AM.
 
Old 10-27-2016, 11:17 AM   #3
ThatGuywiththeComputer
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
that is the interface file, I suppose i should have said it differently than "the interface file is as follows"
that is my ifcfg-enp2s0f1 file. the network file is only one line long.
 
Old 10-27-2016, 11:49 AM   #4
ThatGuywiththeComputer
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
Why are you using DHCP on a server?

How are you rebooting remotely?
I am using DHCP because I do not control the network here. I create a reservation in a webportal so as to get the same address after reboot (not my preferred method but it is what I have to work with). my problem is not with addressing though. I don't get any link lights until i unplug and replace the cable.

when rebooting remotely via ssh i have tried using the reboot command, and shutdown -r 0. both have the same effect.

what is most curious to me is that when i reboot from the console the network comes up every time, it it only when I reboot from an ssh session that i have network problems. i am able to replicate it locally at the console by connecting via ssh to the localhost and issuing the reboot command.
 
Old 10-27-2016, 02:46 PM   #5
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Yeah, I cannot explain this. I'm guessing that the variable NAME doesn't have to match the DEVICE like it does on all my machines.
 
Old 10-28-2016, 02:55 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Send reboot and add in some small wait. Then log off really quick. ???
 
Old 10-31-2016, 10:31 AM   #7
ThatGuywiththeComputer
LQ Newbie
 
Registered: Apr 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
No dice renaming the port or delaying the shutdown. I am perplexed.
 
Old 10-31-2016, 04:10 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Did you delay and log off? When I've seen this before I'd have to be logged off before the shutdown began.

Maybe some /var logs might reveal the issue.
 
  


Reply

Tags
ethernet, network


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
LXer: LEGO Minifigures Online Is Officially Coming To Linux LXer Syndicated Linux News 0 06-24-2015 11:31 PM
LXer: New Online Game Distribution Client Coming To Linux LXer Syndicated Linux News 0 12-01-2012 04:50 PM
3 vms are not coming up after reboot in RHEVM 3.0 anoopniranjan Linux - Virtualization and Cloud 1 08-27-2012 06:09 AM
network interface not coming backup after reboot noir911 Linux - Server 2 02-10-2009 11:03 PM
Problem with coming online in Mandriva hjortur Linux - Newbie 2 09-22-2006 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:04 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
Open Source Consulting | Domain Registration