dhcpcd-discuss

Wireless interface metric not being set as described in man

Joe M

Mon Sep 08 14:20:16 2014

Hello,

I am using dhcpcd 6.4.3 on gentoo.

The "man dhcpcd" says that wireless interfaces have a metric of 200 +
if_nametoindex + 100.
But, I do not see +100 added to my wireless interface.

I am running wpa_supplicant as a different process and not through
dhcpcd. I am not sure if that could cause this issue.

$ sudo ip route show | grep --color --ignore-case wifi
default via 192.168.1.1 dev wifi0  metric 203
192.168.1.0/24 dev wifi0  proto kernel  scope link  src 192.168.1.132
metric 203

dhcpd version started with --debug:
Sep  8 19:29:24 bnglr dhcpcd[5764]: version 6.4.3 starting
Sep  8 19:29:24 bnglr dhcpcd[5764]: udev: starting
Sep  8 19:29:24 bnglr dhcpcd[5764]: dev: loaded udev

$ sudo grep 'bnglr dhcpcd' daemon.log | grep --color --ignore-case wifi0
Sep  8 19:29:24 bnglr dhcpcd[1395]: wifi0: removing interface
Sep  8 19:29:24 bnglr dhcpcd[5764]: wifi0: executing
`/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
Sep  8 19:29:24 bnglr dhcpcd[5764]: wifi0: executing
`/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
Sep  8 19:29:24 bnglr dhcpcd[5764]: wifi0: IAID 00:14:6c:a8
Sep  8 19:29:24 bnglr dhcpcd[5764]: wifi0: delaying DHCP for 0.8 seconds
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: reading lease
`/var/lib/dhcpcd/dhcpcd-wifi0.lease'
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: rebinding lease of 192.168.1.132
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: sending REQUEST (xid
0xe8d71f30), next in 4.3 seconds
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: acknowledged 192.168.1.132
from 192.168.1.1
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: leased 192.168.1.132 for
43200 seconds
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: renew in 21600 seconds,
rebind in 37800 seconds
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: IP address 192.168.1.132/24
already exists
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: adding route to 192.168.1.0/24
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: adding default route via 192.168.1.1
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: writing lease
`/var/lib/dhcpcd/dhcpcd-wifi0.lease'
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: executing
`/lib/dhcpcd/dhcpcd-run-hooks' REBOOT
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: sending ARP announce (1 of
2), next in 2.0 seconds
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: removing route to 192.168.1.0/24
Sep  8 19:29:25 bnglr dhcpcd[5854]: wifi0: removing default route via
192.168.1.1
Sep  8 19:29:27 bnglr dhcpcd[5854]: wifi0: sending ARP announce (2 of 2)
Sep  8 19:30:49 bnglr dhcpcd[5854]: wifi0: adding route to 192.168.1.0/24
Sep  8 19:30:49 bnglr dhcpcd[5854]: wifi0: adding default route via 192.168.1.1

Just wanted to check for suggestions on how to debug this issue?

Thanks
Joe

Follow-Ups:
Re: Wireless interface metric not being set as described in manRoy Marples
Archive administrator: postmaster@marples.name