Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th July 2008, 11:09 AM
CauticaL Offline
Registered User
 
Join Date: May 2006
Posts: 16
Network devices become inactive over a period of time

I have a machine running Fedora 9 which requires multiple LAN IP addresses. From time to time, eth0:1, eth0:2, etc. will become inactive and the daemons which bind to those addresses can no longer respond or communicate with the rest of the LAN.

I'm wondering how I can ensure that these stay active permanently. The machine runs 24/7/365.
Reply With Quote
  #2  
Old 24th July 2008, 12:51 PM
ivancat Offline
Registered User
 
Join Date: Dec 2007
Posts: 596
if you have a dynamic IP then you're most likely to get disconnects from time to time
__________________
Ivan Cat (registered linux user #471784)
Linux Projects: constat | nconv
Fedora-related: Message In the Bottle
Reply With Quote
  #3  
Old 24th July 2008, 01:44 PM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
Are you running NetworkManager?
Reply With Quote
  #4  
Old 24th July 2008, 11:30 PM
CauticaL Offline
Registered User
 
Join Date: May 2006
Posts: 16
Quote:
Originally Posted by briantan
Are you running NetworkManager?
Yes, via gnome. Static addresses all the way through.
Reply With Quote
  #5  
Old 24th July 2008, 11:32 PM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
You could toy with NM_CONTROLLED=no for the alias interfaces.

EDIT: edit /etc/sysconfig/network-scripts/ifcfg-eth0:1 and change the variable.
Reply With Quote
  #6  
Old 25th July 2008, 03:14 AM
CauticaL Offline
Registered User
 
Join Date: May 2006
Posts: 16
Quote:
Originally Posted by briantan
You could toy with NM_CONTROLLED=no for the alias interfaces.

EDIT: edit /etc/sysconfig/network-scripts/ifcfg-eth0:1 and change the variable.
Code:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.1.1
TYPE=Ethernet
DNS1=205.152.132.23
DEVICE=eth0:1
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.1.51
DNS2=205.152.37.23
USERCTL=no
PEERDNS=yes
IPV6INIT=no
Hmm, The others eth0:2, etc. are pretty much the same. Where can I find NM_CONTROLLED have any ideas where to find the docs? I've noticed they seem to turn off leaving just eth0 on, this usually happens 12 hours or so.
Reply With Quote
  #7  
Old 25th July 2008, 04:05 AM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
First off editing the files in /etc/sysconfig is a BAD IDEA(tm) If you mess up the syntax your service is mysteriously broken, or an upgrade to the service may not accept your change. Always use system-config-network to manipulate /etc/sysconfig/network-scripts/ifcfg-*

Next - I would not recommend NM(networkmanager) for a stand alone server. You must be logged in for NM to start and it can somewhat unpredictably select it's preferred interface.

Your statement that you are static assignment and NM is wrong. NM requires the use of dhcp service for IP assignent - no exceptions yet.

NM (since F7 at least) does not cause any surprising disabling of interface, but it does revise all the interfaces if there is a change in interface status (connection lost/made) or if the dhcp lease expires.

--

Braintan's advise is not so good.

I suggest that you disable and stop the Networkmanager service (use system-config-services).
That's probably all you need.

DO examine all the settings through system-config-network and make sure they look correct.
Reply With Quote
  #8  
Old 25th July 2008, 05:01 AM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
Quote:
Originally Posted by CauticaL
Hmm, The others eth0:2, etc. are pretty much the same. Where can I find NM_CONTROLLED have any ideas where to find the docs? I've noticed they seem to turn off leaving just eth0 on, this usually happens 12 hours or so.
Just add NM_CONTROLLED=no in the ifcfg-eth0:1 and ifcfg-eth0:2 so on. NetworkManager will leave them alone.

EDIT: If you are not running NM, no harm done in adding NM_CONTROLLED variable. See my next post.

# Stevea:
I am running F8 and F9 servers with static IPs, with NetworkManager and init level 3. Your statement about login to run NM is wrong *. I don't use gui config as they are quite limited in functionality.

NM does work with both DHCP and static IP.

EDIT: * NM is run as a service.

Last edited by briantan; 25th July 2008 at 05:51 AM.
Reply With Quote
  #9  
Old 25th July 2008, 05:26 AM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
Quote:
Originally Posted by CauticaL
Code:
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.1.1
TYPE=Ethernet
DNS1=205.152.132.23
DEVICE=eth0:1
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.1.51
DNS2=205.152.37.23
USERCTL=no
PEERDNS=yes
IPV6INIT=no
You should also change BOOTPROTO to static and add ONBOOT=yes for your alias interfaces.
Code:
BOOTPROTO=static
ONBOOT=yes
Reply With Quote
Reply

Tags
devices, inactive, network, period, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Manager doesn't reconnect after a time period xask00 Servers & Networking 0 24th June 2009 09:23 AM
Non-funtional internet and inactive network devices Cassanova Hardware & Laptops 6 30th March 2009 09:08 PM
how to list files changed within a certain time period Wiles Using Fedora 2 3rd December 2007 12:30 AM
Hang on login after being logged out for a long period of time? (FC5) paul_b EOL (End Of Life) Versions 2 27th February 2007 05:13 AM


Current GMT-time: 17:23 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat