Adding static routes with fc17
Ed Greshko
Ed.Greshko at greshko.com
Wed Jul 18 01:14:46 UTC 2012
On 07/18/2012 09:07 AM, Alex wrote:
> Hi,
>
>>> I have an fc17 install with a single interface and need to add another
>>> route in addition to the default route. Previously, I could create
>>> "route-eth0" (assuming eth0) with the following:
>>>
>>> x.x.x.x/z.z.z.z dev eth0
>> FWIW, I switched over a VM to use network instead of NetworkManager....
>>
>> created route-p2p1
>>
>> with the content...
>>
>> 192.168.1.0/24 dev p2p1
>>
>> And on reboot....
>>
>> [egreshko at f17 ~]$ netstat -rn
>> Kernel IP routing table
>> Destination Gateway Genmask Flags MSS Window irtt Iface
>> 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 p2p1
>> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 p2p1
>> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 p2p1
>> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 p2p1
>>
>> So, it should work for you too.....
> It didn't. Not only was there no static route, but there was no routes
> whatsoever.
>
> There must be something else on your system that's creating that
> static route for you. Perhaps some remnants of NetworkManager?
No. The NetworkManger is totally disabled.....
After editing the /etc/sysconfig/network-scripts/route-p2p1 script you can run...
/etc/sysconfig/network-scripts/ifup-routes p2p1 (or whatever interface you have)
to see if you get any errors. This script is what is being executed.
> I have a /29, and other than that, the configuration is the same as yours.
>
> This is also something that can't really be done remotely. The moment
> I saved the route-eth0 file, I lost network connectivity. What is it
> about that system that's perpetually looking for that file? It was
> really bizarre. I didn't even restart the networking, and the
> networking was changed.
>
> Thankfully it was in a vm, so I just rebooted it remotely thru virt-manager.
>
> Has anyone come up with the proper documentation on how to do this?
> Sure would be appreciated.
AFAIK, there isn't any thing running in the background looking for or constantly
referencing the route-eth0 file.
I think this is the "proper" documentation.... I think you need to find out why it
doesn't work for you.
--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage
More information about the users
mailing list