Hi all,
I have a simple isp topology built in GNS3, for testing (pppoe) dialers:
cisco router(R1) connected to my pc network card, doing NAT translations for all the devices in the topology.
I know how to configure NAT for spesific ip range, but i can't find out how to configure NAT for networks which are learned through ospf (or any other dynamic way).
The current config of R1:
Code:
hostname R1
!
l2tp-class 015
hostname L2TP_ROUTER
!
track 1 interface Virtual-PPP1 ip routing
!
pseudowire-class dialer-to-015
encapsulation l2tpv2
protocol l2tpv2 015
ip local interface FastEthernet0/0
!
interface FastEthernet0/0
ip address 192.168.1.33 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.16.20.33 255.255.255.252
ip nat inside
ip virtual-reassembly
speed 100
full-duplex
!
interface Virtual-PPP1
ip address negotiated
ip nat outside
ip virtual-reassembly
load-interval 30
no cdp enable
ppp pap sent-username sup2 password 0 xxx
pseudowire X.X.170.44 11 pw-class dialer-to-015
!
router ospf 1
log-adjacency-changes
network 172.16.20.33 0.0.0.0 area 0
default-information originate
!
ip route 0.0.0.0 0.0.0.0 Virtual-PPP1 track 1
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 192.168.1.1 200
ip route X.X.170.44 255.255.255.255 FastEthernet0/0 192.168.1.1
!
ip nat inside source route-map ViPPP1 interface Virtual-PPP1 overload
!
ip access-list extended NAT
permit ip 10.0.0.0 0.255.255.255 any
permit ip 172.16.0.0 0.0.255.255 any
deny ip any any
!
!
route-map DEFAULT_GW permit 10
match ip address NAT
match interface FastEthernet0/0
!
route-map ViPPP1 permit 10
match ip address NAT
match interface Virtual-PPP1
[ internet <-> R1 (NAT) <-> ospf networks ]
So i'm looking for something like:
Code:
route-map ViPPP1 permit 10
match interface Virtual-PPP1
match ospf area 1
! OR
match ospf networks
How to do NAT for networks which are learned through ospf?