Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Router takes too long to assign IP address
Date: Sat, 27 Apr 2013 16:17:42
Message-Id: 201304271717.18443.michaelkintzios@gmail.com
1 Hi All,
2
3 At the title says, I have a laptop that seems to take too long to get an IPv4
4 address from my home router. Other machines on the same LAN that have static
5 IP addresses do not seem to suffer this way.
6
7 I have tried to configure /etc/conf.d/net to use a specific IP address for the
8 particular gateway as explained in:
9
10 /usr/share/doc/openrc-0.11.8/net.example.bz2
11 ============================================
12 # This is a module that tries to find a gateway IP. If it exists then we use
13 # that gateways configuration for our own. For the configuration variables
14 # simply ensure that each octet is zero padded and the dots are removed.
15 # Below is an example.
16 [snip...]
17
18 # We can also specify a specific MAC address for each gateway if different
19 # networks have the same gateway.
20 #gateways_eth0="192.168.0.1,00:11:22:AA:BB:CC 10.0.0.1,33:44:55:DD:EE:FF"
21 #config_192168000001_001122AABBCC="192.168.0.2/24"
22 #routes_192168000001_001122AABBCC="default via 192.168.0.1"
23 #dns_servers_192168000001_001122AABBCC="192.168.0.1"
24 #config_010000000001_334455DDEEFF="10.0.0.254/8"
25 #routes_010000000001_334455DDEEFF="default via 10.0.0.1"
26 #dns_servers_010000000001_334455DDEEFF="10.0.0.1"
27 ============================================
28
29 So in my case I have my router at 10.10.10.1 and its MAC address is
30 00:11:22:AA:BB:CC. My /etc/conf.d/net looks like this:
31 =======================================================
32 # Define the gateways you want to configure
33 gateways_enp11s0="10.10.10.1,00:11:22:AA:BB:CC"
34 # Define the IP and netmask when using gateway 10.0.0.1
35 config_010010010001_00:11:22:AA:BB:CC="10.10.10.7/24"
36 # Define the default route for gateway 10.0.0.1
37 routes_010010010001_00:11:22:AA:BB:CC="default via 10.10.10.1"
38 # Define the DNS servers to use with gateway 10.0.0.1
39 dns_servers_010010010001_00:11:22:AA:BB:CC="10.10.10.1"
40
41 fallback_enp11s0="dhcp"
42 dhcpcd_enp11s0="-t 45"
43 =======================================================
44
45 However, the particular router will not provide an IP address soon enough, the
46 laptop then sets up an APIPA address and every so many seconds thereafter it
47 will try to get an address from the dhcp server. All this creates an annoying
48 delay when I am going online in this LAN.
49
50 I am not sure I understand why it goes through the steps shown in the log in
51 this particular order and why it says no configuration found (see below):
52 ============================================================
53 Apr 27 16:56:50 dell_xps kernel: tg3 0000:0b:00.0: irq 49 for MSI/MSI-X
54 Apr 27 16:56:50 dell_xps kernel: IPv6: ADDRCONF(NETDEV_UP): enp11s0: link is
55 not ready
56 Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: ifplugd 0.28 initializing.
57 Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: Using interface
58 enp11s0/B9:00:A2:20:B2:2B with driver <tg3> (version: 3.125)
59 Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: Using detection mode:
60 SIOCETHTOOL
61 Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: Initialization complete, link
62 beat not detected.
63 Apr 27 16:56:50 dell_xps /etc/init.d/net.enp11s0[1166]: WARNING: net.enp11s0
64 has started, but is inactive
65 Apr 27 16:56:51 dell_xps kernel: tg3 0000:0b:00.0 enp11s0: Link is up at 100
66 Mbps, full duplex
67 Apr 27 16:56:51 dell_xps kernel: tg3 0000:0b:00.0 enp11s0: Flow control is on
68 for TX and on for RX
69 Apr 27 16:56:51 dell_xps kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp11s0: link
70 becomes ready
71 Apr 27 16:56:52 dell_xps ifplugd(enp11s0)[1257]: Link beat detected.
72 Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: Executing
73 '/etc/ifplugd/ifplugd.action enp11s0 up'.
74 Apr 27 16:56:53 dell_xps /etc/init.d/net.enp11s0[1364]: No configuration
75 specified; defaulting to DHCP
76 Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: * No configuration
77 specified; defaulting to DHCP
78
79 <--Why isn't the configuration in /etc/conf.d/net used here?-->
80
81
82 Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: version
83 5.6.4 starting
84 Apr 27 16:56:53 dell_xps dhcpcd[1369]: version 5.6.4 starting
85 Apr 27 16:56:53 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router
86 Solicitation
87 Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
88 enp11s0: sending IPv6 Router Solicitation
89 Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
90 enp11s0: rebinding lease of 10.10.10.7
91 Apr 27 16:56:53 dell_xps dhcpcd[1369]: enp11s0: rebinding lease of 10.10.10.7
92
93 <--Probably cached from earlier, but still can't ping LAN at this stage-->
94
95
96 Apr 27 16:56:57 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router
97 Solicitation
98
99 <--This is not an IPv6 capable router-->
100
101
102 Apr 27 16:56:57 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
103 enp11s0: sending IPv6 Router Solicitation
104 Apr 27 16:56:58 dell_xps dhcpcd[1369]: enp11s0: broadcasting for a lease
105 Apr 27 16:56:58 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
106 enp11s0: broadcasting for a lease
107 Apr 27 16:57:01 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router
108 Solicitation
109 Apr 27 16:57:01 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
110 enp11s0: sending IPv6 Router Solicitation
111 Apr 27 16:57:05 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router
112 Solicitation
113 Apr 27 16:57:05 dell_xps dhcpcd[1369]: enp11s0: no IPv6 Routers available
114 Apr 27 16:57:05 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
115 enp11s0: sending IPv6 Router Solicitation
116 Apr 27 16:57:05 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
117 enp11s0: no IPv6 Routers available
118 Apr 27 16:57:38 dell_xps dhcpcd[1369]: timed out
119 Apr 27 16:57:38 dell_xps dhcpcd[1369]: allowing 8 seconds for IPv4LL timeout
120 Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: timed
121 out
122 Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
123 allowing 8 seconds for IPv4LL timeout
124 Apr 27 16:57:38 dell_xps dhcpcd[1369]: enp11s0: probing for an IPv4LL address
125 Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
126 enp11s0: probing for an IPv4LL address
127 Apr 27 16:57:38 dell_xps dhcpcd[1369]: enp11s0: checking for 169.254.177.156
128 Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
129 enp11s0: checking for 169.254.177.156
130 Apr 27 16:57:44 dell_xps dhcpcd[1369]: enp11s0: using IPv4LL address
131 169.254.177.156
132 Apr 27 16:57:44 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]:
133 enp11s0: using IPv4LL address 169.254.177.156
134 Apr 27 16:57:44 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: forked
135 to background, child pid 1412
136 Apr 27 16:57:44 dell_xps dhcpcd[1369]: forked to background, child pid 1412
137 Apr 27 16:57:44 dell_xps ifplugd(enp11s0)[1257]: Program executed
138 successfully.
139 Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: broadcasting for a lease
140 Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: offered 10.10.10.7 from
141 10.10.10.1
142
143 <--Eventually it gets the specified address from the router-->
144
145
146 Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: acknowledged 10.10.10.7 from
147 10.10.10.1
148 Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: checking for 10.10.10.7
149 Apr 27 16:58:57 dell_xps dhcpcd[1412]: enp11s0: leased 10.10.10.7 for 86400
150 seconds
151 ============================================================
152
153
154 Is there an error with my /etc/conf.d/net, or is this a buggy router?
155
156 PS. Please don't suggest that I wicd or similar - I am trying to understand
157 why the above does not work as I think it should.
158
159 --
160 Regards,
161 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature