This is my Final preparation to facing my ICND2 Exam hopefully this is my last journey in CCNA.
R1 Config :
hostname R1
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
no ip address
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
!
interface Serial0/0.2 multipoint
ip address 170.200.123.1 255.255.255.248
ip ospf network broadcast
frame-relay interface-dlci 102
frame-relay interface-dlci 103
!
!
interface Serial0/1
ip address 170.200.123.9 255.255.255.248
serial restart-delay 0
!
interface FastEthernet1/0
ip address 192.168.123.3 255.255.255.0
duplex auto
speed auto
!
router ospf 10
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.10.123.0 0.0.0.255 area 0
network 170.200.123.0 0.0.0.15 area 0
!
!
end
R2 Config :
!
hostname R2
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Serial0/0
no ip address
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
!
interface Serial0/0.1 multipoint
ip address 170.200.123.2 255.255.255.248
ip ospf network broadcast
frame-relay interface-dlci 201
frame-relay interface-dlci 203
!
router ospf 10
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 170.200.123.0 0.0.0.15 area 0
!
!
!
end
R3 Config :
!
hostname R3
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial0/0
no ip address
encapsulation frame-relay
ip ospf network broadcast
serial restart-delay 0
!
interface Serial0/0.1 multipoint
ip address 170.200.123.3 255.255.255.248
ip ospf network broadcast
frame-relay interface-dlci 301
frame-relay interface-dlci 302
!
!
router ospf 10
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 170.200.123.0 0.0.0.15 area 0
!
!
!
end
Corp Config :
!
hostname Corp
!
!
!
interface Serial0/1
ip address 170.200.123.10 255.255.255.252
ip nat outside
ip virtual-reassembly
serial restart-delay 0
clock rate 128000
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
!
interface FastEthernet1/0.2
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
interface FastEthernet1/0.3
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
!
ip route 0.0.0.0 0.0.0.0 170.200.123.9
!
ip nat inside source list 1 interface Serial0/1 overload
!
access-list 1 permit 192.168.2.0 0.0.0.255
access-list 1 permit 192.168.3.0 0.0.0.255
!
!
!
!
!
end
SW1 Config:
!
hostname SW1
!
!
interface FastEthernet0/0
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
!
interface Vlan1
no ip address
!
endvlan database
vtp server
vtp domain DRF
vtp password 123
vlan 2 name IT
vlan 3 name Sales
exit
SW2 Config :
hostname SW2
!
!
!
interface FastEthernet0/0
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
vlan database
vtp client
vtp domain DRF
vtp password 123
exit
SW3 Config :
!
hostname SW3
!
!
!
interface FastEthernet0/0
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
vlan database
vtp client
vtp domain DRF
vtp password 123
exit
PC2 Config :
!
hostname PC2
!
!
!
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0
no ip route-cache
duplex auto
speed auto
!
ip default-gateway 192.168.2.1
!
end
PC3 Config :
!
hostname PC3
!
!
!
interface FastEthernet0/0
ip address 192.168.3.2 255.255.255.0
no ip route-cache
duplex auto
speed auto
!
ip default-gateway 192.168.3.1
!
end
Test Result :
PC2#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/38/124 ms
PC2#
## See the translation/PAT are works
Corp#sho ip nat trans
Pro Inside global Inside local Outside local Outside global
icmp 170.200.123.10:1 192.168.2.2:1 2.2.2.2:1 2.2.2.2:1
icmp 170.200.123.10:2 192.168.2.2:2 2.2.2.2:2 2.2.2.2:2
Corp#