Networking Forums

Networking Forums > Computer Networking > Linux Networking > Checking for network connection

Reply
Thread Tools Display Modes

Checking for network connection

 
 
Michael Eager
Guest
Posts: n/a

 
      08-25-2004, 05:43 AM
I'm running Fedora Core 2 on a laptop.

If the network cable is not connected, startup takes a long
time. Network configuration tries to get an IP address using
DHCP and this takes a couple minutes to time out.

Is there any way to check if the network cable is connected
so that I can bypass the DHCP check?

--
Michael Eager Eager Consulting (E-Mail Removed)

 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      08-25-2004, 06:27 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking Michael Eager <(E-Mail Removed)> suggested:
> I'm running Fedora Core 2 on a laptop.


> If the network cable is not connected, startup takes a long
> time. Network configuration tries to get an IP address using
> DHCP and this takes a couple minutes to time out.


> Is there any way to check if the network cable is connected
> so that I can bypass the DHCP check?


Perhaps mii-tool output could be parsed, albeit it requires the
module for you NIC loaded and mii-status support in the
NIC/module.

# mii-tool
eth0: no autonegotiation, 10baseT-HD, link ok
SIOCGMIIPHY on 'eth1' failed: Operation not supported
eth2: negotiated 100baseTx-FD, link ok

eth0/2 are mii-status aware and "link ok" says there's a cable
connected with link. eth1 doesn't support mii-status so one would
be out of luck here.

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBLDFOAkPEju3Se5QRAt+LAJ9fLYYgDVvNsVhe7FSMrf PNvHOrXQCeOQiB
sEDbkYg2zsqsrOGsm15qKQs=
=uTCp
-----END PGP SIGNATURE-----
 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      08-25-2004, 03:05 PM
Michael Eager <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)> ...
> I'm running Fedora Core 2 on a laptop.
>
> If the network cable is not connected, startup takes a long
> time. Network configuration tries to get an IP address using
> DHCP and this takes a couple minutes to time out.
>
> Is there any way to check if the network cable is connected
> so that I can bypass the DHCP check?


Posting to Google Groups was very flakey the past day or two -- think
my post failed to make it. So what, right?

$ man dhclient.conf
PROTOCOL TIMING is the first section

Sounds like you might be more interested in ifplugd:
http://www.stud.uni-hamburg.de/users...jects/ifplugd/

It uses several tools to check link status (ie., cable/patch cord
attached) before trying to bring up the interface. It's configurable
and it's intended for laptops that move around but there's no reason
it can't be used on desktops -- MDK includes it, IIRC.

hth,
prg
email above disabled
 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking my router Amanda Wireless Internet 28 08-08-2006 03:31 PM
Checking SNR Jammy Git Broadband 3 07-15-2006 03:04 PM
Checking ports john Windows Networking 1 01-10-2006 09:16 PM
Checking Security Jack Wireless Networks 4 03-04-2005 08:31 PM
Checking reverse dns? hseaver@nospamcybershamanix.com Linux Networking 2 08-20-2003 03:24 PM



1 2 3 4 5 6 7 8 9 10 11