H3C_S5500基本配置思路及实用命令
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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 View
System View: return to User View with Ctrl+Z.
[H3C]dis
[H3C]display cur
3.配置交换机主机名sysname
sysname H3C
4.添加VLAN
vlan 1
或在此状态下直接将相应端口加入该VLAN (否则只能一个口一个口的添加)
Interface e 1/0/1 to e 1/0/24
5.配置管理VLAN-- management-vlan
management-vlan 2
6.给管理VLAN添加IP地址interface Vlan-interface1 ip address 10.10.40.176 255.255.255.0
7.添加端口到VLAN:port access vlan 1
interface GigabitEthernet1/0/2
port access vlan 1
8.远程登录配置及3A认证模式
user-interface vty 0 4
authentication-mode scheme
9.配置3A认证本地用户及属性
local-user test
password simple testpwd
authorization-attribute level 3
service-type telnet
可能的配置
local-user test
password simple test
service-type telnet
level 3
10.将端口配置为Trunk口
interface GigabitEthernet1/0/20
port link-type trunk
port trunk permit vlan all
11.添加静态路由
ip route-static 0.0.0.0 0.0.0.0 10.10.40.1
12.查看路由表
display ip routing-table
[H3C]display ip routing-table
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 10.10.40.1 Vlan2
10.10.40.0/24 Direct 0 0 10.10.40.180 Vlan2
10.10.40.180/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.76.0/24 Direct 0 0 192.168.76.3 Vlan76
192.168.76.3/32 Direct 0 0 127.0.0.1 InLoop0
13.显示当前配置display current-configuration
[H3C]display current-configuration
14.查看端口及VLAN的up/down状态
display brief interface
[H3C]display 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/1
[H3C]display brief interface GigabitEthernet 1/0/1
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
display brief interface Vlan-interface 1
[H3C]display brief interface Vlan-interface 1
The 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-address
[H3C]display 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/1
[H3C]display mac-address interface GigabitEthernet 1/0/1
MAC 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缓存表