Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0 timeout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tskuzzy
n00b
n00b


Joined: 13 Aug 2008
Posts: 70

PostPosted: Sat Sep 13, 2008 3:29 pm    Post subject: eth0 timeout Reply with quote

About 50% of the time, eth0 will timeout during boot. Is there any way to specify a longer timeout time?
Also, what is an IPv4LL address? It gets assigned whenever eth0 times out
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23371

PostPosted: Sat Sep 13, 2008 5:01 pm    Post subject: Reply with quote

Depending on which DHCP client you use, yes. You are probably using dhcpcd, in which case you can adjust the timeout using the -t option. See man dhcpcd for other options that may be useful. See /etc/conf.d/net.example for how to pass the options to the DHCP client.

An IPv4LL address is a "link local" address. It is a way to allow systems to be automatically assigned addresses in the absence of a DHCP server. See RFC 3927 for the full details. Some DHCP clients, such as dhcpcd, can be instructed not to assign an IPv4LL address when no DHCP server is available. In that case, the DHCP client will simply fail to assign any address to the interface.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55200
Location: 56N 3W

PostPosted: Sat Sep 13, 2008 5:04 pm    Post subject: Reply with quote

tskuzzy,

The timeout defaults to 60 seconds (-t 60) if you don't get a DHCP lease in this time, something is broken.
To change the timeout, look in /etc/config.d/net.example for the syntax.

A Link Local address is a self assigned address. Your system makes up an address in the link local range and broadcasts it to ensure no other system is using it too. Its almost totally useless except in the case where your want to auto configure a network when there is no DHCP server on the network. In this way it provides interoperability with Windows.

However - if you do have a DHCP server, getting a Link Local address is a verybadthing.

What network hardware do you have and what kernel module are you using ?

Also some 1Gbit network cards do not reliably negiotiate 100Mbit connections. This can be addressed by passing a module parameter to force the link settings, if the kernel module supports it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tskuzzy
n00b
n00b


Joined: 13 Aug 2008
Posts: 70

PostPosted: Sat Sep 13, 2008 8:30 pm    Post subject: Reply with quote

Thanks for the replies

Yes, I'm using dhcpcd as my DHCP client
The interface times out after about 10s, definitely not 60s.

Here's my lspci for my ethernet controller (kernel driver is listed at the bottom):
Code:
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
        Subsystem: Biostar Microtech Int'l Corp Device 2307                                                               
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+             
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-               
        Latency: 0, Cache Line Size: 32 bytes                                                                             
        Interrupt: pin A routed to IRQ 1275                                                                               
        Region 0: I/O ports at d800 [size=256]                                                                             
        Region 2: Memory at febff000 (64-bit, non-prefetchable) [size=4K]                                                 
        Region 4: Memory at fdff0000 (64-bit, prefetchable) [size=64K]                                                     
        Expansion ROM at febc0000 [disabled] [size=128K]                                                                   
        Capabilities: [40] Power Management version 3                                                                     
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)                               
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-                                                               
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+                                   
                Address: 00000000fee0300c  Data: 4181                                                                     
        Capabilities: [70] Express (v1) Endpoint, MSI 01                                                                   
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <8us                                     
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-                                                   
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Capabilities: [b0] MSI-X: Enable- Mask- TabSize=2
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00000800
        Capabilities: [d0] Vital Product Data <?>
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [140] Virtual Channel <?>
        Capabilities: [160] Device Serial Number 00-e0-4c-68-00-00-00-12
        Kernel driver in use: r8169


/etc/conf.d/net
Code:
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1932

PostPosted: Sat Sep 13, 2008 9:19 pm    Post subject: Reply with quote

I actually had the same problem a year ago. Someone here told me to add the following line to /etc/conf.d/net and it worked:
Code:
dhcpcd_eth0="-t 60"

_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55200
Location: 56N 3W

PostPosted: Sat Sep 13, 2008 9:30 pm    Post subject: Reply with quote

tskuzzy,

Some users have problems with Realtek Semiconductor Co., Ltd. RTL8111/8168B and the r8169 module, varying from total non operation to taking several goes to get started.
It does not have options for link setting.

I suspect your /etc/conf.d/net alrady contains
Code:
dhcpcd_eth0="-t 10"
as 10 seconds is not the defualt, unless its changed recently. Try the option suggested by AM088.

Realtek have also released an open source kernel module. You may want to try that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum