华为交换机基础配置(一)
一、配置Telnet远程[*] 使用system-view命令
进入[]模式
[*] 输入AAA进入aaa配置模式
[*] 接着设置admin密码
local-user admin password simple 1qaz2wsx
根据你的交换机的不同上面的命令也可能不一样
[*] 然后设置登陆权限
local-user admin privilege level 3
[*] 接下来设置登录类型
local-user admin service-type telnet
[*] 进入认证配置模式
user-interface vty 0 4
[*] 设置aaa认证
authentication-mode aaa
[*] 使用disp curr查看当前配置
[*] 然后再pc上用telnet登陆
二、创建管理IP地址
vlan 209
in vlanif 209
ip address 10.2.9.X 255.255.255.0
三、将多个端口加入到VLAN
<Quidway> system-view
port-group portgroup1(名称)
group-member Ethernet 0/0/1 to Ethernet0/0/24
<Quidway> system-view
port-group yewu
group-member Ethernet 0/0/1 to Ethernet 0/0/20
port link-type access
port default vlan 2270
quit
四、Trunk口设置
interface GigabitEthernetX/X/X
port link-type trunk
port trunk allow-pass vlan 209
五、删除交接机配置信息
删除配置必须退到用户模式
reset saved-configuration(reset saved) 删除配置
reboot 重启交换机
#reset saved-configuration 选y;然后reboot 选n。
六、静态路由
ip route-static 0.0.0.0 0.0.0.0 10.1.254.1
七、其他
save all 保存
dis curr 显示当前配置
页:
[1]