北京金桥世纪H3C认证培训全国总代理

配置HGMP

2011-11-15 13:39:54互联网

应用环境 
集群管理(HGMP)是通过一个主交换机的公网IP地址,实现对多个交换机的管理。其中主交换机称为命令交换机(Command Switch),其它被管理的交换机称为成员交换机(Member Switch)。命令交换机、成员交换机、备份交换机和候选交换机组成了一个“集群”。 

整个集群对外只需配置一个管理IP地址。对于大型的接入网络(拥有许多二层接入设备)来说,集群管理可以节省大量的管理IP地址。 

配置思路 
采用以下思路进行配置: 

使能NDP、NTDP、Cluster功能。 
配置虚拟桥MAC地址。 
绑定集群出口。 
创建集群地址池。 
将成员加入到集群。 
配置注意事项 
注意 

在建立集群以前,必须先配置集群使用的私网地址池。这个地址池是供集群内部使用的,对外不可见。 

网络管理员需要保证集群的私网地址池和业务的用户地址池不能有重叠。 

配置实例 
组网需求 
如下图所示,在ME60上通过配置NDP、NTDP、Cluster,完成HGMP的配置。 

HGMP组网图  

 配置HGMP

适用产品和版本 
命令交换机采用ME60,版本为(VRP5.30-13_01)及后续版本。 

配置步骤 
步骤 1     使能NDP、NTDP、Cluster功能。 

<ME60> system-view 

[ME60] ndp enable 

[ME60] ntdp enable 

[ME60] cluster enable 

步骤 2     设置整机桥MAC地址,绑定集群出接口。 

[ME60] bridge mac 00e0-fc99-0099 

[ME60] cluster bind interface LoopBack 0 

步骤 3     创建集群地址池。 

[ME60] cluster 

[ME60-cluster] ip-pool 66.66.0.1 24 

步骤 4     创建集群,加入成员。 

# 自动创建集群,创建的同时将符合条件的交换机加入该集群。 

[ME60] cluster 

[ME60-cluster] auto-build 

 Please input cluster name:ME60 

 Collecting candidate list, please wait... 

  

 Candidate list: 

  

 Name                            Hops  MAC Address     Device 

 S3528G                          1     00e0-fc5b-1be0  ME60 S3528G 

 yzl5200g-2                      1     00e0-fc99-1234  Netengine 

 ME60                         1     00e0-fc08-f87a  ME60 S2008 

 yzl520G-4                       1     0052-0004-0000  Netengine 

  

 Add all to cluster?(Y/N)y 

%May 26 10:04:33 2005 ME60 CLST/5/LOG: 

 Member 00e0-fc5b-1be0  is joined in cluster ME60. 

  

%May 26 10:04:35 2005 ME60 CLST/5/LOG: 

 Member 00e0-fc08-f87a  is joined in cluster ME60. 

  

 Cluster auto-build Finish! 

 2 member(s) added successfully. 

# 或手动创建集群,创建后集群内只有ME60设备,无其它成员。 

[ME60-cluster] build ME60 

#May 26 10:07:21 2005 ME60 CLST/5/Cluster_Trap: 

OID:1.3.6.1.4.1.2011.6.7.1.0.3, NTDPIndex:0, Role:1 

说明 

如果某一台交换机加入集群后,其状态不停地为DOWN或UP切换,建议将与交换机相连的接口下配置集群VLAN,命令示例如下: 

[ME60-gigabitEthernet3/0/11] cluster vlan 

验证结果 
配置完成后,用display ndp、display ntdp命令可以查看NDP、NTDP信息,如: 

[ME60] display ndp 

[ME60] quit 

<ME60> ntdp explore 

<ME60> display ntdp device-list 

 MAC             HOP  IP                  PLATFORM 

 00e0-fc99-0099  0    200.200.200.1/32     ME60-16 

 0052-0004-0000  1    60.60.60.1/32       Netengine 

用display cluster members命令可以查看集群成员信息,以上述自动创建集群为例: 

[ME60] display cluster members 

 SN   Device              MAC Address     Status Name 

 0    ME60-16             00e0-fc99-0099  Admin  ME60 

 1    ME60 S3528G        00e0-fc5b-1be0  Up     S3528G 

 3    ME60 S2008         00e0-fc08-f87a  Up     ME60 

以上述手动创建集群为例,则显示: 

[ME60] display cluster members 

 SN   Device              MAC Address     Status Name 

 0    ME60-16             00e0-fc99-0099  Admin  ME60 

显示候选成员列表: 

[ME60] display cluster candidates 

 MAC             HOP  IP                  PLATFORM 

 0052-0004-0000  1    60.60.60.1/32       Netengine 

 00e0-fc08-f87a  1                        ME60 S2008 

 00e0-fc99-1234  1                        Netengine 

 00e0-fc5b-1be0  1                        ME60 S3528G 

增加成员: 

[ME60] cluster 

[ME60-cluster] add-member mac-address 00e0-fc08-f87a 

  

%May 26 10:13:25 2005 ME60 CLST/5/LOG: 

 Member 00e0-fc08-f87a  is joined in cluster ME60. 

  

[ME60-cluster] add-member mac-address 00e0-fc5b-1be0 

  

%May 26 10:13:34 2005 ME60 CLST/5/LOG: 

 Member 00e0-fc5b-1be0  is joined in cluster ME60. 

  

[ME60-cluster] display cluster members 

 SN   Device              MAC Address     Status Name 

 0    Netengine           00e0-fc99-0099  Admin  ME60 

 1    ME60 S2008       00e0-fc08-f87a  Up     ME60 

 2    ME60 S3528G      00e0-fc5b-1be0  Up     S3528G 

在ME60上访问成员: 

<ME60> cluster switch-to 2                    

Trying 66.66.0.3 ... 

Press CTRL+K to abort 

Connected to 66.66.0.3 ... 

********************************************************* 

*          All rights reserved (1997-2004)              * 

*      Without the owner’s prior written consent,       * 

*no decompiling or reverse-engineering shall be allowed.* 

********************************************************* 

在成员交换机上访问ME60: 

<S3528G> cluster switch-to administrator 

Trying ... 

Press CTRL+K to abort 

Connected ... 

********************************************************* 

*          All rights reserved (1997-2004)              * 

*      Without the owner’s prior written consent,       * 

*no decompiling or reverse-engineering shall be allowed.* 

********************************************************* 

  

%May 26 10:23:35 2005 ME60 SHELL/5/LOGIN: VTY login from 66.66.0.2 

  

Note: The max number of VTY users is 5, and the current number 

      of VTY users on line is 1. 

<ME60>   

还可以配置集群的FTP Server等,供成员交换机访问: 

[ME60] cluster 

[ME60-cluster] ftp-server  24.24.24.1 

[ME60-cluster] tftp-server 24.24.24.2 

[ME60-cluster] snmp-host 24.24.24.3 

[ME60-cluster] logging-host  24.24.24.4 

在成员交换机上访问FTP服务器: 

<S3528G> ftp cluster 

配置文件 


 sysname ME60 



bridge mac 00e0-fc99-0099 

cluster bind interface LoopBack 0 



ndp enable 



ntdp enable 



cluster 

ip-pool 66.66.0.1 24 

build ME60 

ftp-server 24.24.24.1 

tftp-server 24.24.24.2 

logging-host 24.24.24.4 

snmp-host 24.24.24.3 



return 

·[金桥动态]H3CIE+确定开班7月20日 
·[金桥动态]全程金牌讲师讲授,保障顺利考试通过! 
·[优惠活动]华三动态 
·[知识课堂]【H3C技术】H3C金桥世纪-关于RADIUS和TACACS+ 
·[金桥动态]H3CIE第五期培训高调结束,LAB考试通过率良好! 
·[知识课堂]【H3C技术】IP组播概述 


点击这里给我发消息 点击这里给我发消息 点击这里给我发消息 点击这里给我发消息 点击这里给我发消息


开班信息

7月26

H3CNE认证

热报中

8月16

H3C-IMC认证

热报中

7月26

H3CNE认证

热报中

7月26

H3CIE+认证

热报中

8月16

H3C-IMC认证

热报中

7月26

H3CNE培训

热报中

7月26

H3CSE认证

热报中

8月16

H3C无线

热报中

7月26

H3CSE培训

热报中

8月16

H3CIMC培训

热报中

8月16

H3C无线培训

热报中

8月31

H3CEAD培训

热报中

8月16

H3CPME认证

热报中

8月16

H3C安全认证

热报中

8月16

H3CIMC培训

热报中

8月16

H3C无线培训

热报中

8月09

H3CEAD培训

热报中

8月16

H3CPME认证

热报中

8月16

H3C安全认证

热报中

8月16

H3CIMC培训

热报中

8月09

H3C无线培训

热报中

8月09

H3CEAD培训

热报中

8月09

H3CPME认证

热报中

8月09

H3C安全认证

热报中

点击咨询开班情况>>

在线咨询