[TriLUG] multiple IP from the same network card?

Jeremy Portzer jeremyp at pobox.com
Wed Jun 18 14:31:38 EDT 2003


On Wed, 2003-06-18 at 14:24, Chris Bullock wrote:


> Adding to Jeremy's reply, you can use this same machine to route between 
> the two subnets add this line to the rc.local
> ip r add "destination network" via "destination gateway addres"
> 
> example
> ip r add 10.0.22.0/24 via 10.0.22.1
> ip r add 10.0.33.0/24 via 10.0.33.1
> 
> you can also do this from the command line but it will stop routing when 
> you reboot unless you add it to the rc.local

Many distributions also come with another system for saving static
routes, so you don't have to use rc.local.  For example, for Red Hat
Linux there's the file /etc/sysconfig/static-routes; see here:
http://www.redhat.com/support/resources/tips/Network-Config-Tips/Network-Config-Tips-4.html

But certainly the rc.local setup would work too.

--Jeremy
-- 
/=====================================================================\
| Jeremy Portzer       jeremyp at pobox.com       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\=====================================================================/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030618/1b26782b/attachment.pgp>


More information about the TriLUG mailing list