内容摘要:BGP基础配置实例

这次做一个BGP基本的实例:
////r1////
int lo1
ip ad 192.1.24.1 255.255.255.0
int lo2
ip ad 192.1.25.1 255.255.255.0
int f1/1
ip ad 192.1.1.1 255.255.255.0
router bgp 100
neighbor 192.1.1.2 remote-as 200
network 192.1.24.0
network 192.1.25.0
//// r2 ////
int f1/1
ip address 192.1.1.2 255.255.255.0
int f3/3
ip ad 193.1.1.2 255.255.255.0
int f4/4
ip ad 194.1.1.2 255.255.255.0
router bgp 200
neighbor 192.1.1.1 remote-as 100
neighbor 193.1.1.3 remote-as 200
neighbor 194.1.1.4 remote-as 300
//// r3 ////
int f3/3
ip ad 193.1.1.3 255.255.255.0
router bgp 300
neighbor 193.1.1.2 remote-as 200
//// r4 ////
int f4/4
ip ad 194.1.1.4 255.255.255.0
router bgp 400
neighbor 194.1.1.2 remote-as 200
基础配置完成后,一定要验证:
show ip bgp summary
r2#sh ip bgp su
BGP router identifier 194.1.1.2, local AS number 200
BGP table version is 8, main routing table version 8
7 network entries and 7 paths using 931 bytes of memory
3 BGP path attribute entries using 180 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
责编:豆豆技术应用