Public Router using Private Links
I am running a public core router using private links from my provider.
Details:
RH7.3
9 interfaces (all Intel)
eth0 is default gateway and has a private IP address all other interfaces are links to other routers or networks eth3 has a public IP address
The core router will rarely need to access sites out on the internet, but when it does it cannot get there because the eth0 has a private IP address. Is there a way to force the router to use the ip address from eth3 to access sites on the internet? If so, how would I route traffic originating from eth3 to the internet? I have tried a few policy statements coupled with some separate rules and tables to no avail. All I am getting is Destination host unreachable when I issue the command "ping -v -I eth3 www.yahoo.com".
Please advise. Thank you in advance.
Walt
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Walt,
Try this....the "src" keyword is a hint to the kernel about what address to select on a given route. This will only work if the kernel is asked to select the source IP based on a route.
# ip route change default via $CURRENTGATEWAY src $IP_ON_ETH3
This might work before the change:
# ping -n -v -I $IP_ON_ETH3 www.yahoo.com
See also:
http://linux-ip.net/html/routing-saddr-selection.html
http://linux-ip.net/gl/ip-cref/node155.html
Good luck,
-Martin
: I am running a public core router using private links from my provider. :
: Details:
: RH7.3
: 9 interfaces (all Intel)
: eth0 is default gateway and has a private IP address
: all other interfaces are links to other routers or networks : eth3 has a public IP address
:
: The core router will rarely need to access sites out on the internet, : but when it does it cannot get there because the eth0 has a private IP : address. Is there a way to force the router to use the ip address from : eth3 to access sites on the internet? If so, how would I route traffic : originating from eth3 to the internet? I have tried a few policy : statements coupled with some separate rules and tables to no avail. All : I am getting is Destination host unreachable when I issue the command : "ping -v -I eth3 www.yahoo.com".
:
: Please advise. Thank you in advance.
:
: Walt
:
Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thank you sooo much!!! That worked perfectly. Also thanks for the links to the nice documentation. I've been looking for similar documentation for a couple of weeks now.
Walt
----- Original Message -----
From: "Martin A. Brown" <[email protected]>
To: "Walter D. Wyndroski" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, March 25, 2003 11:50 AM
Subject: Re: [LARTC] Public Router using Private Links
Quoted 55 lines
Walt,
Try this....the "src" keyword is a hint to the kernel about what address to select on a given route. This will only work if the kernel is asked to select the source IP based on a route.
# ip route change default via $CURRENTGATEWAY src $IP_ON_ETH3This might work before the change:
# ping -n -v -I $IP_ON_ETH3 www.yahoo.comSee also:
http://linux-ip.net/html/routing-saddr-selection.html
http://linux-ip.net/gl/ip-cref/node155.htmlGood luck,
-Martin
: I am running a public core router using private links from my provider. :
: Details:
: RH7.3
: 9 interfaces (all Intel)
: eth0 is default gateway and has a private IP address
: all other interfaces are links to other routers or networks : eth3 has a public IP address
:
: The core router will rarely need to access sites out on the internet, : but when it does it cannot get there because the eth0 has a private IP : address. Is there a way to force the router to use the ip address from : eth3 to access sites on the internet? If so, how would I route traffic : originating from eth3 to the internet? I have tried a few policy : statements coupled with some separate rules and tables to no avail. All : I am getting is Destination host unreachable when I issue the command : "ping -v -I eth3 www.yahoo.com".
:
: Please advise. Thank you in advance.
:
: Walt
:--
Martin A. Brown --- SecurePipe, Inc. --- [email protected]--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Signature · 8 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/