FR_Switch conf
FR_Switch#sh ru
Building configuration...
Current configuration : 1667 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname FR_Switch
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
frame-relay switching
!
!
!
interface Ethernet0
 no ip address
 shutdown
 media-type 10BaseT
!
interface Ethernet1
 no ip address
 shutdown
 media-type 10BaseT
!
interface Serial0
 no ip address
 encapsulation frame-relay
 no ip route-cache
 no ip mroute-cache
 no fair-queue
 clockrate 2000000
 no frame-relay inverse-arp
 frame-relay intf-type dce
 frame-relay route 111 interface Serial2 111
 frame-relay route 112 interface Serial3 112
!
interface Serial1
 no ip address
 encapsulation frame-relay
 no ip route-cache
 no ip mroute-cache
 clockrate 2000000
 no frame-relay inverse-arp
 frame-relay intf-type dce
 frame-relay route 211 interface Serial2 211
 frame-relay route 212 interface Serial3 212
!
interface Serial2
 no ip address
 encapsulation frame-relay
 no ip route-cache
 no ip mroute-cache
 clockrate 2000000
 no frame-relay inverse-arp
 frame-relay intf-type dce
 frame-relay route 111 interface Serial0 111
 frame-relay route 122 interface Serial3 221
 frame-relay route 211 interface Serial1 211
!
interface Serial3
 no ip address
 encapsulation frame-relay
 no ip route-cache
 no ip mroute-cache
 clockrate 2000000
 no frame-relay inverse-arp
 frame-relay intf-type dce
 frame-relay route 112 interface Serial0 112
 frame-relay route 212 interface Serial1 212
 frame-relay route 221 interface Serial2 122
!
ip classless
no ip http server
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
end   
FR_Switch#sh fram pvc 111
PVC Statistics for interface Serial0 (Frame Relay DCE)
DLCI = 111, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0
  input pkts 1564          output pkts 1507         in bytes 163465    
  out bytes 152661         dropped pkts 0           in FECN pkts 0         
  in BECN pkts 0           out FECN pkts 0          out BECN pkts 0         
  in DE pkts 0             out DE pkts 0         
  out bcast pkts 0          out bcast bytes 0            Num Pkts Switched 1563      
  pvc create time 09:38:17, last time pvc status changed 00:52:09
PVC Statistics for interface Serial2 (Frame Relay DCE)
DLCI = 111, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial2
  input pkts 1507          output pkts 1563         in bytes 152661    
  out bytes 163431         dropped pkts 1           in FECN pkts 0         
  in BECN pkts 0           out FECN pkts 0          out BECN pkts 0         
  in DE pkts 0             out DE pkts 0         
  out bcast pkts 0          out bcast bytes 0            Num Pkts Switched 1507      
  pvc create time 09:38:16, last time pvc status changed 00:01:48
--------------------------------------------------------------------------------------------------------
利用两个路由器之间做tunnel模拟一台FR_SW
拓扑
_____
|  R4  |
--------
    |
    |
  __|___           _______          _____         _______
|  R2   |--------|   SW    |------|  R5   |------|   R3    |
---------        -----------      ---------      -----------
    |
    |
  __|___
|  R1   |
---------
通过配置使R2 ,R5成为一个FRSW,R2与R5之间通过以太网连接,配置一条Tunnel在R2 与R5之间。
  ________
|  R4       |
------------
    |
    |
  __|___           _____            _____
|  R2   |====|   R5   |------|   R3    |
---------        ----------      ----------
    |
    |
  __|___
|  R1   |
---------
最后通过配置成为一下拓扑(逻辑拓扑)
  _____
|  R4  |
--------
    |
    |
  __|_____         ______          
|  FRSW  |------|   R3    |
---------        ----------
    |
    |
  __|___
|  R1   |
---------
R2中的配置:
frame-relay switching
!
interface Tunnel0
no ip address
tunnel source Ethernet0
tunnel destination 172.16.0.2
!
interface Ethernet0
ip address 172.16.0.5 255.255.255.0
!
interface Serial0
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface Tunnel0 100
frame-relay route 302 interface Tunnel0 101
R5的配置:
frame-relay switching
!
interface Tunnel0
no ip address
tunnel source Ethernet0
tunnel destination 172.16.0.2
!
interface Ethernet0
ip address 172.16.0.5 255.255.255.0
!
interface Serial0
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface Tunnel0 100
frame-relay route 302 interface Tunnel0 101
DLCI的分配:
R4:201------->R1 ; 203---------->R3
R3:302------->R4 ; 301---------->R1
R1:103------->R3 ; 102---------->R4
 
                    
                 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号