Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1397263
  • 博文数量: 254
  • 博客积分: 4173
  • 博客等级: 中校
  • 技术积分: 3400
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-03 21:24
个人简介

不为失败找借口,只为成功找方法!

文章分类

全部博文(254)

文章存档

2021年(3)

2020年(1)

2019年(2)

2017年(10)

2016年(6)

2015年(19)

2014年(24)

2013年(19)

2012年(52)

2011年(118)

分类: 系统运维

2012-05-29 10:29:33

H3C S3500-EA IPv4 BGP基本配置

一、  组网需求:

如图所示,所有交换机均运行BGP协议,Switch ASwitch B之间建立EBGP连接,Switch BSwitch CSwitch D之间建立IBGP全连接。

二、  组网图:

 

设备

接口

IP地址

设备

接口

IP地址

Switch A

Vlan-int100

8.1.1.1/8

Switch D

Vlan-int400

9.1.1.2/24

 

Vlan-int200

200.1.1.2/24

 

Vlan-int500

9.1.2.2/24

Switch B

Vlan-int400

9.1.1.1/24

Switch C

Vlan-int500

9.1.2.1/24

 

Vlan-int200

200.1.1.1/24

 

Vlan-int300

9.1.3.2/24

 

Vlan-int300

9.1.3.1/24

 

 

 

三、  配置步骤:

(1)    配置各交换机接口的IP地址(略)

(2)    配置IBGP连接

# 配置Switch B

system-view

[SwitchB] bgp 65009

[SwitchB-bgp] router-id 2.2.2.2

[SwitchB-bgp] peer 9.1.1.2 as-number 65009

[SwitchB-bgp] peer 9.1.3.2 as-number 65009

[SwitchB-bgp] quit

# 配置Switch C

system-view

[SwitchC] bgp 65009

[SwitchC-bgp] router-id 3.3.3.3

[SwitchC-bgp] peer 9.1.3.1 as-number 65009

[SwitchC-bgp] peer 9.1.2.2 as-number 65009

[SwitchC-bgp] quit

# 配置Switch D

system-view

[SwitchD] bgp 65009

[SwitchD-bgp] router-id 4.4.4.4

[SwitchD-bgp] peer 9.1.1.1 as-number 65009

[SwitchD-bgp] peer 9.1.2.1 as-number 65009

[SwitchD-bgp] quit

(3)    配置EBGP连接

# 配置Switch A

system-view

[SwitchA] bgp 65008

[SwitchA-bgp] router-id 1.1.1.1

[SwitchA-bgp] peer 200.1.1.1 as-number 65009

# 将8.0.0.0/8网段路由通告到BGP路由表中。

[SwitchA-bgp] network 8.0.0.0

[SwitchA-bgp] quit

# 配置Switch B

[SwitchB] bgp 65009

[SwitchB-bgp] peer 200.1.1.2 as-number 65008

[SwitchB-bgp] quit

# 查看Switch BBGP对等体的连接状态。

[SwitchB] display bgp peer

 BGP local router ID : 2.2.2.2

 Local AS number : 65009

 Total number of peers : 3              Peers in established state : 3

  Peer            V    AS  MsgRcvd  MsgSent  OutQ PrefRcv Up/Down  State

  9.1.1.2     4 65009       56       56     0       0 00:40:54 Established

  9.1.3.2     4 65009       49       62     0       0 00:44:58 Established

  200.1.1.2   4 65008       49       65     0       1 00:44:03 Established

可以看出,Switch B到其他交换机的BGP连接均已建立。

# 查看Switch A路由表信息。

[SwitchA] display bgp routing-table

 Total Number of Routes: 1

 BGP Local router ID is 1.1.1.1

 Status codes: * - valid, > - best, d - damped,

               h - history,  i - internal, s - suppressed, S - Stale

               Origin : i - IGP, e - EGP, ? - incomplete

      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   8.0.0.0           0.0.0.0       0                   0        i

# 查看Switch B的路由表。

[SwitchB] display bgp routing-table

 Total Number of Routes: 1

 BGP Local router ID is 2.2.2.2

 Status codes: * - valid, > - best, d - damped,

               h - history,  i - internal, s - suppressed, S - Stale

               Origin : i - IGP, e - EGP, ? - incomplete

      Network          NextHop       MED        LocPrf    PrefVal Path/Ogn

 *>   8.0.0.0          200.1.1.2     0                    0       65008i

# 查看Switch C的路由表。

[SwitchC] display bgp routing-table

 Total Number of Routes: 1

 BGP Local router ID is 3.3.3.3

 Status codes: * - valid, > - best, d - damped,

               h - history,  i - internal, s - suppressed, S - Stale

               Origin : i - IGP, e - EGP, ? - incomplete

      Network          NextHop       MED       LocPrf    PrefVal Path/Ogn

   i  8.0.0.0          200.1.1.2     0         100       0       65008i

四、  配置关键点:

无。

阅读(2144) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~