Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Configuring subinterfaces
If you are using a routing protocol in a hub-and-spoke topology, you will probably want to use subinterfaces to avoid the split-horizon problem. To configure a subinterface, remove the IP address off the main interface and put it under the subinterface. Configuring a subinterface involves assigning it a number and specifying the type. The following command creates point-topoint subinterface serial0/0.1
Router(config)#interface serial0/0.1 point-to-point
If you are using a multipoint subinterface, you will need to configure frame-relay maps and you cannot rely on inverse-arp. If you are using a point-to-point subinterface, you will need to assign a DLCI to the subinterface. This is only for point-to-point subinterfaces; this is not needed on the main interface or on multipoint subinterfaces. To assign a DLCI to a point-to-point subinterface, enter the following command under the subinterface:
frame-relay interface-dlci dlci
Now first configure R1. Fast Ethernet port and hostname is already configured. Double click on R1 and configure serial port for frame relay encapsulation and further create sub interface for connecting R2, R3, R4. Configure also static route for connecting remaining network.
Configure R1
R1>enable R1#configure terminal
R1(config)#interface serial 0/0/0 R1(config-if)#encapsulation frame-relay R1(config-if)#no shutdown R1(config-if)#exit R1(config-subif)#interface serial 0/0/0.102 point-to-point R1(config-subif)#ip address 192.168.1.245 255.255.255.252 R1(config-subif)#frame-relay interface-dlci 102 R1(config-subif)#exit R1(config)#interface serial 0/0/0.103 point-to-point R1(config-subif)#ip address 192.168.1.249 255.255.255.252 R1(config-subif)#frame-relay interface-dlci 103 R1(config-subif)#exit R1(config)#interface serial 0/0/0.104 point-to-point R1(config-subif)#ip address 192.168.1.253 255.255.255.252 R1(config-subif)#frame-relay interface-dlci 104 R1(config-subif)#exit R1(config)#ip route 192.168.1.64 255.255.255.224 192.168.1.246 R1(config)#ip route 192.168.1.96 255.255.255.224 192.168.1.250 R1(config)#ip route 192.168.1.128 255.255.255.224 192.168.1.254 R1(config)#exit
configure R2
R2>enable R2#configure terminal R2(config)#interface serial 0/0/0 R2(config-if)#encapsulation frame-relay R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/0/0.101 point-to-point R2(config-subif)#ip address 192.168.1.246 255.255.255.252 R2(config-subif)#frame-relay interface-dlci 101 R2(config-subif)#exit R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.245
configure R3
R3>enable R3#configure terminal R3(config)#interface serial 0/0/0 R3(config-if)#encapsulation frame-relay R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 0/0/0.101 point-to-point R3(config-subif)#ip address 192.168.1.250 255.255.255.252 R3(config-subif)#frame-relay interface-dlci 101 R3(config-subif)#exit R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.249 R3(config)#
configure R4
R4>enable R4#configure terminal
R4(config)#interface serial 0/0/0 R4(config-if)#encapsulation frame-relay R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface serial 0/0/0.101 point-to-point R4(config-subif)#ip address 192.168.1.254 255.255.255.252 R4(config-subif)#frame-relay interface-dlci 101 R4(config-subif)#exit R4(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.253 R4(config)#
now verify by doing ping from pc0 to all pc. It should be ping successfully. I have uploaded a configured topology but use it as the final resort first try yourself to configure it.
Router(config)#interface serial 0/0/0 Router(configif)#encapsulation framerelay Router(config-if)#framerelay lmitype {ansi | cisco | q933a}
Enter in interface mode Turns on Frame Relay encapsulation with the default encapsulation type of cisco
Depending on the option you select, this command sets the LMI type to the ANSI standard, the Cisco standard, or the ITU-T Q.933 Annex A standard. Router(config-if)#frame- Sets the DLCI number of 110 on the local interface and enters relay interface-dlci 110 Frame Relay DLCI configuration mode Router(config-fr-dlci)#exit Returns to interface configuration mode Router(config-if)#frame- Maps the remote IP address (192.168.100.1) to the local DLCI number (110). The optional broadcast keyword specifies that relay map ip 192.168.100.1 110 broadcasts across IP should be forwarded to this address. This is broadcast necessary when using dynamic routing protocols.
Router(config-if)#no frame-relay inverse arp Router#show frame-relay map Router#show frame-relay pvc Router#show frame-relay lmi Router#clear frame-relay counters Router#clear frame-relay inarp
Turns off Inverse ARP. Displays IP/DLCI map entries Displays the status of all PVCs configured Displays LMI statistics Clears and resets all Frame Relay counters Clears all Inverse ARP entries from the map table and Frame Relay switch
Router#debug frame-relay Used to help determine whether a router lmi are exchanging LMI packets properly