cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
329
Views
0
Helpful
1
Replies

Advertising "natted" networks

jolmo
Level 4
Level 4

Hi

I think this is a simple question but I don't know how to make it.

How can a router advertise or redistribute(dynamically by means of RIP, OSPF,etc) a directly connected network, but "natted". For example, a router connected directly to a LAN 172.16.0.0 /16 advertises (redistribute) this network (by RIP) to a peer router as 192.168.1.0/24 network.

I know how to do it with static routes, but not with dynamic routing.

Thanks in advance

1 Reply 1

gurkang
Level 1
Level 1

hi,

write a static route to null0 for the nat pool

then enter rip configuration mode, you need to redistribute the static routes. It will be good to use route-maps for permitted announcement

the sample config is:

ip nat pool lan 10.0.0.1 10.0.0.15 netmask 255.255.255.240

ip route 10.0.0.0 255.255.255.240 null0

access-list 5 permit 10.0.0.0 0.0.0.15

route-map subnets permit 10

match ip address 5

set metric 1

router rip

redistribute static route-map subnets

regards,