<p>华为模拟器命令</p><p>计算机命令</p><p>PCA login: root ;使用root用户password: linux ;口令是linux</p><p># shutdown -h now ;关机</p><p># init 0 ;关机</p><p># logout ;用户注销</p><p># login ;用户登录</p><p># ifconfig ;显示IP地址</p><p># ifconfig eth0 <ip address> netmask <netmask> ;设置IP地址</p><p># ifconfig eht0 <ip address> netmask <netmask> down ;禁用IP地址</p><p># route add 0.0.0.0 gw <ip> ;设置网关</p><p># route del 0.0.0.0 gw <ip> ;删除网关</p><p># route add default gw <ip> ;设置网关</p><p># route del default gw <ip> ;删除网关</p><p># route ;显示网关</p><p># ping <ip> ;发ECHO包</p><p># telnet <ip> ;远程登录</p><p>交换机命令</p><p>[Huawei]dis cur ;显示当前配置[Huawei]display current-configuration ;显示当前配置[Huawei]display interfaces ;显示接口信息[Huawei]display vlan all ;显示路由信息[Huawei]display version ;显示版本信息</p><p>[Huawei]super password ;修改特权用户密码[Huawei]sysname ;交换机命名[Huawei]interface ethernet 0/1 ;进入接口视图[Huawei]interface vlan x ;进入接口视图[Huawei-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0 ;配置VLAN的IP地址</p><p>[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 ;静态路由=网关[Huawei]rip ;三层交换支持[Huawei]local-user ftp</p><p>[Huawei]user-interface vty 0 4 ;进入虚拟终端</p><p>[S3026-ui-vty0-4]authentication-mode password ;设置口令模式</p><p>[S3026-ui-vty0-4]set authentication-mode password simple 222 ;设置口令</p><p>[S3026-ui-vty0-4]user privilege level 3 ;用户级别</p><p>[Huawei]interface ethernet 0/1 ;进入端口模式[Huawei]int e0/1 ;进入端口模式[Huawei-Ethernet0/1]duplex {half|full|auto} ;配置端口工作状态[Huawei-Ethernet0/1]speed {10|100|auto} ;配置端口工作速率[Huawei-Ethernet0/1]flow-control ;配置端口流控[Huawei-Ethernet0/1]mdi {across|auto|normal} ;配置端口平接扭接[Huawei-Ethernet0/1]port link-type {trunk|access|hybrid} ;设置端口工作模式[Huawei-Ethernet0/1]port access vlan 3 ;当前端口加入到VLAN [Huawei-Ethernet0/2]port trunk permit vlan {ID|All} ;设trunk允许的VLAN [Huawei-Ethernet0/3]port trunk pvid vlan 3 ;设置trunk端口的PVID [Huawei-Ethernet0/1]undo shutdown ;激活端口</p><p>[Huawei-Ethernet0/1]shutdown ;关闭端口</p><p>[Huawei-Ethernet0/1]quit ;返回</p><p>[Huawei]vlan 3 ;创建VLAN [Huawei-vlan3]port ethernet 0/1 ;在VLAN中增加端口[Huawei-vlan3]port e0/1 ;简写方式</p><p>[Huawei-vlan3]port ethernet 0/1 to ethernet 0/4 ;在VLAN中增加端口[Huawei-vlan3]port e0/1 to e0/4 ;简写方式</p><p>[Huawei]monitor-port <interface_type interface_num> ;指定镜像端口[Huawei]port mirror <interface_type interface_num> ;指定被镜像端口[Huawei]port mirror int_list observing-port int_type int_num ;指定镜像和被镜像</p><p>[Huawei]description string ;指定VLAN描述字符[Huawei]description ;删除VLAN描述字符[Huawei]display vlan [vlan_id] ;查看VLAN设置</p><p>[Huawei]stp {enable|disable} ;设置生成树,默认关闭[Huawei]stp priority 4096 ;设置交换机的优先级[Huawei]stp root {primary|secondary} ;设置为根或根的备份[Huawei-Ethernet0/1]stp cost 200 ;设置交换机端口的花费</p><p>[Huawei]link-aggregation e0/1 to e0/4 ingress|both ;端口的聚合[Huawei]undo link-aggregation e0/1|all ;始端口为通道号</p><p>[SwitchA-vlanx]isolate-user-vlan enable ;设置主vlan [SwitchA]isolate-user-vlan <x> secondary <list> ;设置主vlan包括的子vlan [Huawei-Ethernet0/2]port hybrid pvid vlan <id> ;设置vlan的pvid [Huawei-Ethernet0/2]port hybrid pvid ;删除vlan的pvid [Huawei-Ethernet0/2]port hybrid vlan vlan_id_list untagged ;设置无标识的vlan</p>
讯享网

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/187414.html