Do not default to a /24 when DHCP doesn't specify netmask
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NetworkManager |
Fix Released
|
Low
|
|||
network-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
affects ubuntu/
Just had a bizarre network at heathrow:
Retrieved the following IP4 configuration from the DHCP daemon:
address 10.231.33.227
netmask 255.255.255.0
broadcast 10.231.33.255
gateway 10.231.32.1
nameserver 192.168.22.22
nameserver 192.168.22.23
domain name 'hatbl.
Now, I'm not exactly sure what windows does, but it clearly works.
In this case, the 'ip route add default via 10.231.32.1 dev wlan0'
command fails (no such process) because there is no route to
10.231.32/24
Adding a manual route thusly:
ip route add 10.231.32.1 dev wlan0
allows the default route to be added (and the network then works fine -
see for instance me filing this bug report).
I suggest a) checking for insane DHCP parameters, and b) issuing a
direct route as above when discovered - it's almost certain to work.
-Rob
--
GPG key available at: <http://
Changed in network-manager: | |
importance: | Unknown → Low |
status: | Unknown → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.