lo 04.4.4.4.4(r4) s1/2----s1/2(r1)s1/0---s1/1(r2)s1/0----s1/1(r3)s1/0---s1/1(r1) ------------ -------- r1: loopback 0 不开 r2: loopback 0 2.2.2.2 r3: loopback 0 3.3.3.3 r4: loopback 0 4.4.4.4
点到多点PVC 要区别多点到多点
step 1 把R1 降为frame-relay交换机
r1 config r frame-relay switching inter s1/2 encapsulation frame-relay no shutdown frame-relay intf-type dce inter s1/0 encapsulation frame-relay frame-relay intf-type dce no shutdown inter s1/1 encapsulationg frame-relay frame-relay intf-type dce no sh end ---------------------------------------------- step 2 做多条PVC R1 config t int s1/0 frame-relay route 402 int s1/2 204 int s1/2 frame-relay route 204 int s1/0 402inter s1/2
frame-relay route 403 int s1/1 304 inter s1/1 frame-relay route 304 int s1/2 403 end ------------------------------------------------ step 3 客户接入 r4 config t inter s1/2 encapsulation frame-relay exit int s1/2.234 ? (建立子接口) int s1/2.234 multipoint (点到多点) end r4 config t int s1/2 no shutdown end r4 debug frame-relay lmi 看子接口能不获得 发现没有DLCI 没有DLCI就不能获得映谢 因为没有IP地址 unde all r4 show frame-relay route r4 show ip int bri show frame-relay pvc 发现没有获得DLCI-----------------------------------------------
现在我们用手工获得 但点到多点不能用静态的方式,要用动态的方式 r4 config t int s1/2.234 end r4 config t int s1/2.234 (在上面做静态映谢) frame-relay map ip 10.1.1.2 ? frame-relay map ip 10.1.1.2 402 broadcast frame-relay map ip 10.1.1.3 403 broadcast end r4 show frame-relay map r4 show ip int brir4 config t
int s1/2.234 ip add 10.1.1.4 255.255.255.0 end r2 config t int s1/1 (物理接口 这没用子接口) encapsulation frame-relay no frame-relay inverse-arp (关掉反向ARP 我们用静态稳定) ip add 10.1.1.4 255.255.255.0 frame-relay map ip 10.1.1.4 204 broadcast exitr3 config t
interface s1/0 encapsulation frame-relay no frame-relay inverse-arp ip add 10.1.1.3 255.255.255.0 frame-relay map ip 10.1.1.4 304 broadcast no shutdown endr2 config t
int s1/1 encapsulation frame-relay no frame-relay inverse-arp ip add 10.1.1.2 255.255.255.0 frame-relay map ip 10.1.1.4 204 broadcast no shutdown end r2 show frame-relau mapr4 ping 10.1.1.2
!!!! r4 ping 10.1.1.3 !!!! ------------------------------------------------- 用LO 0 作为客户的局域网 r4 config t int lo 0 ip add 4.4.4.4 255.255.255.0 end r2 config t int lo 0 ip add 2.2.2.2 255.255.255.0 end r3 config t int lo 0 ip add 3.3.3.3 255.255.255.0 endr2 config t
router rip ver 2 no auto-summary network 10.1.1.0 network 4.0.0.0 endr3 config t
router rip ver 2 no auto-summary network 10.1.1.0 network 3.0.0.0 endr4 config t
router rip ver 2 no auto-summary network 10.1.1.00. network 4. end r4 show ip rout ripr4 clear ip route *
r4 show ip route rip
会看到4.0.0.0/8这条路由 因为帧中继默认关掉水平分割 r4 show ip int s1/2 你会看到水平分割关掉 物理接口点到多点事会关水平分割的 子接口默认是不会关掉 仔细想想为啥要关掉 提升10.1.1.0 这个网段怎学 r2 show ip route rip 它没学到R3的路由所以我们要在R4上面关掉水平分割split-horizon r4 config t int s1/2.234 no ip split-horizon end r2 show ip route rip r2 clear ip route * r2 show ip route rip