Re: NAT /w EBGP

From: Carlos G Mendioroz (tron@huapi.ba.ar)
Date: Tue Nov 05 2002 - 08:17:29 GMT-3


Frank,
AFAIK, there are 2 ways of injecting a route into BGP:
-using network command
-redistributing

Both need a pre-existing route in the router, and in the case of
network command, the mask has to match exactly.

Now, if your are natting over a pool of addresses, that does not create
a route to that pool per se, so you need some way to have that route.
It can be a static (default to null as Brian suggests, which I think
is the preferred way anywhere but the lab) or it can be a connected
virtual (aka loopback).
Then you can use network.

frank.yu@japan.bnpparibas.com wrote:
> Hunt,
>
> I have the similar infrastructure on my network. Just use "network
> 201.50.13.0 mask 255.255.255.0" under router bgp xxx on rtr1 and "network
> 200.100.30.0 mask 255.255.255.0" under router bgp xxx on rtr2. It will do
> the job.
>
> Frank
>
>
>
> Internet
> huntl@webcentral.com.au@groupstudy.com - 11/05/2002 10:59 AM
>
>
> Please respond to huntl@webcentral.com.au
>
> Sent by: nobody@groupstudy.com
>
> To: ccielab
>
> cc:
>
>
> Subject: NAT /w EBGP
>
>
> Team:
>
>
> Inside Outside
>
> RTR1----ISP1
> | \ /
> HostA \/
> | /\
> | / \
> RTR2---ISP2
>
> RTR1 & RTR2 are connected by IBGP & OSPF. In addition, RTR1 & RTR2 each
> have 2
> EBGP links connecting to ISP1 & ISP2 respectively.
>
> RTR1 & RTR2 - AS3
> ISP1 - AS1
> ISP2 - AS2
>
> RTR1, Eth0:- 172.16.3.1/24
> RTR2, Eth0:- 172.16.3.2/24
> Host A - 172.16.3.3/24
>
> ISP1 has been assigned the address block 201.50.13.0/24, ISP2 has been
> assigned
> the address block 200.100.30.0/24.
>
> What I want to achieve is that the NAT will translate inside addresses
> appropriately for each ISP's assigned address block.
>
> The problem I am having is that since hostA's IP is being NAT, neither RTR1
> nor
> RTR2 have the NAT range in their Routing Tables, which means I can't
> advertise the NAT range to ISP1 & ISP2 in BGP by "network x.x.x.x mask
> y.y.y.y". So what can I do to advertise these NAT ranges to ISP1 & ISP2??
>
> Any help will be greatly appreciated.
>
> Regards,
> H.
>
>
>
>
>
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dissemination or disclosure, either whole
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message.
> BNP PARIBAS (and its subsidiaries) shall (will) not
> therefore be liable for the message if modified.
>
> ---------------------------------------------
>
> Ce message et toutes les pieces jointes (ci-apres le
> "message") sont etablis a l'intention exclusive de ses
> destinataires et sont confidentiels. Si vous recevez ce
> message par erreur, merci de le detruire et d'en avertir
> immediatement l'expediteur. Toute utilisation de ce
> message non conforme a sa destination, toute diffusion
> ou toute publication, totale ou partielle, est interdite, sauf
> autorisation expresse. L'internet ne permettant pas
> d'assurer l'integrite de ce message, BNP PARIBAS (et ses
> filiales) decline(nt) toute responsabilite au titre de ce
> message, dans l'hypothese ou il aurait ete modifie.
>

-- 
Carlos G Mendioroz  <tron@huapi.ba.ar>  LW7 EQI  Argentina


This archive was generated by hypermail 2.1.4 : Tue Dec 03 2002 - 07:22:53 GMT-3