帧中继基本配置

帧中继试验_第1张图片

帧中继交换机配置:

FR1

  frame-relay switching

!

  interface Serial0/0

  no shutdown

encapsulation frame-relay

  clock rate 64000

  frame-relaylmi-type cisco

frame-relay intf-type dce

  frame-relayroute 100 interface Serial0/1 101

  frame-relayroute 200 interface Serial0/2 201

!

interface Serial0/1

no shutdown

  encapsulation frame-relay

frame-relay lmi-type cisco

  frame-relayintf-type nni

  frame-relayroute 101 interface Serial0/0 100

!        

interface Serial0/2

no shutdown

encapsulation frame-relay

frame-relay lmi-type cisco

frame-relay intf-type nni

frame-relay route 201 interface Serial0/0 200

FR2:

  frame-relay switching

  interface Serial0/0

no shutdown

encapsulation frame-relay

  clockrate 64000

  frame-relaylmi-type cisco

  frame-relayintf-type dce

  frame-relayroute 102 interface Serial0/1 101

!        

interface Serial0/1

no shutdown

encapsulation frame-relay

frame-relay lmi-type cisco

frame-relay intf-type nni

frame-relay route 101 interfaceSerial0/0 102

FR3:

frame-relay switching

  !

interface Serial0/0

no shutdown

  encapsulationframe-relay

  clockrate 64000

  frame-relay lmi-type cisco

  frame-relay intf-type dce

  frame-relay route 202 interface Serial0/1 201

!        

interface Serial0/1

no shutdown

  encapsulationframe-relay

  frame-relaylmi-type cisco

  frame-relay intf-type nni

  frame-relay route 201 interface Serial0/0 202

R1:

interface FastEthernet0/0

  ip address 192.168.1.1 255.255.255.0

  noshutdown

!        

interface Serial1/0

  ip address 202.196.2.1 255.255.255.0 secondary

  ip address 202.196.1.1 255.255.255.0

  noshutdown

  encapsulation frame-relay

  frame-relaylmi-type cisco

  frame-relay map ip 202.196.1.2 100

  frame-relay map ip 202.196.2.2 200

!        

  iproute 192.168.2.0 255.255.255.0 202.196.1.2

ip route 192.168.3.0255.255.255.0 202.196.2.2

R2:

  interface FastEthernet0/0

  no shutdown

  ipaddress 192.168.2.1 255.255.255.0

!

interface Serial1/0

no shutdown

  ipaddress 202.196.1.2 255.255.255.0

  encapsulationframe-relay

  frame-relay lmi-type cisco

  frame-relaymap ip 202.196.1.1 102

  !        

ip route 0.0.0.00.0.0.0 202.196.1.1

R3:

  interface FastEthernet0/0

  no shutdown

  ipaddress 192.168.3.1 255.255.255.0

!

interface Serial1/0

no shutdown

  ipaddress 202.196.2.2 255.255.255.0

  encapsulationframe-relay

  frame-relay lmi-type cisco

  frame-relaymap ip 202.196.2.1 202

  !        

ip route 0.0.0.00.0.0.0 202.196.2.1


帧中继点到点子接口配置

帧中继试验_第2张图片

上面的帧中继交换机配置同上。

R1:

interface FastEthernet0/0

  ip address 192.168.1.1 255.255.255.0

  noshutdown

!        

interface Serial1/0

  no ip address

  encapsulation frame-relay

     no frame-relay inverse-arp

!        

interface Serial1/0.1point-to-point

  ip address 202.196.1.1 255.255.255.0

  frame-relay interface-dlci 100  

!        

interface Serial1/0.3 point-to-point

ip address 202.196.2.1 255.255.255.0

frame-relay interface-dlci 200  

!        

router ospf 1

network 192.168.1.0 0.0.0.255area 0

  network202.196.1.0 0.0.0.255 area 0

  network202.196.2.0 0.0.0.255 area 0

R2:

  interface FastEthernet0/0

  no shutdown

  ipaddress 192.168.2.1 255.255.255.0

!

interface Serial1/0

no ip address

encapsulation frame-relay

no frame-relay inverse-arp

!        

interface Serial1/0.1 point-to-point

ip address 202.196.1.2 255.255.255.0

frame-relay interface-dlci 102  

!        

router ospf 1

network 192.168.2.0 0.0.0.255area 0

  network202.196.1.0 0.0.0.255 area 0

R3:

  interface FastEthernet0/0

  no shutdown

  ipaddress 192.168.3.1 255.255.255.0

!

interface Serial1/0

no ip address

encapsulation frame-relay

no frame-relay inverse-arp

!        

interface Serial1/0.1 point-to-point

ip address 202.196.2.2 255.255.255.0

frame-relay interface-dlci 202  

!        

router ospf 1

network 192.168.3.0 0.0.0.255area 0

network 202.196.2.0 0.0.0.255area 0

帧中继试验_第3张图片

帧中继试验_第4张图片

帧中继试验_第5张图片