您好,欢迎访问三七文档
HP6125G交换机简易配置说明目录一.HP6125G交换机介绍....................................................................................................2二.HP6125G交换机连接....................................................................................................22.1串口连接....................................................................................................................22.2通过OA连接.............................................................................................................3三.HP6125G交换机配置telnet.......................................................................................3四.HP6125G交换机配置vlan...........................................................................................44.1创建vlan....................................................................................................................44.2取消端口....................................................................................................................4五.HP6125G交换机配置monitor-linkgroup...............................................................45.1配置monitor-linkgroup:..........................................................................................45.2添加端口....................................................................................................................45.3取消端口....................................................................................................................5六.应用示例.......................................................................................................................56.1现场环境....................................................................................................................56.2用户需求....................................................................................................................76.3规划............................................................................................................................76.4配置情况....................................................................................................................71)配置telnet...........................................................................................................72)HP6125G-1配置vlan和monitor-linkgroup..................................................73)HP6125G-2配置vlan和monitor-linkgroup..................................................86.5配置过程中的命令....................................................................................................86.6未做配置时的配置文件............................................................................................96.7配置完成后的配置文件..........................................................................................11七.后记.............................................................................................................................14八.参考文档.....................................................................................................................14一.HP6125G交换机介绍HP6125G以太网刀片交换机是一个1Gb交换机,专为c-ClassBladeSystem设计,可提供16个1Gb下行链路和8个1Gb上行链路。二.HP6125G交换机连接安装过刀片的过程中经常碰到VC和6125G交换机,在配置VC的时候还记得有个Smartlink选项么?SmartLink的意思是:当该vNet的所有Uplink都失效的时候,VC会自动禁用downlink,这样主机操作系统就会意识到某个物理端口掉线了,从而引导数据流量走向备用的端口,以保证网络的持续畅通。HP6125G有16个内联端口(1/0/1~1/0/16),还有8个外联端口(1/1/1~1/1/8),由于6125G交换机的内联端口插在c3000的刀箱背板上,所以即使外联端口没有接网线,在系统中也会发现主机网络端口都是up的,这样就会带来隐患:外面网络端口已经离线,系统中认为网络端口还是UP状态,APA就不会切换,应用会断掉。所以需要配置内部端口为downlink状态,外面端口配置为uplink状态,这样如果外面网络端口断开后,系统中也会将相应的端口状态变为down。如果用户需要将网络隔离开来,还需要配置vlan和monitor-linkgroup。HP6125G交换机的配置命令是可以只输入前面几个字母,然后通过tab键自动补齐的,HP6125G默认telnet是关闭的,需要通过串口或者通过OA连接到交换机上配置telnet,有两种方法可以连接到交换机上。2.1串口连接需要一根一头是RJ45,一头是9针母头的串口线,连线如图:2.2通过OA连接先telnet到OA上,然后通过OA再connect到interconnectbay上,命令为:connectinterconnectbaynumber,如下图:三.HP6125G交换机配置telnet#Entersystemview。Sysnamesystem-view#EnabletheTelnetserver。[Sysname]telnetserverenable#EntertheuserinterfaceviewVTY0。[Sysname]user-interfacevty0#Enablepasswordauthenticationontheuserinterface。[Sysname-ui-vty0]authentication-modepassword#Setthepasswordtohello。[Sysname-ui-vty0]setauthenticationpasswordcipherhello#Settheuserprivilegelevelto3soTelnetusersaccessingVTY0canuseallcommands。[Sysname-ui-vty0]userprivilegelevel3[Sysname-ui-vty0]quit四.HP6125G交换机配置vlanHP6125G交换机有四个以太网的uplink端口(1/1/5~1/1/8),为避免形成环路,需要将四个端口聚合起来或者将四个端口划分vlan隔离开来,或者就在四个端口上只接一根网线(如果用户接受)。4.1创建vlan#CreateVLAN10andenteritsview。[Sysname]vlan10[Sysname-vlan10]#AssignGigabitEthernet1/1/5toVLAN10。[Sysname-vlan10]portgigabitethernet1/1/5[Sysname-vlan10]quit4.2取消端口如果从vlan10中取消掉一个端口,可以用undo命令[6125GBladeSwitch]vlan13[6125GBladeSwitch-vlan13]undoportGigabitEthernet1/0/13五.HP6125G交换机配置monitor-linkgroup配置monitor-linkgroup的过程和配置vlan类似,先创建一个monitor-linkgroup,然后将端口加入到这个组中,端口可以一个一个添加,也可以将一个区间内的端口一次性加进去。5.1配置monitor-linkgroup:#Createmonitorlinkgroup1,andthenconfigureGigabitEthernet1/0/1asanuplinkportandGigabitEthernet1/0/2asadownlinkportformonitorlinkgroup1。DeviceBsystem-view[DeviceB]monitor-linkgroup1[DeviceB-mtlk-group1]portgigabitethernet1/0/1uplink[DeviceB-mtlk-group1]portgigabitethernet1/0/2downlink[DeviceB-mtlk-group1]quit5.
本文标题:6125G简易配置
链接地址:https://www.777doc.com/doc-5942825 .html