BGP初步配置实验(bgp配置实例讲解)

网友投稿 339 2022-09-17


BGP初步配置实验(bgp配置实例讲解)

实验要求:

结合其他路由协议,完成BGP初步配置,实现全网互通。

实验环境:

实验配置:

基本配置:

IOU1:

config terminalint e0/0ip address 12.12.12.1 255.255.255.0no shutdownint loop 0ip address 1.1.1.1 255.255.255.255no shutdownexit

IOU2:

config terminalint e0/0ip address 12.12.12.2 255.255.255.0no shutdownint e0/1ip address 23.23.23.2 255.255.255.0no shutdownint loop 0ip address 2.2.2.2 255.255.255.0no shutdownexit

IOU3:

config terminalint e0/0ip address 23.23.23.3 255.255.255.0no shutdownint e0/1ip address 34.34.34.3 255.255.255.0no shutdownint loop 0ip address 3.3.3.3 255.255.255.255no shutdownexit

IOU4:

config terminalint e0/0ip address 34.34.34.4 255.255.255.0no shutdownint loop 0ip address 4.4.4.4 255.255.255.255no shutdownexit

路由配置:

IOU1:

router bgp 100bgp router-id 1.1.1.1no synchronizationneighbor 2.2.2.2 remote-as 100neighbor 2.2.2.2 update-source loopback 0network 12.12.12.0 mask 255.255.255.0network 1.1.1.1 mask 255.255.255.255neighbor 3.3.3.3 remote-as 100neighbor 3.3.3.3 update-source loopback 0exitrouter ospf 1network 1.1.1.1 0.0.0.0 area 0network 12.12.12.0 0.0.0.255 area 0exit

IOU2:

router bgp 100bgp router-id 2.2.2.2no synchronizationneighbor 1.1.1.1 remote-as 100neighbor 1.1.1.1 update-source loopback 0neighbor 3.3.3.3 remote-as 100neighbor 3.3.3.3 update-source loopback 0network 2.2.2.2 mask 255.255.255.255network 23.23.23.0 mask 255.255.255.0exitrouter ospf 1network 2.2.2.2 0.0.0.0 area 0network 12.12.12.0 0.0.0.255 area 0network 23.23.23.0 0.0.0.255 area 0exit

IOU3:

router bgp 100bgp router-id 3.3.3.3neighbor 1.1.1.1 remote-as 100neighbor 1.1.1.1 update-source loopback 0neighbor 2.2.2.2 remote-as 100neighbor 2.2.2.2 update-source loopback 0neighbor 4.4.4.4 remote-as 200neighbor 4.4.4.4 update-source loopback 0neighbor 4.4.4.4 ebgp-multihop 10exitip route 4.4.4.0 255.255.255.0 34.34.34.4router ospf 1network 3.3.3.3 0.0.0.0 area 0network 23.23.23.0 0.0.0.255 area 0exit

IOU4:

router bgp 200no synchronizationbgp router-id 4.4.4.4neighbor 3.3.3.3 remote-as 100neighbor 3.3.3.3 update-source loopback 0neighbor 3.3.3.3 ebgp-multihop 10network 4.4.4.4 mask 255.255.255.255exitip route 3.3.3.0 255.255.255.0 34.34.34.3

验证结果:

验证完成,配置结束。

(如有疏漏,还请读者指出)


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:BGP配置实验案例(bgp路由协议配置实验)
下一篇:Java 封装的使用详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~