https://bugzilla.novell.com/show_bug.cgi?id=266215
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=266215#c17
Marius Tomaschewski changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mt@novell.com, varkoly@novell.com
AssignedTo|mt@novell.com |tambet@novell.com
--- Comment #17 from Marius Tomaschewski 2008-05-08 05:50:03 MST ---
No. I've verified it again just now.
The patch from attachment 206091 that is also in dhcp-client-3.0.6-78
as currently in FACTORY (and -74) fixes the problem, you'll get:
# ip addr show dev eth1
3: eth1: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:40:05:40:91:02 brd ff:ff:ff:ff:ff:ff
inet 172.30.2.67/32 brd 172.30.2.255 scope global eth1
inet6 fe80::240:5ff:fe40:9102/64 scope link
valid_lft forever preferred_lft forever
# ip route show
172.30.3.254 dev eth1 scope link
169.254.0.0/16 dev eth1 scope link
127.0.0.0/8 dev lo scope link
default via 172.30.3.254 dev eth1
When you enable DHCP_DEBUG, in the /var/log/dhclient-script, you'll
find something like this:
[...]
interface=eth1
new_broadcast_address=172.30.2.255
new_dhcp_lease_time=3600
new_dhcp_message_type=5
new_dhcp_server_identifier=172.30.3.254
new_domain_name=example.org
new_domain_name_servers=172.16.0.250
new_expiry=1210248722
new_ip_address=172.30.2.67
new_network_number=172.30.2.67
new_routers=172.30.3.254
new_subnet_mask=255.255.255.255
pid=8850
reason=REBOOT
[...]
+ for router in '$new_routers'
++ route add default gw 172.30.3.254
+ err='SIOCADDRT: No such process'
+ case "$err" in
++ test -x /sbin/ip
++ /sbin/ip -f inet -o route list match 172.30.3.254
++ grep -v '^default'
++ grep -c -v '^$'
+ matches=0
+ test -n 0 -a 0 -eq 0
+ route add -host 172.30.3.254 dev eth1
+ route add default gw 172.30.3.254
+ break
Where it does not work is when you're using NetworkManager
on 11.0 / FACTORY, because it is using a different (own)
dhclient script/code there:
Apr 11 12:21:12 rana NetworkManager: <WARN> nm_system_device_set_ip4_route():
Failed to set IPv4 default route on 'eth1': No such process
Further, it also does not work in dhcpcd-3.x that should
contain this fix, but seems to use wrong args for the host
(gateway) route call:
dhcpcd[11012]: eth1: adding IP address 172.30.2.67/32
dhcpcd[11012]: eth1: adding route to 172.30.3.254/0 via 255.255.255.255 metric
0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dhcpcd[11012]: eth1: netlink: Invalid argument
dhcpcd[11012]: eth1: adding default route via 172.30.3.254 metric 0
dhcpcd[11012]: eth1: netlink: No such process
Reassigning to Ingo to fix NetworkManager and adding Peter into
Cc to fix dhcpcd (only 11.0 in both cases or 10.3 too? Gerald?).
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.