Re: Adding static routes with fc17

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux