aini 发表于 2012-12-17 09:02:22

H3C 交换机常用配置命令

1、配置主机名   
systemname H3C   
2、配置console口密码   
# 进入系统视图。   
<H3C> system-view   
# 进入AUX用户界面视图。   
user-interface aux 0   
# 设置通过Console口登录交换机的用户进行Password认证。   
authentication-mode password   
# 设置用户的认证口令为加密方式,口令为123456。   
set authentication password cipher 123456   
# 设置从AUX用户界面登录后可以访问的命令级别为3级。   
user privilege level 3 //3为系统权限级别   
3、配置Telnet   
# 进入系统视图。   
<H3C> system-view   
# 进入VTY0用户界面视图。   
user-interface vty 0   
# 设置通过VTY0口登录交换机的用户进行Password认证。   
authentication-mode password   
# 设置用户的认证口令为密码方式,口令为123456。   
set authentication password cipher 123456   
# 设置从VTY0用户界面登录后可以访问的命令级别为3级。   
user privilege level 3   
# 设置VTY0用户界面支持Telnet协议。   
protocol inbound telnet   
4、配置交换机VLAN 1 管理地址   
<H3C> system-view   
interface vlan-interface 1   
ip address 192.168.0.129 255.255.255.0   
5、配置交换机网关地址   
ip route-static 0.0.0.0 0.0.0.0 192.168.0.1   
6、配置HTTP服务   
local-user admin                              #创建http用户   
service-type telnet
authorization-attribute level 3   
password cipher admin#设置http用户密码,并加密显示   
7、配置SNMP   
snmp-agent   
snmp-agent community read 123456#设置snmp团体名称 ,权限为只读   
snmp-agent sys-info version v1 v2c   #设置snmp版本v1 和v2   
8、Qos端口限速   
interface gigabitethernet 1/0/1   
# 配置限速参数,端口进/出速率限制为5120kbps。   
qos lr inbound cir 5120   
qos lr outbound cir 5120   
9、创建VLAN   
vlan 100   
10、删除VLAN   
undo vlan 100   
11、将端口加入vlan 100   
interface GigabitEthernet 1/0/24   
port access vlan 100
12、查看VLAN   
display vlan all   
12、查看端口状态   
display interface GigabitEthernet 1/0/24   
14、启用端口   
interface GigabitEthernet 1/0/24   
undo shutdown   
15、关闭端口   
interface GigabitEthernet 1/0/24   
shutdown   
16、查看MAC地址列表   
display mac-address   
17、查看arp信息   
display arp   
18、查看current配置   
display current-configuration   
19、查看saved配置   
display saved-configuration   
注:current 配置是保存在交换机内存里面,当交换机重启时,不会生效   
要交换机重启时生效,必须保存在saved-configureation配置里   
20、保存交换机配置   
save

风起漂泊 发表于 2013-5-15 23:50:34

不要在一棵树上吊死,在附近几棵树上多试试死几次~

wendu 发表于 2013-5-16 17:00:00

做爱做的事,交配交的人。

remington_young 发表于 2013-5-17 09:49:09

路过,学习下

24cun_cn 发表于 2013-5-17 21:39:36

漏洞与补丁齐飞,蓝屏共死机一色!

liukun2009 发表于 2013-5-18 10:20:19

你的丑和你的脸没有关系。。。。。。
页: [1]
查看完整版本: H3C 交换机常用配置命令