Community discussions

MikroTik App
 
goldik
just joined
Topic Author
Posts: 3
Joined: Mon Oct 12, 2009 10:15 pm

BGP and NAT on a single router

Wed Oct 28, 2009 1:20 pm

Please help me configure the router (version 3.22), which raised BGP, and which should be NAT.
Default Route set by BGP

# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
Db 0.0.0.0 / 0 172.16.1.17 Re ... 20 \

Real IP goes to world frought added route with distanse 1, through src-address 91.213.0.253
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
AS 0.0.0.0 / 0 91.213.0.253 172.16.1.17 Re ... 1

real IP is working well, but if I turn on the NAT, it ignores the default route with DISTANCE 1 and the packages come without PREF-SRC,

Tracing through the real IP

tracert gooogle.com [64.233.169.10


1 4 ms 15 ms 2 ms 91.213.0.253
2 2 ms 2 ms 4 ms 172.16.1.17
3 12 ms 13 ms 10 ms 88.81.2.50
4 * * *
5 63 ms 51 ms 53 ms 209.85.29.2
6 63 ms 59 ms 60 ms 72.14.233.104
7 138 ms 137 ms 138 ms 216.239.43.90
8 154 ms 150 ms 154 ms 72.14.238.136

Tracing through NAT

tracert gooogle.com [64.233.169.10

1 <1 ms <1 ms <1 ms 192.168.1.10
2 1 ms 3 ms 4 ms 172.16.1.17
3 * * *
4 * * *
5 * ^ C


What I am doing wrong and how to get it right.
 
User avatar
gmsmstr
Trainer
Trainer
Posts: 983
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: BGP and NAT on a single router

Wed Oct 28, 2009 4:15 pm

I would assume that you don't have a masq rule.