View Full Version : NIC Restarting by it's self ?
AlphaTwin
2005-12-21, 12:58 PM CST
Hello All,
I have a strange little problems here. When I use the Network configuration GUI to stop a network card ( I have 2 in this system) it auto starts with out me telling it to.
Let me explain:
I stop eth0 it "says" it does so with out any errors. Then when I go to Activate it it says that it's already active. Now I'm not sure if it's actually RE-activating or it never DE-activated in the first place.
Any Ideas
Thanks
Eric
Brian1
2005-12-21, 01:31 PM CST
To see if it is down, open a terminal session and type the command ' /sbin/ifconfig '. It will show active interfaces. If you always one or the other donw and the other up on startup then goto /etc/sysconfig/network-scripts and edit the ifcfg-eth0 and ifcfg-eth1 as root of course. In each there is a line ' onboot= ' follow one with yes for the one you always want up and no for the one down. From a terminal you start and stop like so ' /sbin/ifup eth0 ' ' /sbin/ifdown eth1 '. Usually what takes control on fc systems for network connection detections is an service called NetworkManager.
Hope this helps
Brian1
AlphaTwin
2005-12-21, 01:53 PM CST
Well that all seems to be in order.
Even if I do it from console and take down the nic it auto restarts by it's self.
AlphaTwin
2005-12-21, 01:56 PM CST
Even if I go into Services and stop the network it still restarts by it's self.
Brian1
2005-12-21, 02:32 PM CST
When you say network do you mean Network Manager or the service called network?
Brian1
AlphaTwin
2005-12-21, 11:03 PM CST
The service called Network
Eric
AlphaTwin
2005-12-22, 02:03 PM CST
Anybody....? :)
Brian1
2005-12-23, 05:36 PM CST
Which version is this. Been a while since messing with the fedora distro. Been using Centos. This is the way I did it on my fedora 3 and centos distros to stop networking nics from starting and stopping depending on connections. It was called Network Manager on my setup. network is other basic network startup.
Please don't take this wrong way but just verify this for me. Run the 2 commands as a regular user is fine it will just say permissions denied. No big deal. You can run as root if you wish. What they do is list the staus of services and piping it to the grep command to just display what it asked for like net* or Net*. List any service with these and their status.
service --status-all | grep net*
service --status-all | grep Net*
Here is an example of mine showing status of NetworkManager. It says it is stopped.
[crusher58@lcomp58 ~]$ service --status-all | grep Net*
Device not specified in /etc/sysconfig/diskdump
Please run makehistory and/or makedbz before starting innd.
/etc/init.d/ip6tables: line 45: /etc/sysconfig/ip6tables-config: Permission denied
/etc/init.d/iptables: line 45: /etc/sysconfig/iptables-config: Permission denied
grep: /etc/openldap/slapd.conf: Permission denied
Server address not specified in /etc/sysconfig/netdump
NetworkManager is stopped
sed: can't read /etc/squid/squid.conf: Permission denied
FATAL: Unable to open configuration file: /etc/squid/squid.conf: (13) Permission denied
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.000 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
/etc/init.d/squid: line 121: 24851 Aborted $SQUID -k check
grep: /etc/webmin/miniserv.conf: Permission denied
If yours is running then issue the command as root. ' service NetworkManager stop '. It may fail if I remember right. Issue is something else must stop before it can. Anyways you can then use the command ' chkconfig --level 345 NetworkManager off '. This stops NetworkManager from starting in the first place. Reboot computer and see if nics are the way they are suppose to be. If you need it back on do the same but change off to on.
Brian1
Zigzagcom
2005-12-23, 06:03 PM CST
Do you have a feature like "wake-on-LAN" enabled somewhere?
AlphaTwin
2005-12-23, 08:11 PM CST
Hey guys thanks for the all your great help... I ended up reloading the server before I got these posts.
This was my 3 time setting up a squid server and I finally got it all figured out. I had it all up and running and doing exactly what I wanted in about 1 1/2 hours.
Anyways I really appreciate all the help.
Now to tackle Squidgard :)
Merry Christmas and Happy Holidays to All.
Eric
Brian1
2005-12-23, 08:30 PM CST
Glad to see you got it going. When you have time maybe post what you did differently this time if anything was different. Unless it was just pure luck.
Good going there
Brian1
AlphaTwin
2005-12-23, 09:40 PM CST
Actually the server was working fine except for I was having to stop the outside nic and restart it to get the proxy server to go out on the correct nic. Then all of the sudden it wouldn't let me stop and start the nic so I couldn't make the proxy go out on the right nic anymore.
When I reloaded it this time I didn't do anything different but after I set up fire starter this time I didn't have to start and stop the nic anymore. I really don't know what I did differently.
I wish I did I'd like to document it for my own records as well.
Thanks again guys
Eric
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.