It’s seems like in opensuse 11.3 dhclient supports static routes via dhcp.
my isp doesn’t provides routes for linux, only for windows. So i changed config from
option rfc3442-classless-static-routes_raw code 121 = array of unsigned integer 8;
to
option rfc3442-classless-static-routes_raw code 249 = array of unsigned integer 8;
Neither via networkmanager, neither via ifup i wasn’t able to get routes.
In one advise for ubuntu there where mentioned option rfc3442-classless-static-routes but not rfc3442-classless-static-routes_raw
So I changed it too. After this networkmanager was able too get routes. But not ifup.
So, i have few questions.
Will this default config work wen ISP will provides routes for linux?
Is there a way to make ifup to understand routes via dhcp?
I don’t know the answer to your questions, but your code helped solve my problem. I was not getting an IP or route from a Comcast cable modem. I switched to dhclient and made your config changes and now it works again. Running opensuse 13.1 on an HP 5700 with a Realtek nic attached to a Motorola SB6141 cable modem.
First question has to be what your scenario and objectives are.
Configuring static routes is a necessary configuration but only used in somewhat unusual situations, ie partitioned networks where each network is side by side or otherwise not discoverable using the default gateway.
Note that the MAN pages explicitly states that this is not a solution to setting the default gateway, you should instead use the router option
option static-routes *ip-address *ip-address, *ip- address *ip-address… ]
****Lists static routes that the client should install in its routing cache. If multiple routes to the same destination are specified, they are listed in descending order of priority. The list consists of IP address pairs: the first address is the destination address; the second address is the router for the destination. The default route (0.0.0.0) is an illegal destination for a static route. To specify the default route, use the routers option.
I haven’t set this option before, but I’d also try the syntax as described, removing the RFC description as described in the MAN pages.
I’d also remind you that TCP/IP is a 2-way communication protocol, so if you set up static routes from one network to another, you also need to set up corresponding static routes in the other network back to the current.