BGP初步配置实验

Posted BE冢虎

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了BGP初步配置实验相关的知识,希望对你有一定的参考价值。

实验要求:

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


实验环境:

BGP初步配置实验_5e


实验配置:

基本配置:

IOU1:
config terminal
int e0/0
ip address 12.12.12.1 255.255.255.0
no shutdown
int loop 0
ip address 1.1.1.1 255.255.255.255
no shutdown
exit


IOU2:
config terminal
int e0/0
ip address 12.12.12.2 255.255.255.0
no shutdown
int e0/1
ip address 23.23.23.2 255.255.255.0
no shutdown
int loop 0
ip address 2.2.2.2 255.255.255.0
no shutdown
exit


IOU3:
config terminal
int e0/0
ip address 23.23.23.3 255.255.255.0
no shutdown
int e0/1
ip address 34.34.34.3 255.255.255.0
no shutdown
int loop 0
ip address 3.3.3.3 255.255.255.255
no shutdown
exit


IOU4:
config terminal
int e0/0
ip address 34.34.34.4 255.255.255.0
no shutdown
int loop 0
ip address 4.4.4.4 255.255.255.255
no shutdown
exit


路由配置:

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


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


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


IOU4:
router bgp 200
no synchronization
bgp router-id 4.4.4.4
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source loopback 0
neighbor 3.3.3.3 ebgp-multihop 10
network 4.4.4.4 mask 255.255.255.255
exit
ip route 3.3.3.0 255.255.255.0 34.34.34.3


验证结果:

BGP初步配置实验_BGP_02

BGP初步配置实验_路由配置_03

BGP初步配置实验_5e_04


验证完成,配置结束。



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

以上是关于BGP初步配置实验的主要内容,如果未能解决你的问题,请参考以下文章

ISIS 综合实验;BGP 实验

BGP综合实验

BGP配置实验

47-高级路由:BGP 镜子实验

3.OSPF与BGP的联动

BGP Community(团体)配置实例