您好,欢迎来到华佗健康网。
搜索
您的当前位置:首页BGP基础配置实例

BGP基础配置实例

来源:华佗健康网
BGP 基础配置实例

作者:救世主220 实验日期:2015.6.11 实验拓扑如下:

R1配置: R1#show run

Building configuration... !

interface Loopback0

ip address 10.0.1.1 255.255.255.0 !

interface Serial1/0

ip address 10.0.12.1 255.255.255.0 serial restart-delay 0 !

interface Serial1/1

ip address 10.0.13.1 255.255.255.0 serial restart-delay 0 !

router bgp 1

no synchronization bgp router-id 1.1.1.1

bgp log-neighbor-changes

network 10.0.1.0 mask 255.255.255.0 neighbor 10.0.12.2 remote-as 2 neighbor 10.0.13.3 remote-as 2 no auto-summary

R2配置: R2#show run

Building configuration...

Current configuration : 1912 bytes ! !

hostname R2

interface Loopback0

ip address 10.0.2.2 255.255.255.0 !

interface Serial1/0

ip address 10.0.12.2 255.255.255.0 serial restart-delay 0 !

interface Serial1/1

ip address 10.0.24.2 255.255.255.0 serial restart-delay 0 !

router ospf 110

log-adjacency-changes

network 10.0.2.2 0.0.0.0 area 0 network 10.0.24.2 0.0.0.0 area 0 !

router bgp 2

no synchronization

bgp router-id 2.2.2.2

bgp log-neighbor-changes

network 10.0.2.0 mask 255.255.255.0 neighbor 10.0.4.4 remote-as 2

neighbor 10.0.4.4 update-source Loopback0 neighbor 10.0.4.4 next-hop-self neighbor 10.0.12.1 remote-as 1 no auto-summary

R3配置: R3#show run

Building configuration...

Current configuration : 1912 bytes !

hostname R3 !

no ip domain lookup ip domain name lab.local no ipv6 cef !

multilink bundle-name authenticated !

interface Loopback0

ip address 10.0.3.3 255.255.255.0 !

interface Serial1/0

ip address 10.0.13.3 255.255.255.0 serial restart-delay 0

!

interface Serial1/1

ip address 10.0.34.3 255.255.255.0 serial restart-delay 0 !

router ospf 110

log-adjacency-changes

network 10.0.3.3 0.0.0.0 area 0 network 10.0.34.3 0.0.0.0 area 0 !

router bgp 2

no synchronization bgp router-id 2.2.2.2

bgp log-neighbor-changes

network 10.0.3.0 mask 255.255.255.0 neighbor 10.0.4.4 remote-as 2

neighbor 10.0.4.4 update-source Loopback0 neighbor 10.0.4.4 next-hop-self neighbor 10.0.13.1 remote-as 1 no auto-summary

R4配置: R4#show run

Building configuration...

Current configuration : 1869 bytes !

hostname R4

!

interface Loopback0

ip address 10.0.4.4 255.255.255.0 !

interface Serial1/0

ip address 10.0.24.4 255.255.255.0 serial restart-delay 0 !

interface Serial1/1

ip address 10.0.34.4 255.255.255.0 serial restart-delay 0 ! router ospf 110

log-adjacency-changes

network 10.0.4.4 0.0.0.0 area 0 network 10.0.24.4 0.0.0.0 area 0 network 10.0.34.4 0.0.0.0 area 0 !

router bgp 2

no synchronization bgp router-id 4.4.4.4

bgp log-neighbor-changes

network 10.0.4.0 mask 255.255.255.0 neighbor 10.0.2.2 remote-as 2 neighbor 10.0.3.3 remote-as 2 no auto-summary

测试结果:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo0.com 版权所有 湘ICP备2023021991号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务