BGP和OSPF在路由重分发时的注意点

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

RGNOSv10.3(3)

BGP和OSPF在路由重分发时的注意点

2008-5-15

福建星网锐捷网络有限公司

版权所有侵权必究

前言

本文档介绍了RGNOS V10.3(3)中BGP和OSPF路由重发布时的一些

实现特点。

由于这些特点区别于友商CISCO的BGP功能实现,在具体的项目实

施过程中需要注意。

1.☹本文档仅限公司内部使用,严禁外传。

1.☺如果您在阅读中产生疑问,请与文档维护人联系。

目录

1. 1OSPF重分发BGP路由

1. 1.1注意点

1. 这里Cisco验证的版本为c7200-adventerprisek9-mz.124-9.T1.bin

2. 1.2应用实例

1. 1.

2.1网络拓扑

四台设备之间建立EBGP/IBGP/EBGP连接。C1为CISCO 3550、C2、

C3是Cisco模拟器,R1是我司设备,实验设备为RG-S5750。C1和

R1建立EBGP连接,R1和C2建立IBGP连接,C2和C3建立EBGP

连接。其中C1和C3主要是发送路由,具体的操作在R1和C2。2. 1.2.2配置文件

C1 简化配置

C1#sho running-config

Building configuration...

Current configuration : 2557 bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname C1

!

!

no aaa new-model

ip subnet-zero

ip routing

!

!

!

!

!

!

no file verify auto

spanning-tree mode pvst

spanning-tree extend system-id

!

vlan internal allocation policy ascending

!

!

interface Loopback0

ip address 1.1.1.1 255.255.255.255

!

interface FastEthernet0/1

no switchport

ip address 192.168.16.1 255.255.255.248

!

interface FastEthernet0/2

switchport mode dynamic desirable

!

interface FastEthernet0/3

switchport mode dynamic desirable

!

...

!

router bgp 1

no synchronization

bgp log-neighbor-changes

redistribute static

neighbor 192.168.16.2 remote-as 23

no auto-summary

!

ip classless

ip route 192.168.111.0 255.255.255.0 Loopback0

ip route 192.168.112.0 255.255.255.0 Loopback0

ip http server

ip http secure-server

!

!

!

control-plane

!

!

line con 0

line vty 0 4

privilege level 15

password w

login

!

!

end

C1#

C2简化配置

C2#sho runn

Building configuration...

Current configuration : 1450 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname C2

!

boot-start-marker

warm-reboot

boot-end-marker

!

!

no aaa new-model

!

resource policy

!

ip cef

!

!

!

!

interface Loopback0

ip address 192.168.125.1 255.255.255.0 secondary ip address 192.168.126.1 255.255.255.0 secondary ip address 2.2.2.2 255.255.255.255

!

interface FastEthernet0/0

ip address 192.168.26.2 255.255.255.248

duplex full

!

interface Ethernet1/0

no ip address

shutdown

duplex half

!

interface Ethernet1/1

no ip address

shutdown

duplex half

!

interface Ethernet1/2

no ip address

shutdown

duplex half

!

interface Ethernet1/3

ip address 192.168.23.1 255.255.255.248

duplex full

!

router ospf 1

log-adjacency-changes

network 2.2.2.2 0.0.0.0 area 0

network 192.168.26.0 0.0.0.7 area 0

!

router bgp 23

no synchronization

bgp log-neighbor-changes

network 192.168.125.0

network 192.168.126.0

neighbor 6.6.6.6 remote-as 23

neighbor 6.6.6.6 update-source Loopback0

neighbor 6.6.6.6 next-hop-self

neighbor 192.168.23.2 remote-as 3

no auto-summary

!

no ip http server

no ip http secure-server

!

!

...

!

line con 0

stopbits 1

line aux 0

line vty 0 4

相关文档
最新文档