LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2012, 05:58 AM   #1
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Rep: Reputation: Disabled
Ethernet interface down when server restarts


Dear members,

I installed CentOS on dell power edge server. The problem is that when I restart the server it has the em1 (Ethernet) down and I need to "ifup em1" manually.

what I need to do so my ethernet interface is up when server restarts.

PS: the ifcfg-em1 is configured to obtain IP from dhcp.
 
Old 12-19-2012, 06:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
is ONBOOT=YES set in ifcfg-em1?
 
Old 12-19-2012, 06:04 AM   #3
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
Many Thanks acid_kewpie.
 
Old 12-19-2012, 06:09 AM   #4
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
In addition, can you please tell me how to find ifconfig information of just one interface like just eth0.

because when I give command ifconfig, it shows me long list of all interfaces which I don't need.
 
Old 12-19-2012, 06:11 AM   #5
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
ifconfig eth0 or ifconfig em1 results in error while shows normal output with ifconfig command :S
 
Old 12-19-2012, 06:15 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what error do you see? running "ifconfig em1" as root should definitely work
 
Old 12-19-2012, 06:26 AM   #7
sudo_su
Member
 
Registered: Aug 2012
Location: Australia
Distribution: Redhat, CentOS
Posts: 59

Original Poster
Rep: Reputation: Disabled
1: sounds really strange,

Quote:
login as: root
root@192.168.1.30's password:
Last login: Wed Dec 19 05:24:50 2012 from 192.168.1.24
[root@Ns1 ~]# ifconfig em1
-bash: ifconfig: command not found
[root@Ns1 ~]#
some alternate command?

2: what is difference between "ifdown em1" and "ipconfig em1 down"?
 
Old 12-19-2012, 07:05 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
ahh well that's just a path issue. logging in directly as root should be fine though, so I'd womnder how / why it's not there, but if you run "/sbin/ifconfig" it should work, but then you should really look at what's up with your $PATH variable.

ifdown is an OS specific helper script which uses the ifcfg-whatever scripts and other things like DHCP clients if appropraite, to bring interfaces up and down elegantly. ifconfig is the underlying tool that is used to generically pull the interface up and down under the hood, which is OS independent and holds no knowledge of any configuration etc.
 
  


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
Onboard network interface always restarts carlotricia Linux - Hardware 2 01-18-2012 07:47 PM
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 04:49 AM
Bridge between ethernet interface and tap interface jayadhanesh Linux - Networking 3 04-13-2009 12:32 AM
how can i shutdown the PHYSICAL interface of an ethernet interface markraem Linux - Networking 2 04-12-2007 03:29 PM


All times are GMT -5. The time now is 03:34 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