H3C_S5500基本配置思路及实用命令 下载本文

内容发布更新时间 : 2024/12/26 19:59:27星期一 下面是文章的全部内容请认真阅读。

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

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