admin 管理员组

文章数量: 887021

路由配置:

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 172.16.10.1 24
[Huawei]ip route-static 0.0.0.0 0.0.0.0 172.16.10.2

交换机配置:

[Huawei]vlan batch 10 20
[Huawei]interface Vlanif 10
[Huawei-Vlanif10]ip address 172.16.10.2 255.255.255.0
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1] port link-type access
[Huawei-GigabitEthernet0/0/1] port default vlan 10

[Huawei]interface Vlanif 20
[Huawei-Vlanif10]ip address 192.168.20.1 255.255.255.0
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2] port link-type access
[Huawei-GigabitEthernet0/0/2] port default vlan 20
[Huawei]ip route-static 0.0.0.0 0.0.0.0 172.16.10.1

PC设置:

测试:

本文标签: 华为 路由器 交换机 eNSP