3.6實驗4:配置幀中繼網絡
實驗內容
主要是練習點到多點和點到點的幀繼基本配置命令。
l 安照圖3-7 結構配置點到多點和點到點的幀中繼網絡。
l R5到R2和R3使用靜態PVC映射。
l R5到R4之間使用動態PVC映射。
3.6.2 實驗拓撲
安照圖3-7這個拓撲鏈接好設備。
圖3-7 實驗拓撲
3.6.3 所需設備
l 5臺router,其中一臺配置爲幀中繼交換機。
l 背對背線纜4條。
3.6.4 實驗步驟
第1步 配置幀中繼封裝和子接口
encapsulation frame-relay [ cisco | ietf ]
interface s1/0.1[ point-to-point | multipoint ]
第2步 配置LMI類型(本實驗中採用自動識別)
frame-relay lmi-type[ ansi | cisco | q933i ]
第3步 配置地址映射爲動態or 靜態
frame-relay map protocol [ ip | dec | appletalk | xns | ipx | vines | clns | bridge | llc2 | dlsw ] next_hop_address [ broadcast ] [ ietf | cisco ]
frame-relay interface-dlci dlci_number
第4步 關掉水平分割
在接口下no ip split-horizon
第5步 配置EIGRP,並關閉自動彙總。
router eigrp as_number
network network_address subnet_mask
no auto-summary
3.6.5 完整配置
例3-13 R5的配置
hostname R5
!
interface Loopback1
ip address 172.16.5.1 255.255.255.0
!
interface Serial1/0
no ip address
encapsulation frame-relay
no ip split-horizon
no fair-queue
serial restart_delay 0
!
interface Serial1/0.1 multipoint
ip address 172.16.1.5 255.255.255.0
frame-relay map ip 172.16.1.3 503 broadcast
frame-relay map ip 172.16.1.2 502 broadcast
!
interface Serial1/0.2 multipoint
ip address 172.16.16.5 255.255.255.0
frame-relay interface-dlci 504
!
router eigrp 100
network 172.16.1.0 0.0.0.255
network 172.16.5.0 0.0.0.255
network 172.16.16.0 0.0.0.255
no auto-summary
no eigrp log-neighbor-changes
!
例3-14 R2的配置
hostname R2
!
interface Loopback1
ip address 172.16.2.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.1.2 255.255.255.0
encapsulation frame-relay
serial restart_delay 0
no arp frame-relay
frame-relay map ip 172.16.1.3 205 broadcast
frame-relay map ip 172.16.1.5 205 broadcast
no frame-relay inverse-arp
!
router eigrp 100
network 172.16.1.0 0.0.0.255
network 172.16.2.0 0.0.0.255
no auto-summary
!
例3-15 R3的配置
hostname R3
!
interface Loopback1
ip address 172.16.3.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.1.3 255.255.255.0
encapsulation frame-relay
serial restart_delay 0
no arp frame-relay
frame-relay map ip 172.16.1.2 205 broadcast
frame-relay map ip 172.16.1.5 205 broadcast
no frame-relay inverse-arp
!
router eigrp 100
network 172.16.1.0 0.0.0.255
network 172.16.3.0 0.0.0.255
no auto-summary
!
例3-16 R4的配置
hostname R4
!
interface Loopback1
ip address 172.16.4.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.16.4 255.255.255.0
encapsulation frame-relay
serial restart_delay 0
frame-relay interface-dlci 405
!
router eigrp 100
network 172.16.4.0 0.0.0.255
network 172.16.16.0 0.0.0.255
no auto-summary
no eigrp log-neighbor-changes
!
3.6.6 驗證配置
l show ip route 顯示路由信息,能夠看到路由表是否正確。例3-16是在R5上執行該命令的結果。
l show ip eigrp neighbors 驗證EIGRP工做是否正常,是否創建了正確的鄰居關係,例3-17.
例3-17 R5上執行show ip route 的結果
R5#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1
, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 6 subnets
C 172.16.16.0 is directly connected, Serial1/0.2
D 172.16.4.0 [90/2297856] via 172.16.16.4, 00:11:18, Serial1/0.2
C 172.16.5.0 is directly connected, Loopback1
C 172.16.1.0 is directly connected, Serial1/0.1
D 172.16.2.0 [90/2297856] via 172.16.1.2, 00:11:18, Serial1/0.1
D 172.16.3.0 [90/2297856] via 172.16.1.3, 00:11:18, Serial1/0.1
R5#
例3-16
R5#sho ip eigrp neighbors
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTOQSeq Type
(sec) (ms) Cnt Num
2 172.16.16.4 Se1/0.2 137 00:13:42256153602
1 172.16.1.3 Se1/0.1 172 00:14:08297178203
0 172.16.1.2 Se1/0.1 164 00:15:55215129005
R5#