使用GNS3简单模拟帧中继环境
以下为使用GNS3模拟器起帧中继的一个简单实验:
帧中继交换机R1
!
!
frame-relay switching
!
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi (三种: cisco ansi q933a)
frame-relay intf-type dce
frame-relay route 102 interface Serial1/1 201 (route + 本地DLCI + 出口 + 对方DLCI)
frame-relay route 103 interface Serial1/2 301
!
interface Serial1/1
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 201 interface Serial1/0 102
frame-relay route 304 interface Serial1/2 403
!
interface Serial1/2
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 301 interface Serial1/0 103
frame-relay route 403 interface Serial1/1 304
!
R2
!
interface Serial1/0
ip address 10.0.0.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 10.0.0.4 103 (对方IP+本地DLCI)
frame-relay map ip 10.0.0.3 102
no frame-relay inverse-arp (不关反向ARP的话,可以动态学习到对方,那么就不用配置frame-relay map ip)
end
R3
!
interface Serial1/1
ip address 10.0.0.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 10.0.0.4 304
frame-relay map ip 10.0.0.2 201
no frame-relay inverse-arp
end
R4
!
interface Serial1/2
ip address 10.0.0.4 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 10.0.0.2 301
frame-relay map ip 10.0.0.3 403
no frame-relay inverse-arp
end
查看映射
show frame-relay map
以上类型为非广播non-broadcast
帧中继分为point-to-multicast,non-broadcast,broadcast,而对于poing-to-multipoint和broadcast需要在接口下将其加进去