1、网络拓扑

思科12008路由器与联通起BGP进行案例_第1张图片

2 GZ12008配置注意:
1)确定AS号:铁通AS号,gz12008的AS号,联通的AS号
2)建立EBGP邻居用物理接口,还是用回环接口

3 使用回环口建立邻居EBGP邻居
第一,IGP配通,用静态路由指通
conf t
host gdtt
inter f0/0
ip add 202.192.168.1 255.255.255.252
no shut
inter lo0
ip add 1.1.1.1 255.255.255.0
exit
ip route 2.2.2.2 255.255.255.255 f0/0

conf t
host gz12008
inter f0/0
ip add 202.192.168.2 255.255.255.252
no shut
inter lo0
ip add 2.2.2.2 255.255.255.255
inter f2/0
ip add 202.192.100.1 255.255.255.252
no shut


conf t
host union
inter f2/0
ip add 202.192.100.2 255.255.255.252
no shut
inter lo0
ip add 3.3.3.3 255.255.255.0
exit
ip route 2.2.2.2 255.255.255.255 f2/0

第二,起GBP进程
第三,用回环接口建立邻居
第四,指定更新源为回环接口
第五,发布网络
router bgp 1
Neighbor 2.2.2.2 remote-as 2
network 1.1.1.0 255.255.255.0
Neighbor 2.2.2.2 ebgp-multihop 3

router bgp 2
Neighbor 202.192.168.1 remote-as 1
Neighbor 202.192.100.2 remote-as 3
Neighbor 202.192.168.1 update-source loopback0
Neighbor 202.192.100.2 update-source loopback0
//
Neighbor 202.192.168.1 ebgp-multihop 3
Neighbor 202.192.100.2 ebgp-multihop 3

router bgp 3
Neighbor 2.2.2.2 remote-as 2
network 3.3.3.0 255.255.255.0
Neighbor 2.2.2.2 ebgp-multihop 3