资源预览内容
第1页 / 共7页
第2页 / 共7页
第3页 / 共7页
第4页 / 共7页
第5页 / 共7页
第6页 / 共7页
第7页 / 共7页
亲,该文档总共7页全部预览完了,如果喜欢就下载吧!
资源描述
H3C S5500 基本配置思路及实用命令1. 总体配置思路:1) 添加 VLAN1,并将相应端口添加到该 VLAN。(在 VLAN 状态下才可一次将多个端口加入相应 VLAN,interface e 1/0/1 to e 1/0/24)2) 添加 VLAN2,并将其置为管理 VLAN(在#状态下 management-vlan 2),才可设置其 VLAN 的 IP 地址。3) 添加静态路由。4) 配置端口 TRUNK 模式。5) 配置远程登录 VTY 认证。6) 配置本地用户。2. 进入特权模式 System ViewSystem ViewSystem View: return to User View with Ctrl+Z.H3CdisH3Cdisplay cur3. 配置交换机主机名 sysnamesysname H3C4. 添加 VLANvlan 1或在此状态下直接将相应端口加入该 VLAN (否则只能一个口一个口的添加)Interface e 1/0/1 to e 1/0/245. 配置管理 VLAN- management-vlanmanagement-vlan 26. 给管理 VLAN 添加 IP 地址 interface Vlan-interface1ip address 10.10.40.176 255.255.255.07. 添加端口到 VLAN:port access vlan 1interface GigabitEthernet1/0/2port access vlan 18. 远程登录配置及 3A 认证模式user-interface vty 0 4authentication-mode scheme9. 配置 3A 认证本地用户及属性local-user testpassword simple testpwdauthorization-attribute level 3service-type telnet可能的配置local-user testpassword simple testservice-type telnetlevel 310.将端口配置为 Trunk 口interface GigabitEthernet1/0/20port link-type trunkport trunk permit vlan all11.添加静态路由 ip route-static 0.0.0.0 0.0.0.0 10.10.40.112.查看路由表display ip routing-tableH3Cdisplay ip routing-table Routing Tables: PublicDestinations : 7 Routes : 7Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/0 Static 60 0 10.10.40.1 Vlan210.10.40.0/24 Direct 0 0 10.10.40.180 Vlan210.10.40.180/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.76.0/24 Direct 0 0 192.168.76.3 Vlan76192.168.76.3/32 Direct 0 0 127.0.0.1 InLoop013.显示当前配置 display current-configurationH3Cdisplay current-configuration 14.查看端口及 VLAN 的 up/down 状态display brief interfaceH3Cdisplay brief interface The brief information of interface(s) under route mode:Interface Link Protocol-link Protocol type Main IP NULL0 UP UP(spoofing) NULL - Vlan1 UP UP ETHERNET 192.168.76.3 Vlan2 UP UP ETHERNET 10.10.40.180 The brief information of interface(s) under bridge mode:Interface Link Speed Duplex Link-type PVID GE1/0/1 UP 1G(a) full(a) access 1 GE1/0/2 DOWN auto auto access 1 GE1/0/3 DOWN auto auto access 1 GE1/0/9 DOWN auto auto access 1 GE1/0/10 DOWN auto auto access 1 display brief interface GigabitEthernet 1/0/1H3Cdisplay brief interface GigabitEthernet 1/0/1The brief information of interface(s) under bridge mode:Interface Link Speed Duplex Link-type PVID GE1/0/1 UP 1G(a) full(a) access 1 display brief interface Vlan-interface 1H3Cdisplay brief interface Vlan-interface 1The brief information of interface(s) under route mode:Interface Link Protocol-link Protocol type Main IP Vlan1 UP UP ETHERNET 192.168.76.3 15.查看 MAC 地址缓存表display mac-addressH3Cdisplay mac-address MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)0000-e7a7-2374 1 Learned GigabitEthernet1/0/19 AGING 0000-e8f1-6952 1 Learned GigabitEthernet1/0/19 AGING 0001-6c41-9cee 1 Learned GigabitEthernet1/0/19 AGING 000c-2919-0d6c 1 Learned GigabitEthernet1/0/19 AGING 000c-2961-d8ea 1 Learned GigabitEthernet1/0/19 AGING 16.查看某一端口的 MAC 地址缓存表display mac-address interface GigabitEthernet 1/0/1H3Cdisplay mac-address interface GigabitEthernet 1/0/1MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)0016-3642-e888 1 Learned GigabitEthernet1/0/1 AGING 0016-eca2-d69d 1 Learned GigabitEthernet1/0/1 AGING 001c-25d8-77b6 1 Learned GigabitEthernet1/0/1 AGING 0024-1d6e-6fbe 1 Learned GigabitEthernet1/0/1 AGING 17.查看 ARP 缓存表display arpH3Cdisplay arpType: S-Static D-DynamicIP Address MAC Address VLAN ID Interface Aging Type192.168.76.56 0016-eca2-d69d 1 GE1/0/1 20 D192.168.76.131 0016-3642-e888 1 GE1/0/1 19 D192.168.76.171 0024-1d6e-6fbe 1 GE1/0/1 13 D10.10.40.1 0018-742d-4fc0 2 GE1/0/19 14 D192.168.76.1 0018-742d-4fc0 1 GE1/0/19 10 D18.Tftp 备份配置1) 查看配置文件名及所在文件夹-dir 配置文件名可能为 startup.cfg 或 config.cfg配置文件可能在 flash:/或 unit1flash:/目录下dir flash:/ Directory of flash:/0 -rw- 8221183 Aug 11 2010 16:27:52 s5500tpsi-cmw520-r2202p11.bin1
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号