1、4)删除Flash中的配置信息Reset saved-configuration5)重新启动交换机Reboot6)修改交换机名称Sysname xxxx(其中xxx为交换机名)7)显示系统软件版本Display version8)显示端口的配置信息Display interfaceinterface_type|interface_type interface_num|interface_name9)设置以太网端口的全双工/半双工属性Duplexauto|full|halfUndo duplex10)设置端口的速率Speed10|100|1000|autoUndo speed11)设置以太网端口
2、的网线类型Mdiacross|auto|normalUndo mdi12)设置以太网端口广播风暴抑制比Broadcast-suppression pct 其中pct代表以太网端口最大广播流量的线速度百分比,取值范围为5-100。Undo broadcast-suppression13)开启以太网端口的流量控制特性Flow-controlUndo flow-control14)设置以太网端口的链路类型Port link-typeaccess|hybrid|trunkUndo port link-type15)把access端口加入到指定的VLAN中Port access vlan vlan-id
3、Undo port access vlan16)添加/修改地址表项Mac-address static|dynameic mac_address interfaceinterface_name|interface_type interface_numvlan vlan_idUndo mac-address static|dynameic mac_address interfaceinterface_name|interface_type interface_numvlan vlan_id17)将一组端口设置为汇聚端口Link-aggregation interface_name1 to int
4、erface_name2both|ingressUndo link-aggregation master_interface_name|all18)低级用户和高级用户相互切换Super x(x表示用户所在层次)19)创建VLANVlan vlan_idUndo vlanvlan_id to vlan_id|all(all表示删除所有vlan)20)给VLAN接口指定IP地址和掩码Ip address ip_address ip_netmasksubUndo ip address ip-address ip_netmasksub21)进行用户界面祝图User-interfacetype firs
5、t-numberlast-number22)设置登录用户的认证方式Authentication-modepassword|schemeAuthentication-mode none23)设置本地认证的口令Set authentication passwordcipher|simple xxxxx(cipher为密文、simple为明文)Undo set authentication password24)设置切换低级别用户到高级别用户的密码Super passwordlevel xsimple|cipher xxxx(x或者xxxx都为具体数字)Undo super password lev
6、el x25)添加本地用户Local-user user-nameUndo local-useruser-name |allservice-typetelnet|ftp|lan-access26)设置指定用户的服务类型Service-typetelnetlevel xftpftp-directory directory|lan-accessUndo service-type telnetlevel|ftpftp-directory|lan-access项目实训内容:任务:交换机口令配置与清除1、交换机Console口令配置步骤:system-viewH3Cuser-interface aux
7、0H3C-ui-aux0authentication-mode password(设置验证模式为password)H3C-ui-aux0set authentication password simple 123456(设置验证口令为明文123456)H3C-ui-aux0quitH3Cquitsave Display current-configuration(验证密码是否设置成功)reboot(重新启动交换机)2、交换机Console口令清除步骤:如果口令丢失,那么重新启动交换机,在出现Press Ctrl-B to enter Boot Menu提示时,按下Ctrl+B,然后输入Boot
8、ROM口令,才能进入Boot菜单。选择第四项“Delete file from flash”,删除指定文件vrpcfg.txt。3、修改登录用户的命令控制级别:用户登录后,其对命令的控制有一定的级别,共分为个等级,最低级别为,最高级别为,默认值为;当不指定用户级别表示从当前级别切换到级别。不同的级别下只能使用等于或低于自己级别的命令。其操作步骤如下:H3C user-interface aux 0H3C-ui-aux0user privilege level 0H3Csuper password level 1 simple h3c1H3Csuper password level 2 simp
9、le h3c2H3Csuper password level 3 simple h3c3 Display current-configuration(验证用户权限密码是否设置成功)任务二:1、交换机端口基本配置H3C sysname switch1switch1vlan 10switch1 -vlan10quitswitch1interface Ethernet 1/0/1switch1- Ethernet 1/0/1duplex fullswitch1- Ethernet 1/0/1speed 100switch1- Ethernet 1/0/1mdi acrossswitch1- Ethe
10、rnet 1/0/1flow-controlswitch1- Ethernet 1/0/1broadcast-suppression 10switch1- Ethernet 1/0/1port link-type accessswitch1- Ethernet 1/0/1port access vlan 102、交换机VLAN端口基本配置Switch1vlan 10 (创建VLAN)Switch1-vlan10port Ethernet 1/0/1 to Ethernet 1/010 (将端口加入到VLAN中)Switch1-vlan10quitSwitch1interface vlan-in
11、terface 10 (创建VLAN的虚接口)Switch1- vlan-interface10ip address 192.168.10.1 255.255.255.0 (创建VLAN接口IP地址)Switch1- vlan-interface10quitSwitch1display vlan all (查看VLAN信息)任务三:仅使用密码的交换机Telnet 配置操作内容:本任务主要介绍H3C以太网交换机的Telnet配置方法,用户利用Telnet登录交换机时仅使用密码验证方式的交换机配置方法。组网环境:H3C S3600以太网交换机两台,操作系统为VRP software Version
12、,专用配置电缆1根,网线两根,PC机一台。组网拓朴图:配置步骤:1、交换机VLAN端口配置(1)交换机Switch1的相关配置H3Csysname switch1switch1vlan 100switch1-vlan100port Ethernet 1/0/10switch1-vlan100quitswitch1interface Vlan-interface 100switch1-vlan-interface100ip address 192.168.10.1 255.255.255.0switch1-vlan-interface100quitswitch1-vlan10port Ether
13、net 1/0/2switch1-vlan10quitswitch1interface Vlan-interface 10switch1-vlan-interface10ip address 192.168.1.1 255.255.255.0switch1-vlan-interface10quitswitch1display vlan all(2)交换机Switch2的相关配置H3Csysname switch2switch2vlan 10switch2-vlan10port Ethernet 1/0/2switch2-vlan10quitswitch2interface Vlan-inter
14、face 10switch2-vlan-interface10ip address 192.168.1.2 255.255.255.0switch2-vlan-interface10quitswitch2ip route-staic 0.0.0.0 0.0.0.0 192.168.1.1switch2display vlan all2、交换机Telnet密码验证设置(1)在交换机1上的相关配置switch1user-interface vty 0 4switch1-ui-vty0-4authentication-mode passwordswitch1-ui-vty0-4set authent
15、ication password simple aaaswitch1-ui-vty0-4user privilege level 3switch1-ui-vty0-4quitswitch1(2)在交换机2上的相关配置switch2user-interface vty 0 4switch2-ui-vty0-4authentication-mode passwordswitch2-ui-vty0-4set authentication password simple aaaswitch2-ui-vty0-4user privilege level 3switch2-ui-vty0-4quitswi
16、tch23、修改PC机IP地址并进行Telnet登录(1)修改PC机IP地址PC机IP地址为192.168.10.2,掩码为255.255.255.0,网关为192.168.10.1(2)利用telnet进行远程登录switch1C:telnet 192.168.1.1(3)利用telnet进行远程登录switch2telnet 192.168.1.2知识拓展:使用用户名和密码的交换机的Telnet配置在Console口连接交换机1的超级终端上操作(删除任务3配置的相关内容):switch1-ui-vty0-4undo set authentication passwordswitch1-ui
17、-vty0-4undo user privilege level 在交换机Switch1上进行用户名和密码验证配置switch1-ui-vty0-4authentication-mode schemeswitch1local-user h3c 创建本地用户switch1-luser-h3cservice-type telnet 配置为telnet用户switch1-luser-h3cpassword simple 123switch1-luser-h3csuper password level 3 simple xyz在PC机上进行Telnet登录结果显示Username:h3cPasswor
18、d;123switch1任务四:配置交换机端口的MAC地址表和端口汇聚操作内容:修改交换机端口地址与属性,配置交换机端口的静态MAC地址表、实现交换机的端口汇聚等。组网环境:网络拓扑图:配置步骤:1、设置h3c1的E1/0/1和E1/0/2端口h3ch3csysname h3c1h3c1interface Ethernet 1/0/1h3c1-Ethernet1/0/1speed 100h3c1-Ethernet1/0/1duplex fullh3c1-Ethernet1/0/1interface Ethernet 1/0/2h3c1-Ethernet1/0/2speed 100h3c1-Et
19、hernet1/0/2duplex fullh3c1-Ethernet1/0/2quith3c1vlan 10h3c1-vlan10port Ethernet 1/0/1 to Ethernet 1/0/10h3c1-vlan10quith3c1link-aggregation group 1 (组) mode manual h3c1Interface e1/0/1h3c1-Ethernet1/0/1port Link-aggregation group 1h3c1-Ethernet1/0/1quith3c1Interface e1/0/2h3c1-Ethernet1/0/2port Link
20、-aggregation group 1h3c1display link-aggregationh3c1interface vlan-interface 10h3c1-vlan-interface10ip address 192.168.10.1 255.255.255.0h3c1-vlan-interface10quith3c1display interface vlan 10h3c1mac-address static (pc机的mac地址) interface e1/0/10 vlan 102、设置h3c2的E1/0/1和E1/0/2端口h3csysname h3c2h3c2interf
21、ace Ethernet 1/0/1h3c2-Ethernet1/0/1speed 100h3c2-Ethernet1/0/1duplex fullh3c2-Ethernet1/0/1interface Ethernet 1/0/2h3c2-Ethernet1/0/2speed 100h3c2-Ethernet1/0/2duplex fullh3c2-Ethernet1/0/2quith3c2vlan 10h3c2-vlan10port Ethernet 1/0/1 to Ethernet 1/0/10h3c2-vlan10quith3c2link-aggregation g 1-416 m
22、s h3c2display link-aggregationh3c2interface vlan-interface 10h3c2-vlan-interface10ip address 192.168.10.2 255.255.255.0h3c2-vlan-interface10quith3c2display interface vlan 103、测试结果(1)h3c1ping 192.168.10.2 (结果是连通的)(2)将E1/0/1端口关闭,再进行测试h3c1interface e1/0/1h3c1-Ethernet1/0/1shutdownh3c1ping 192.168.10.2(结果仍然是连通的)
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1