华为交换机基本配置
1 配 telnetuser-interface vty 0 4
authentication-modepassword
setauthentication passwordcipher 123456
quit
super passwordcipher 123456
2 配互连
interface Vlanif 100
interface Vlanif 100
ip address192.168.100.1 255.255.255.0 undo shutdown
3 配置端口限速
interfaceGigabitEthernet 0/0/1
qoslr outbound cir 60000 cbs 64000
qoslr inbound cir 60000 cbs 64000
displaythis
interface GigabitEthernet0/0/1
port link-type access
qos lr outbound cir 60000 cbs64000
qos lr inbound cir 60000 cbs64000
4 清空交换机配置
<Huawei>reset saved-configuration
5 配super 密码
superpasswordcipher 123456
6 配默认路由和静态路由
默认路由
ip route-static0.0.0.0 0.0.0.0 192.168.10.2
静态路由
ip route-static 192.168.1.1 255.255.255.0 10.1.1.1
7 配ACL
acl number 2000
rulepermit source 192.168.1.1 0.0.0.255
8 划VLAN 将端口加入VLAN
vlan 100
interface GigabitEthernet 0/0/1
portlink-type access
portdefault vlan 100
interfaceGigabitEthernet 0/0/1
displaythis
interface GigabitEthernet0/0/1
port link-type access
9 配置trunk 和 trunk 可以通过的VLAN
port link-type trunk
port trunk allow-pass vlan 100 200
建组将多个端口加到组进行配置
port-group 1
group-member
端口聚合
interface Eth-Trunk 1
eth-trunk1
eth-trunk1
dis interface brief
Interface PHY Protocol InUti OutUti inErrors outErrors
Eth-Trunk1 downdown 0% 0% 0 0
GigabitEthernet0/0/1 down down 0% 0% 0 0
GigabitEthernet0/0/2 down down 0% 0% 0 0
GigabitEthernet0/0/3 down down 0% 0% 0 0
15端口描述和vlan描述
description 222
description 111
时间设置
<Huawei>clock datetime19:08 2013-1-5
页:
[1]