日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

配置BGP

發布時間:2025/3/8 56 豆豆
生活随笔 收集整理的這篇文章主要介紹了 配置BGP 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
配置BGP<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

一、 實驗目的: 配置BGP協議,實現兩個isp之間的通信 二、 實驗拓撲結構圖 三、實驗步驟 1.???????? 基本接口配置() 2.???????? 配置bgp協議 isp<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1A(config-if)#router bgp 200 isp1A(config-router)#neigh 10.0.0.2 remote-as 100 isp1A(config-router)#net 10.0.0.0 isp1A(config-router)#auto-summary

?

sanjose1(config)#router bgp 100 sanjose1(config-router)#neigh 10.0.0.1 remote-as 200 sanjose1(config-router)#neigh 172.16.0.1 remote-as 300 sanjose1(config-router)#net 192.168.0.0 sanjose1(config-router)#net 192.168.1.0 sanjose1(config-router)#auto-summary

?

isp2(config-if)#router bgp 300 isp2(config-router)#neigh 172.16.0.2 remot isp2(config-router)#neigh 172.16.0.2 remote-as 100 isp2(config-router)#net 172.16.0.0 isp2(config-router)#auto-summary 3.???????? BGP配置結果 sanjose1#show ip route ???? 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C?????? 172.16.0.0/30 is directly connected, Serial0/1 B?????? 172.16.0.0/16 [20/0] via 172.16.0.1, 00:08:12

???? 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C?????? 10.0.0.0/30 is directly connected, Serial0/0 B?????? 10.0.0.0/8 [20/0] via 10.0.0.1, 00:06:17

C??? 192.168.0.0/24 is directly connected, Loopback0 C??? 192.168.1.0/24 is directly connected, Loopback1

?

sanjose1#show ip bgp ?? Network????????? Next Hop??????????? Metric LocPrf Weight Path *> 10.0.0.0???????? 10.0.0.1???????????????? 0???????????? 0 200 i *> 172.16.0.0?????? 172.16.0.1?????????????? 0???????????? 0 300 i *> 192.168.0.0????? 0.0.0.0????????????????? 0???????? 32768 i *> 192.168.1.0??? ??0.0.0.0????????????????? 0???????? 32768 i

?

isp1A#ping 172.16.1.1 實驗目的達到是連個isp可以通信 4.???????? ?sanjose1上配置訪問控制列表防止兩個isp之間的通信 sanjose1(config)#router bgp 100 sanjose1(config-router)#neigh 10.0.0.1 d sanjose1(config-router)#neigh 10.0.0.1 distribute-list 1 out sanjose1(config-router)#neigh 172.16.0.1 distribute-list 1 out

?

sanjose1(config)#access-list 1 permit 192.168.0.0 0.0.255.255 查看結果 isp1A#show ip bgp ?? Network????????? Next Hop??????????? Metric LocPrf Weight Path *> 10.0.0.0???????? 0.0.0.0??????????????? ??0???????? 32768 i *> 192.168.0.0????? 10.0.0.2???????????????? 0???????????? 0 100 i *> 192.168.1.0????? 10.0.0.2???????????????? 0???????????? 0 100 i isp1A#show ip route ???? 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C?????? 10.0.0.0/30 is directly connected, Serial0/0 C?????? 10.0.1.0/24 is directly connected, Loopback0 B??? 192.168.0.0/24 [20/0] via 10.0.0.2, 00:04:30

B??? 192.168.1.0/24 [20/0] via 10.0.0.2, 00:04:30

沒有到達172.16..0.0的路由 isp1A#ping 172.16.1.1 不能通 5.???????? ?查看sanjose1的配置結果 sanjose1#show ip route ???? 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C?????? 172.16.0.0/30 is directly connected, Serial0/1 B?????? 172.16.0.0/16 [20/0] via 172.16.0.1, 00:02:26 ???? 10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C?????? 10.0.0.0/30 is directly connected, Serial0/0 B?????? 10.0.0.0/8 [20/0] via 10.0.0.1, 00:02:26 C??? 192.168.0.0/24 is directly connected, Loopback0 C??? 192.168.1.0/24 is directly connected, Loopback1 sanjose1#show ip bgp? ?? Network????????? Next Hop??????????? Metric LocPrf Weight Path *> 10.0.0.0???????? 10.0.0.1???????????????? 0???????????? 0 200 i *> 172.16.0.0?????? 172.16.0.1?????????????? 0???????????? 0 300 i *> 192.168.0.0????? 0.0.0.0????????????????? 0???????? 32768 i *> 192.168.1.0????? 0.0.0.0????????????????? 0???????? 32768 i sanjose1#ping 172.16.1.1 sanjose1#ping 10.0.1.1 通過訪問控制列表達到保護sanjose1的目的

?

轉載于:https://blog.51cto.com/ccjjzj/197732

總結

以上是生活随笔為你收集整理的配置BGP的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。