All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Public Router using Private Links
Date: Tue, 25 Mar 2003 16:50:23 +0000	[thread overview]
Message-ID: <marc-lartc-104861111318222@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104860936715348@msgid-missing>

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
 :

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-03-25 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-25 16:21 [LARTC] Public Router using Private Links Walter D. Wyndroski
2003-03-25 16:50 ` Martin A. Brown [this message]
2003-03-25 17:55 ` Walter D. Wyndroski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-104861111318222@msgid-missing \
    --to=mabrown-lartc@securepipe.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.