PPP 3
r1:
en
config t
hostname R1
no ip domain-lookup
lin 0
exec-timeout 0 0
logging syn
exit
r2:
en
config t
hostname R2
no ip domain-lookup
lin 0
exec-timeout 0 0
logging syn
exit
r3:
en
config t
hostname R3
no ip domain-lookup
lin 0
exec-timeout 0 0
logging syn
exit
r4:
en
config t
hostname R4
no ip domain-lookup
lin 0
exec-timeout 0 0
logging syn
exit
r1 config t
frame-relay switching
int s1/0
encapsulation frame-relay
frame-relay intf-type dce
no shutdown
clockrate 64000
exit
int s1/1
encapsulation frame-relay
frame-relay intf-type dce
no shutdown
clockrate 64000
exit
int s1/2
encapsulation frame-relay
frame-relay intf-type dce
no shutdown
clockrate 64000
end
r1 show ip int bri
-----------------------------------------------------------
建立客戶的PVC
R1 int s1/2 連R4
frame-relay route ?
frame-relay route 402 interface s1/0 204
no shutdown
exit
int s1/0 連R2
frame-relay route 204 interface s1/2 402
no shutdown
exit
int s1/2 連R4
frame-relay route ?
frame-relay route 403 interface s1/1 304
no shutdown
exit
int s1/1
frame-relay route 304 interface s1/2 403
no shutdown
exit
int s1/0
frame-relay route ?
frame-relay route 203 interface s1/1 302
no shutdown
exit
int s1/1
frame-relay route 302 interface s1/2 203
no shutdown
exit
r1 show frame-relay route
幀中繼的R1的PVC 就做完了
----------------------------------------------
r4 234路由器在不在一個網段 如在一網段你直接用一個物理接口就好了
現在我們做一個類似以太網環境 在同一個網段
r4 config t
int s1/2
encapsulation frame-relay
no shutdown
end
r4 show frame-relay pvc
看它學到的DSLC
r3 show frame-relay map
r2 int s1/1
encapsulation frame-relay
no shutdown
end
r3 int s1/0
encapsulation frame-relay
no shutdown
end
r4 config t
int s1/2
ip add 10.1.1.4 255.255.255.0
end
r2 config t
int s1/1
ip add 10.1.1.2 255.255.255.0
end
r3 config t
int s1/0
ip add 10.1.1.3 255.255.255.0
end
r3 show ip int bri
r4 show frame-relay pvc
r4 show frame-relay map
必須是對方配了ip地址你才能學到 要是沒有 那反向ARP是學不到
r2 show frame-relay pvc
r3 show frame-relay map
------------------------------------------------------------------
點到點的子接口
r4 config t
int s1/2
shutdown 關了
end
r2 config t
int s1/1
shutdown 關了
end
r3 config t
int s1/0
shutdown 關了
end
r4 show run int s1/2
r4 config t
int s1/2
no ip add 不要以前的ip地址了
exit
int s1/2 ?
int s1/2. ? (起子接口)
int s1/2. 42 ?
int s1/2.42 point-to-point
frame-relay interface-dlci 402 (DLCI是不能在子接口下獲取的所以靠手工)
exit
exit
r4 int s1/2.43 point-to-point
r4 frame-relay interface-dlci 403
end
r4 show frame-relay map
r4 config t
int s1/2.42
ip add 42.1.1.4 255.255.255.0
int s1/2.43
ip add 34.1.1.4 255.255.255.0
int s1/2.42
ip add 24.1.1.4 255.255.255.0
end
r4 show ip int bri
r2 config t
int s1/1
no ip add
exit
int s1/1.24 po
frame-relay interface-dlci 204
exit
int s1/1.23 po
frame-relay interface-dlci 203
exit
end
r2 config t
interface s1/1.24
ip add 24.1.1.2 255.255.255.0
no shutdown
end
r2 config t
int s1/1.23
ip add 23.1.1.2 255.255.255.0
end
r2 show frame-relay map
r2 config t
interface s1/0
no shutdown
end
r2 show fram-relay map
r3 config t
int s1/0
no ip add
exit
int s1/0.34 po
fram-relay interface-dlci 304
exit
inter s1/0.23 po
frame-relay interface-dlci 302
exit
int s1/0.34
ip add 34.1.1.3 255.255.255.0
inter s1/0.33
ip add 34.1.1.3 255.255.255.0
end
r3 config t
interface s1/0
no shutdown
end
r3 show frame-relay map
r4 show frame-relay map (看狀態active 要等一段時間)
r4 ping 24.1.1.2
!!!!!
r4 show ip int bri
r4 show ip route
r4 show frame-relay map
r4 ping 34.1.1.3
!!!!!
幀中繼客戶的需求
全互聯
半互聯
HUB and spoke 連接
解決方案
ISP 通過單獨的客戶建立多條PVC連接 全互聯/半互聯/hub and spoke方式
用戶的接口 用戶可以用不同的接口來滿足自己向運營商的PVC.
PVC 是虛鏈路 這點要記住哦
用戶接口
點到點的物理接口
LMI 學習一個或多個DLCI,反向ARP協議可以爲物理接口進行動態的映謝。通過物理接口可以形成點到點以及點到多點的TOP。但最好用靜態映謝因爲穩定些
點到點的子接口
LMI無法爲邏輯接口動態解析DLCI 需要通過手工指定邏輯接口的DLCI號碼,且點到點子接口只能制定一個DLCI。
點到多點的子接口
LMI無法爲邏輯接口動態解析DLCI 需要通過手工制定邏輯接口的DLCI號碼 點到多點子接口可以擁有多個DLCI和不同站點建立PVC