ppp 多點接入


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 402

   inter 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 bri

r4  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
    exit

r3  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
    end

r2  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 map

r4 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
   end

r2 config t
   router rip
   ver 2
   no auto-summary
   network 10.1.1.0
   network 4.0.0.0
   end

r3  config t
    router rip
    ver 2
    no auto-summary
    network 10.1.1.0
    network 3.0.0.0
    end

r4  config t
    router rip
    ver 2
    no auto-summary
    network 10.1.1.00.   
    network 4.
    end
r4 show ip rout rip

r4 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


     
   

   
   
  
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章