HP交换机简单配置方法
远程telnet进核心交换机
telnet 192.168.1.1
出现以下:
-----------------------------------------
Software revision K.15.10.0003
Copyright (C) 1991-2012 Hewlett-Packard Development Company, L.P.
RESTRICTED RIGHTS LEGEND
Confidential computer software. Valid license from HP required for possession,
use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer
Software, Computer Software Documentation, and Technical Data for Commercial
Items are licensed to the U.S. Government under vendor's standard commercial
license.
HEWLETT-PACKARD DEVELOPMENT COMPANY, L.P.
20555 State Highway 249, Houston, TX 77070
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.hp.com/networking/register
username:
-----------------------------------------
在username输入账号后回车
在Password输入密码,在输入时是看不到密码的键入,输入完成后直接回车可进入配置。
-----------------------------------------
一、VLAN划分和删除方法:
HP-8212# config (输入config进入高级模式)
HP-8212(config)# show run (查看交换机全局配置命令)
HP-8212(config)# vlan 2(创建或进入vlan 2)
HP-8212(vlan-2)# name tec(将vlan 2命名为“tec”)
HP-8212(vlan-2)# ip address XXX.XXX.XXX 255.255.255.0(设置vlan IP地址,如果删除IP,在ip address前加no)
HP-8212(vlan-2)# untagged a2-a10(将8212的a插槽2-10口列入VLAN 2内,在配置二层交换机时,因没有区分插槽,可不用输入插槽号。)
HP-8212(vlan-2)# tagged a22(将a插槽的22口作为上(下)级端口,既核心级连其它交换机的端口)
HP-8212(vlan-2)# exit(退到上一级)
HP-8212(config)# write memory(保存配置)
-----------------------------------------
HP-8212(config)# no vlan 2(删除vlan 2)
-----------------------------------------
二、交换机的常用命令:
show run(查看交换机全局配置命令)
show arp(查看交换机ARP列表命令)
键盘“tab”键的功能主要是用来查看各命令操作的说明,以及在只打命令的前一两个字母情况下按“Tab”键,可查看涉及该字母的命令提示)