Hi All, At the title says, I have a laptop that seems to take too long to get an IPv4 address from my home router. Other machines on the same LAN that have static IP addresses do not seem to suffer this way.
I have tried to configure /etc/conf.d/net to use a specific IP address for the particular gateway as explained in: /usr/share/doc/openrc-0.11.8/net.example.bz2 ============================================ # This is a module that tries to find a gateway IP. If it exists then we use # that gateways configuration for our own. For the configuration variables # simply ensure that each octet is zero padded and the dots are removed. # Below is an example. [snip...] # We can also specify a specific MAC address for each gateway if different # networks have the same gateway. #gateways_eth0="192.168.0.1,00:11:22:AA:BB:CC 10.0.0.1,33:44:55:DD:EE:FF" #config_192168000001_001122AABBCC="192.168.0.2/24" #routes_192168000001_001122AABBCC="default via 192.168.0.1" #dns_servers_192168000001_001122AABBCC="192.168.0.1" #config_010000000001_334455DDEEFF="10.0.0.254/8" #routes_010000000001_334455DDEEFF="default via 10.0.0.1" #dns_servers_010000000001_334455DDEEFF="10.0.0.1" ============================================ So in my case I have my router at 10.10.10.1 and its MAC address is 00:11:22:AA:BB:CC. My /etc/conf.d/net looks like this: ======================================================= # Define the gateways you want to configure gateways_enp11s0="10.10.10.1,00:11:22:AA:BB:CC" # Define the IP and netmask when using gateway 10.0.0.1 config_010010010001_00:11:22:AA:BB:CC="10.10.10.7/24" # Define the default route for gateway 10.0.0.1 routes_010010010001_00:11:22:AA:BB:CC="default via 10.10.10.1" # Define the DNS servers to use with gateway 10.0.0.1 dns_servers_010010010001_00:11:22:AA:BB:CC="10.10.10.1" fallback_enp11s0="dhcp" dhcpcd_enp11s0="-t 45" ======================================================= However, the particular router will not provide an IP address soon enough, the laptop then sets up an APIPA address and every so many seconds thereafter it will try to get an address from the dhcp server. All this creates an annoying delay when I am going online in this LAN. I am not sure I understand why it goes through the steps shown in the log in this particular order and why it says no configuration found (see below): ============================================================ Apr 27 16:56:50 dell_xps kernel: tg3 0000:0b:00.0: irq 49 for MSI/MSI-X Apr 27 16:56:50 dell_xps kernel: IPv6: ADDRCONF(NETDEV_UP): enp11s0: link is not ready Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: ifplugd 0.28 initializing. Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: Using interface enp11s0/B9:00:A2:20:B2:2B with driver <tg3> (version: 3.125) Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: Using detection mode: SIOCETHTOOL Apr 27 16:56:50 dell_xps ifplugd(enp11s0)[1257]: Initialization complete, link beat not detected. Apr 27 16:56:50 dell_xps /etc/init.d/net.enp11s0[1166]: WARNING: net.enp11s0 has started, but is inactive Apr 27 16:56:51 dell_xps kernel: tg3 0000:0b:00.0 enp11s0: Link is up at 100 Mbps, full duplex Apr 27 16:56:51 dell_xps kernel: tg3 0000:0b:00.0 enp11s0: Flow control is on for TX and on for RX Apr 27 16:56:51 dell_xps kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp11s0: link becomes ready Apr 27 16:56:52 dell_xps ifplugd(enp11s0)[1257]: Link beat detected. Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: Executing '/etc/ifplugd/ifplugd.action enp11s0 up'. Apr 27 16:56:53 dell_xps /etc/init.d/net.enp11s0[1364]: No configuration specified; defaulting to DHCP Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: * No configuration specified; defaulting to DHCP <--Why isn't the configuration in /etc/conf.d/net used here?--> Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: version 5.6.4 starting Apr 27 16:56:53 dell_xps dhcpcd[1369]: version 5.6.4 starting Apr 27 16:56:53 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:56:53 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: rebinding lease of 10.10.10.7 Apr 27 16:56:53 dell_xps dhcpcd[1369]: enp11s0: rebinding lease of 10.10.10.7 <--Probably cached from earlier, but still can't ping LAN at this stage--> Apr 27 16:56:57 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation <--This is not an IPv6 capable router--> Apr 27 16:56:57 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:56:58 dell_xps dhcpcd[1369]: enp11s0: broadcasting for a lease Apr 27 16:56:58 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: broadcasting for a lease Apr 27 16:57:01 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:57:01 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:57:05 dell_xps dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:57:05 dell_xps dhcpcd[1369]: enp11s0: no IPv6 Routers available Apr 27 16:57:05 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: sending IPv6 Router Solicitation Apr 27 16:57:05 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: no IPv6 Routers available Apr 27 16:57:38 dell_xps dhcpcd[1369]: timed out Apr 27 16:57:38 dell_xps dhcpcd[1369]: allowing 8 seconds for IPv4LL timeout Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: timed out Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: allowing 8 seconds for IPv4LL timeout Apr 27 16:57:38 dell_xps dhcpcd[1369]: enp11s0: probing for an IPv4LL address Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: probing for an IPv4LL address Apr 27 16:57:38 dell_xps dhcpcd[1369]: enp11s0: checking for 169.254.177.156 Apr 27 16:57:38 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: checking for 169.254.177.156 Apr 27 16:57:44 dell_xps dhcpcd[1369]: enp11s0: using IPv4LL address 169.254.177.156 Apr 27 16:57:44 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: enp11s0: using IPv4LL address 169.254.177.156 Apr 27 16:57:44 dell_xps ifplugd(enp11s0)[1257]: client: dhcpcd[1369]: forked to background, child pid 1412 Apr 27 16:57:44 dell_xps dhcpcd[1369]: forked to background, child pid 1412 Apr 27 16:57:44 dell_xps ifplugd(enp11s0)[1257]: Program executed successfully. Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: broadcasting for a lease Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: offered 10.10.10.7 from 10.10.10.1 <--Eventually it gets the specified address from the router--> Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: acknowledged 10.10.10.7 from 10.10.10.1 Apr 27 16:58:52 dell_xps dhcpcd[1412]: enp11s0: checking for 10.10.10.7 Apr 27 16:58:57 dell_xps dhcpcd[1412]: enp11s0: leased 10.10.10.7 for 86400 seconds ============================================================ Is there an error with my /etc/conf.d/net, or is this a buggy router? PS. Please don't suggest that I wicd or similar - I am trying to understand why the above does not work as I think it should. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.