this has been an ongoing problem, but I think it's gotten worse. When I change networks, I run dhclient again. It tells me I have a lease. For instance: DHCPREQUEST on em0 to 255.255.255.255 DHCPREQUEST on em0 to 255.255.255.255 DHCPDISCOVER on em0 - interval 3 DHCPOFFER from 192.168.1.1 (48:f8:b3:05:5e:09) DHCPREQUEST on em0 to 255.255.255.255 DHCPACK from 192.168.1.1 (48:f8:b3:05:5e:09) bound to 192.168.1.137 -- renewal in 43200 seconds.
But then it doesn't actually assign the IP and I have no routes: Destination Gateway Flags Refs Use Mtu Prio Iface 127/8 127.0.0.1 UGRS 0 0 32768 8 lo0 127.0.0.1 127.0.0.1 UHl 1 26262 32768 1 lo0 224/4 127.0.0.1 URS 0 0 32768 8 lo0 So I have to run it again. DHCPREQUEST on em0 to 255.255.255.255 DHCPREQUEST on em0 to 255.255.255.255 DHCPACK from 192.168.1.1 (48:f8:b3:05:5e:09) bound to 192.168.1.137 -- renewal in 43200 seconds. Now I have an IP and routes: default 192.168.1.1 UGS 0 0 - 8 em0 ... There appears to be a race where dhclient changes my IP address, then decides to delete the old address, but actually deletes the new address.
