AIM To configure Static and Dynamic NAT between the Routers and
Computers
PROCEDURE
1) Create
a topology using 2 Routers and 2 Computers for Static NAT
2) Create
a topology using 2 Routers and 2 Computers for Dynamic NAT
3) Configure
IP address to routers go to global configuration mode in R1 and R2 configure
connected interfaces
4) Assign
IP address for both Pc's with appropriate IP and subnet mask and default
gateway
5) Configure
both router with Static and Dynamic NAT
6) Double
click PC move to desktop then command prompt give the command ping
STATIC NAT – TOPOLOGY CONFIGURATION
ROUTER 0
Router>
enable
Router#
show ip interface brief
Router#
configure terminal
Router(config)#
interface fastethernet 0/0
Router(config-if)#
ip address 10.0.0.1 255.0.0.0
Router(config-if)#
no shutdown
Router(config-if)#
exit
Router(config)#
interface serial 0/1/0
Router(config-if)#
ip address 20.0.0.1 255.0.0.0
Router(config-if)#
no shutdown
Router(config-if)#
exit
Router(config)#
exit
Router#
configure terminal
Router(config)#
ip route 30.0.0.0 255.0.0.0 20.0.0.2
Router(config)#
exit
ROUTER 1
Router> enable
Router# show ip interface brief
Router# configure terminal
Router(config)# interface fastethernet 0/0
Router(config-if)# ip address 30.0.0.1 255.0.0.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# interface serial 0/1/0
Router(config-if)# ip address 20.0.0.2 255.0.0.0
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# exit
Router# configure terminal
Router(config)# ip route 50.0.0.0 255.0.0.0 20.0.0.1
Router(config)# ip route 10.0.0.0 255.0.0.0 20.0.0.1
Router(config)# exit
Router# exit
ROUTER 0
Router#
configure terminal
Router(config)#
ip nat inside source static 10.0.0.2 50.0.0.3
Router(config)#
interface fastethernet 0/0
Router(config-if)#
ip nat inside
Router(config-if)#
interface serial 0/1/0
Router(config-if)#
ip nat outside
Router(config-if)#
exit
Router(config)#exit
DYNAMIC NAT – TOPOLOGY CONFIGURATION
ROUTER 0
Router#
configure terminal
Router(config)#
interface fastethernet 0/0
Router(config-if)#
ip address 10.0.0.65 255.0.0.0
Router(config-if)#
no shutdown
Router(config-if)#
exit
Router(config)#
interface serial 0/1/0
Router(config-if)#
ip address 20.0.0.1 255.0.0.0
Router(config-if)#
exit
Router(config)#
exit
Router# configure
terminal
Router(config)#
Router(config)#
ip route 30.0.0.0 255.0.0.0 20.0.0.2
Router(config)#
exit
Router# configure
terminal
Router(config)#access-list
1 permit 10.0.0.64 0.0.0.63
Router(config)#
ip nat pool bhc 200.100.100.9 200.100.100.14 netmask 255.255.255.248
Router(config)#
ip nat inside source list 1 pool bhc overload
Router(config)#
interface fastethernet 0/0
Router(config-if)#
ip nat inside
Router(config-if)#
exit
Router(config)#
interface serial 0/1/0
Router(config-if)#
ip nat outside
Router(config-if)#
exit
Router(config)#
exit
ROUTER 1
Router# configure
terminal
Router(config)#
interface fastethernet 0/0
Router(config-if)#
ip address 30.0.0.1 255.0.0.0
Router(config-if)#
no shutdown
Router(config-if)#
exit
Router(config)#
interface serial 0/1/0
Router(config-if)#
ip address 20.0.0.2 255.0.0.0
Router(config-if)#
no shutdown
Router(config-if)#
exit
Router(config)#
exit
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.