I googled to see how I might restart the network interface in CentOS. I initially tried before googling:
sudo service network restart
I noticed that only the loopback interface was restarted. To confirm this I did:
service network stop
and then did
ifconfig
and the loopback info was gone. I then found ifconfig eth0 up/down and tried those and that did what I is was looking for. Why doesn't "service network restart" restart all interfaces?
Thanks,
-wes
Hi,
The most likely answer is that your interface is not enabled.
Try someting like
cat /etc/sysconfig/network-scripts/ifcfg-em1
You will see for a disabled interface ONBOOT="no"
Change the no to a yes and you should be good :)
On Thu, Nov 21, 2013 at 4:32 PM, Wes James comptekki@gmail.com wrote:
I googled to see how I might restart the network interface in CentOS. I initially tried before googling:
sudo service network restart
I noticed that only the loopback interface was restarted. To confirm this I did:
service network stop
and then did
ifconfig
and the loopback info was gone. I then found ifconfig eth0 up/down and tried those and that did what I is was looking for. Why doesn't "service network restart" restart all interfaces?
Thanks,
-wes _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, Nov 20, 2013 at 8:40 PM, Clint Dilks clint.dilks@gmail.com wrote:
Hi,
The most likely answer is that your interface is not enabled.
Try someting like
cat /etc/sysconfig/network-scripts/ifcfg-em1
You will see for a disabled interface ONBOOT="no"
Change the no to a yes and you should be good :)
But wouldn't it be on if I'm getting my networking through eth0? I've been using CentOS in virtualbox for several days now and I've been able to do networking with it (browse web, use git, use wget, ping, etc...)
I'll check that though.
Thanks,
-wes
On Wed, Nov 20, 2013 at 8:40 PM, Clint Dilks clint.dilks@gmail.com wrote:
Hi,
The most likely answer is that your interface is not enabled.
Try someting like
cat /etc/sysconfig/network-scripts/ifcfg-em1
You will see for a disabled interface ONBOOT="no"
Change the no to a yes and you should be good :)
Then only file under network-scripts that has ifcfg-* is ifcfg-lo.
So how is eth0 getting brought up, I wonder?? I'll look in /etc/init.d. I did a stop and start of NetworkManager, but eth0 and loopback were still there.
-wes
On Wed, Nov 20, 2013 at 09:06:25PM -0700, Wes James wrote:
On Wed, Nov 20, 2013 at 8:40 PM, Clint Dilks clint.dilks@gmail.com wrote:
Hi,
The most likely answer is that your interface is not enabled.
Try someting like
cat /etc/sysconfig/network-scripts/ifcfg-em1
Then only file under network-scripts that has ifcfg-* is ifcfg-lo.
So how is eth0 getting brought up, I wonder?? I'll look in /etc/init.d. I did a stop and start of NetworkManager, but eth0 and loopback were still there.
Are you using NetworkManager, which is the default? If so, then it's probably a NetworkManager issue. (Sorry, I have no idea how to troubleshoot that, personally, I greatly dislike it and don't use it.)
At any rate, the command, if you were using NM, would be service NetworkManager restart rather than service network.
Hi all
a question, you has installed centos with "Virtual Box" ?? I had the same problem, but I changed the configuration de virtual box .... you see this
http://rodrigopichinual.blogspot.com/2013/04/asignar-ip-estatica-centos.html
there, I do explain how to assign ip static on centos (with virutal box)
bye
2013/11/21 Scott Robbins scottro@nyc.rr.com
On Wed, Nov 20, 2013 at 09:06:25PM -0700, Wes James wrote:
On Wed, Nov 20, 2013 at 8:40 PM, Clint Dilks clint.dilks@gmail.com
wrote:
Hi,
The most likely answer is that your interface is not enabled.
Try someting like
cat /etc/sysconfig/network-scripts/ifcfg-em1
Then only file under network-scripts that has ifcfg-* is ifcfg-lo.
So how is eth0 getting brought up, I wonder?? I'll look in /etc/init.d.
I
did a stop and start of NetworkManager, but eth0 and loopback were still there.
Are you using NetworkManager, which is the default? If so, then it's probably a NetworkManager issue. (Sorry, I have no idea how to troubleshoot that, personally, I greatly dislike it and don't use it.)
At any rate, the command, if you were using NM, would be service NetworkManager restart rather than service network.
-- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, Nov 21, 2013 at 8:50 AM, Rodrigo Pichiñual Norin < rodrigo.pichinual@gmail.com> wrote:
Hi all
a question, you has installed centos with "Virtual Box" ?? I had the same problem, but I changed the configuration de virtual box .... you see this
http://rodrigopichinual.blogspot.com/2013/04/asignar-ip-estatica-centos.html
there, I do explain how to assign ip static on centos (with virutal box)
bye
Gracias. I appreciate the info.
-wes