Cisco Command List Tutorial 220820 190333
Cisco Command List Tutorial 220820 190333
Cisco Command List Tutorial 220820 190333
DLCI = 103
DLCI = 301
Multipoint (one subnet)
• Give the interface an ip address and enable Frame Relay
encapsulation:
R1(config)#interface serial 0/0
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#encapsulation frame-relay (ietf)
• Configure LMI signaling type: (Optional as discussed with ISP)
R1(config-if)#frame-relay lmi-type ansi
(options: ansi, cisco, q933a)
• Configure Frame Relay mapping:
R1(config-if)# frame-relay map ip 1.1.1.2 102 broadcast (ietf)
R1(config-if)# frame-relay map ip 1.1.1.3 103 broadcast
R2(config)#interface serial 0/0
R2(config-if)#ip address 1.1.1.2 255.255.255.0
R2(config-if)#encapsulation frame-relay
R2(config-if)# frame-relay map ip 1.1.1.1 201 broadcast
R2(config-if)# frame-relay map ip 1.1.1.3 201 broadcast
R3(config)#interface serial 0/0
R3(config-if)#ip address 1.1.1.3 255.255.255.0
R3(config-if)#encapsulation frame-relay
R3(config-if)# frame-relay map ip 1.1.1.1 301 broadcast
R3(config-if)# frame-relay map ip 1.1.1.2 301 broadcast
Point-to-point (different subnets; one subnet per subinterface)
• Enable Frame Relay encapsulation:
R1(config)#interface serial 0/0
R1(config-if)#encapsulation frame-relay
• Give an ip address to a subinterface and configure its DLCI:
R1(config)#interface serial 0/0.102 point-to-point
R1(config-subif)#ip address 1.1.1.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 102
R1(config)#interface serial 0/0.103 point-to-point
R1(config-subif)#ip address 2.2.2.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 103
R2(config)#interface serial 0/0
R2(config-if)#encapsulation frame-relay
R2(config)#interface serial 0/0.201 point-to-point
R2(config-subif)#ip address 1.1.1.2 255.255.255.0
R2(config-subif)#frame-relay interface-dlci 201
R3(config)#interface serial 0/0
R3(config-if)#encapsulation frame-relay
R3(config)#interface serial 0/0.301 point-to-point
R3(config-subif)#ip address 2.2.2.2 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 301
Frame Relay Verification and troubleshoot
R1#show interfaces serial 0/0 Shows the encapsulation type
R1#show frame-relay PVC Lists PVC status information
R1#show frame-relay map Lists DLCI to IP mapping
R1#show frame-relay lmi Lists LMI status information
R1#debug frame-relay lmi Displays the content of LMI messages
R1#debug frame-relay events Lists messages about certain Frame Relay
events, including Inverse ARP messaeges
Network Address Translation (NAT)
Static NAT
• Define the outside and inside interfaces:
R1(config)#interface serial 0/0
R1(config-if)#ip nat outside
R1(config)#interface FastEthernet 1/1
R1(config-if)#ip nat inside
• Configure static NAT statement:
R1(config)#ip nat inside source static 192.168.1.10 200.1.1.1
Dynamic NAT
• Define the outside and inside interfaces:
• Create an ACL that determines the IP addresses that are allowed
to be translated:
R1(config)#access-list 3 permit 192.168.1.0 0.0.0.255
• Create a pool of public IP addresses:
R1(config)#ip nat pool PUB 200.1.1.1 200.1.1.6 netmask 255.255.255.248
• Configure NAT statement:
R1(config)#ip nat inside source list 3 pool PUB
NAT Overload (PAT)
• The same as dynamic NAT with the use of the overload keyword at
the end of NAT statement:
R1(config)#ip nat inside source list 3 pool PUB overload
NAT verification and troubleshoot
R1#show run Useful in viewing the configuration of NAT
pool and the inside and outside interfaces
R1#show access-lists Displays access lists, including the one
used for NAT
R1#show ip nat stasitics Shows counters for packets and NAT table
entries, as well as basic configuration
information
R1#show ip nat translations Displays the NAT table
R1#clear ip nat translations * Clears all the dynamic entries in the NAT
table
R1#debug ip nat Issues a log message describing each
packet whose ip address is translated with
NAT