Sunteți pe pagina 1din 2

router ospf 11

network 10.0.0.0 0.0.0.3 area 0


network 172.168.10.0 0.0.255.255 area 0
network 192.128.10.0 0.0.0.255 area 0
network 100.0.0.4 0.0.0.3 area 0
network 192.128.20.0 0.0.0.255 area 0

ip nat inside source static 192.168.10.3 172.168.10.11

ip nat pool nat-pool1 172.168.10.8 172.168.10.55 netmask 255.255.0.0


access-list 1 permit 1 192.168.10.0 0.0.0.255

ip nat inside

ip access-list standard R2NAT


permit 192.168.10.0 0.0.0.255
permit 192.168.20.0 0.0.0.255
permit 192.168.30.0 0.0.0.255

Configure R2 with a NAT pool named R2POOL that uses the first three addresses in
the 209.165.202.128/30 address space. The fourth address is used for static NAT
later in Part 2.

ip nat pool R2POOL 209.165.202.128 209.165.202.130 netmask 255.255.255.252


ip nat pool R2POOL 209.165.202.129 209.165.202.129 netmask 255.255.255.252
inside source list R2NAT pool R2POOL overload

int f0/0
ip nat inside
int s0/1/0
ip nat outside
int s0/0/0
ip nat inside
int s0/0/1
ip nat inside

----------------------------------------------
interface FastEthernet0/0
ip address 192.168.20.1 255.255.255.0
ip nat inside (befele)

interface Serial0/0/0
ip address 10.1.1.2 255.255.255.252
ip nat inside (befele)
!
interface Serial0/0/1
ip address 10.2.2.1 255.255.255.252
ip nat inside (befele)
clock rate 64000
!
interface Serial0/1/0
ip address 209.165.200.225 255.255.255.224
ip nat outside (kifele)

!
router rip
version 2
passive-interface Serial0/1/0
network 10.0.0.0
default-information originate
no auto-summary
!
ip nat pool KIELE 172.168.10.21 172.168.10.55 netmask 255.255.0.0
ip nat inside source list LISTA pool KIFELE overload
ip nat inside source static 192.168.20.254 209.165.202.131 (bentröl-kifele)

ip route 0.0.0.0 0.0.0.0 Serial0/1/0


!
ip access-list standard LISTA
permit 192.168.10.0 0.0.0.255 (192.168.10.0/24)
permit 192.168.20.0 0.0.0.255
permit 192.168.30.0 0.0.0.255

router ospf 10
router-id 4.4.4.4
log-adjacency-changes
network 100.0.0.8 0.0.0.3 area 0
network 209.165.201.0 0.0.0.255 area 0
!
router ospf 11
router-id 1.1.1.1
log-adjacency-changes
network 172.168.0.0 0.0.255.255 area 0
network 10.0.0.0 0.0.0.3 area 0

R2(config)# ip nat pool PUBLIC-POOL 209.165.200.241 209.165.200.250 netmask


255.255.255.224
Configure ACL 2 to permit devices from 192.168.10.0/24 network to be translated
by NAT.
R2(config)# access-list 2 permit 192.168.10.0 0.0.0.255
Bind PUBLIC-POOL with ACL 2.
R2(config)# ip nat inside source list 2 pool PUBLIC-POOL
Configure the proper inside NAT interface.
R2(config)# interface Serial0/0/0
R2(config-if)# ip nat inside
Configure the proper outside NAT interface.
R2(config)# interface Serial0/1/0
R2(config-if)# ip nat outside
You successfully configured dynamic NAT.

S-ar putea să vă placă și