Router (config) # frame-relay switching simulate a Router as a frame relay switch
Router (config) # inter s1/1
Router (config-if) # clock rate 128000
Router (config-if) # encapsulation frame-relay configuration interface encapsulates frame relay
The default Frame Relay encapsulation enabled on the interface is Cisco encapsulation. To connect to a non-Cisco router, use the itef parameter.
Router (config-if) # no shu
Router (config) # inter s1/2
Router (config-if) # clo rate 128000
Router (config-if) # encapsulation fr
Router (config-if) # no shu
Changed state to upnointer s1/3
Router (config-if) # clo rate 128000
Router (config-if) # encapsulation fr
Router (config-if) # no shu
Router (config) # inter s1/1
Router (config-if) # frame-relay lm-type cisco configuration lc-type
Router (config-if) # frame-relay intf-type dce
Router (config-if) # inter s1/2
Router (config-if) # frame-relay lm-type cisco
Router (config-if) # frame-relay intf-type dce
Router (config-if) # inter s1/3
Router (config-if) # frame-relay lm-type cisco
Router (config-if) # frame-relay intf-type dce
Configure the pvc between two router interfaces
Router (config) # inter s1/1
Router (config-if) # frame-relay route 103 inter s1/2 301
Router (config-if) # frame-relay route 104 inter s1/3 401
Router (config-if) # exit
Router (config) # inter s1/2
Router (config-if) # frame-relay route 301 inter s1/1 103
Router (config-if) # frame-relay route 304 inter s1/3 403
Router (config-if) # exit
Router (config) # inter s1/3
Router (config-if) # frame-relay route 401 inter s1/1 104
Router (config-if) # frame-relay route 403 inter s1/2 304
Router (config-if )#
Router # show frame-relay route
Input IntfInput DlciOutput Intf Output Dlci Status
Serial1/1 103 Serial1/2 301 active
Serial1/1 104 Serial1/3 401 active
Serial1/2 301 Serial1/1 103 active
Serial1/2 304 Serial1/3 403 active
Serial1/3 401 Serial1/1 104 active
Serial1/3 403 Serial1/2 304 active
It indicates that three PVC configurations on vror2 R2 are active.
R1 Configuration
Router (config) # inter s1/1
Router (config-if) # ip address 172.16.134.1 255.255.255.0
Router (config-if) # encapsulation fr interface encapsulates Frame Relay
Router (config-if) # frame-relay lm-type cisco
Router (config) # inter fa0/0
Router (config-if) # ip add
Router (config-if) # ip address 192.168.1.1 255.255.255.0
Router (config-if) # no shu
If the IOS version of the Cisco router is 11.2 or a later version, the router can automatically negotiate with the MNS as the type
So it does not deserve
Router (config) # router rip
Router (config-router) # ver 2
Router (config-router) # no auto-summary
Router (config-router) # network 172.16.134.0
Router (config-router) # network 192.168.1.0
Router (config-router) # exit
R3 and R4 are the same as R1
Ping Test
Router # ping 172.16.134.1 source 192.168.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.134.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.4.1
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/155/200 MS
View the ing of Frame Relay
Router # show frame-relay map
Serial1/1 (up): ip 172.16.134.3 dlci 103 (0x67,0x1870), dynamic,
Broadcast, status defined, active
Serial1/1 (up): ip 172.16.134.4 dlci 104 (0x68, 0x1880), dynamic,
Broadcast, status defined, active
The above output shows the reverse ARP effect. The result shows that each interface encapsulated with frame relay in Router R1 contains two active DLCI, each entry displays the dling between the remote IP address and the local DLCI.
Broadcast "parameter allows transmitting broadcast or multicast traffic on PVC" dynamic indicates dynamic ing
Each vro cannot ping the IP address of its own serial interface, however, you can ping the IP address of the serial interface that remotely encapsulates Frame Relay because its own frame relay ing table does not have its own interface IP address and DLCI ing entries. Reverse ARP does not solve this problem through dynamic ing. It can only be solved through static ing.
Router # show ip route rip
R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:07, Serial1/1
R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:27, Serial1/1
Router # show ip route rip
R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:00, Serial1/2
R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:05, Serial1/2
Router # show ip route rip
R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:18, Serial1/3
R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:27, Serial1/3
In this experiment, the frame relay switch adopts a fully-interconnected PVC topology on vror2 R2.
However, in practical applications, the topology (center-Branch) is generally used to save costs.
That is, only the PVC from the branch to the center is used. If R1 is the Center route, R2 and R3 are the branch routes.
The configuration on R2 is as follows:
Router (config) # inter s1/2
Router (config-if) # no frame-relay route 304 interface s1/3 403
Router (config-if) # inter s1/3
Router (config-if) # no frame-relay route 403 interface s1/2 304
On R3 and R4
Router # show frame-relay map
Serial1/2 (up): ip 172.16.134.1 dlci 301 (0x12D, 0x48D0), dynamic,
Broadcast, status defined, active
Router # show frame-relay map
Serial1/3 (up): ip 172.16.134.1 dlci 401 (0x191,0x6410), dynamic,
Broadcast, status defined, active
We can see that there is only one ing between R3 and R4 on the router R1 of the central site.
The network between R4 and R3 is inaccessible.
R1
Configure static ing for Frame Relay
Router (config) # inter s1/1
Router (config-if) # no frame-relay inverse-arp
Disable reverse ARP. It is enabled by default.
Router (config-if) # frame-relay map ip address 172.16.134.3 103 broadcast
Configure static Frame Relay Mappings
Router (config-if) # frame-relay map ip address 172.16.134.4 104 broadcast
Router (config-if) # frame-relay map ip address 172.16.134.1 104 broadcast
Configure the IP address ing of your own interface to allow you to ping the IP address of this interface on the router.
R3
Router (config) # inter s1/2
Router (config-if) # no frame-relay inverse-arp
Router (config-if) # frame-relay map ip address 172.16.134.1 301 broadcast
Router (config-if) # frame-relay map ip address 172.16.134.4 304 broadcast
Router (config-if) # frame-relay map ip address 172.16.134.3 301 broadcast
R4
Router (config) # inter s1/3
Router (config-if) # no frame-relay inverse-arp
Router (config-if) # frame-relay map ip address 172.16.134.1 401 broadcast
Router (config-if) # frame-relay map ip address 172.16.134.3 403 broadcast
Router (config-if) # frame-relay map ip address 172.16.134.4 401 broadcast
R1 # show frame-relay map
Serial1/1 (up): ip 172.16.134.1 dlci 104 (0x68, 0x1880), static,
Broadcast,
CISCO, status defined, active
Serial1/1 (up): ip 172.16.134.3 dlci 103 (0x67,0x1870), static,
Broadcast,
CISCO, status defined, active
Serial1/1 (up): ip 172.16.134.4 dlci 104 (0x68, 0x1880), static,
Broadcast,
CISCO, status defined, active
R3 # show frame-relay map
Serial1/2 (up): ip 172.16.134.1 dlci 301 (0x12D, 0x48D0), static,
Broadcast,
CISCO, status defined, active
Serial1/2 (up): ip 172.16.134.3 dlci 301 (0x12D, 0x48D0), static,
Broadcast,
CISCO, status defined, active
Serial1/2 (up): ip 172.16.134.4 dlci 301 (0x12D, 0x48D0), static,
Broadcast,
CISCO, status defined, active
R4 # show frame-relay map
Serial1/3 (up): ip 172.16.134.1 dlci 401 (0x191,0x6410), static,
Broadcast,
CISCO, status defined, active
Serial1/3 (up): ip 172.16.134.3 dlci 401 (0x191,0x6410), static,
Broadcast,
CISCO, status defined, active
Serial1/3 (up): ip 172.16.134.4 dlci 401 (0x191,0x6410), static,
Broadcast,
CISCO, status defined, active
Encapsulate Frame Relay. Each interface uses static ing.
R1 # show ip route rip
R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:26, Serial1/1
R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:07, Serial1/1
R1 # show ip interface s1/1
Serial1/1 is up, line protocol is up
Internet address is 172.16.134.1/24
Broadcast address is 255.255.255.255.255
After the Split horizon is disabled interface encapsulates frame relay, the horizontal Split is automatically disabled.
R1 (R1 (config) # inter s1/1
R1 (config-if) # enable horizontal split for ip split-horizon
R1 # clear ip route * clear route table
R1 # show ip route rip
R192.168.4.0/24 [120/1] via 172.16.134.4, 00:00:07, Serial1/1
R192.168.3.0/24 [120/1] via 172.16.134.3, 00:00:11, Serial1/1
Reacquire
R3 # show ip route rip
R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:15, Serial1/2
R4 # show ip route rip
R192.168.1.0/24 [120/1] via 172.16.134.1, 00:00:06, Serial1/3
R3 has no R4 route
R4 has no route of R3