日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

配置BGP

發布時間:2025/3/8 编程问答 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 配置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的全部內容,希望文章能夠幫你解決所遇到的問題。

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