[Cialug] Route updates

Barry Von Ahsen barry at vonahsen.com
Thu Feb 15 10:53:10 CST 2007


you can do post-up scripting in /etc/network/interfaces

something like*

iface eth0 inet static
	address 1.2.3.4
	netmask 255.255.255.0
	post-up route add net blah blah

-barry

*I've never done it myself, but I've heard tales :)


Nathan C. Smith wrote:
> Anybody know about debian/ubuntu?  It seems to be different. 
> 
>> -----Original Message-----
>> From: Daniel Wittenberg [mailto:daniel-wittenberg at starken.com] 
>> Sent: Thursday, February 15, 2007 8:41 AM
>> To: Central Iowa Linux Users Group
>> Subject: RE: [Cialug] Route updates
>>
>> Default gateway is held in /etc/sysconfig/network file as 
>> GATEWAY  -OR-
>> in /etc/sysconfig/network-scripts/ifcfg-<interface>.  If you have
>> multiple gateway statements the last one read wins, and makes things
>> very interesting for troubleshooting :)
>>
>> Dan
>>
>> On Thu, 2007-02-15 at 08:38 -0600, Nathan C. Smith wrote:
>>> If there is nothing in the static-routes file where is the default
>>> route
>>> coming from?  A file for the interface configuration?
>>>
>>> (network config is one area where the GUI has been my crutch for too
>>> long.)
>>>
>>> -Nate
>>>
>>>> -----Original Message-----
>>>> From: Dave Weis [mailto:djweis at internetsolver.com]
>>>> Sent: Thursday, February 15, 2007 8:35 AM
>>>> To: Central Iowa Linux Users Group
>>>> Subject: Re: [Cialug] Route updates
>>>>
>>>> Nathan C. Smith wrote:
>>>>> Where is route information stored?
>>>>> If I do a route add  or del is the new route permanent?
>>>> No it's not.
>>>>
>>>>> Is the information about routing stored somewhere in /etc
>>> or /var ?
>>>>> I'm mostly asking about debian/ubuntu, but curious about
>>>> redhat/fedora.
>>>>
>>>> On redhat based systems there is a file called
>>>> /etc/sysconfig/static-routes that is created by the sysadmin to
>>>> automatically make static routes when the system boots. The normal
>>>> routes for each interface are created when the interfaces come up.
>>>>
>>>> dave
>>>> _______________________________________________
>>>> Cialug mailing list
>>>> Cialug at cialug.org
>>>> http://cialug.org/mailman/listinfo/cialug
>>>>
>>> _______________________________________________
>>> Cialug mailing list
>>> Cialug at cialug.org
>>> http://cialug.org/mailman/listinfo/cialug
>>>
>>>
>>>
>> -- 
>> =======================
>> Daniel Wittenberg
>> RHCE
>> President/CTO
>> The Starken Group Ltd.
>> http://www.starken.com
>> (877) 782-7536 x1001
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
>>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug




More information about the Cialug mailing list