5

BGP初步配置实验

 2 years ago
source link: https://blog.51cto.com/u_15624911/5329272
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

实验要求:

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

实验环境:

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

实验配置:

基本配置:

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初步配置实验_基本配置_02

BGP初步配置实验_BGP_03

BGP初步配置实验_BGP_04

验证完成,配置结束。

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK