按一下命令操作并理解
1.配置设备间互联地址 (<H3C> SYS 进入[h3c] 再配置命令)
=====SWA==========
#
sysname SWA
#
vlan 10
description 10.1
#
interface Vlan-interface10
ip address 192.168.10.254 255.255.255.0
#
interface GigabitEthe.NET1/0/3
port access vlan 10
#
=======================================
2.创建vlan网关
=================================
#
vlan 100
#
interface Vlan-interface100
ip address 192.168.100.254 255.255.255.0
#
interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/2
port access vlan 100
#
==========结果PC3========
pc 随意配置好相应网段地址,想一下可用地址
<H3C>ping 192.168.10.1
Ping 192.168.10.1 (192.168.10.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.10.1: icmp_seq=0 ttl=255 time=0.836 ms
56 bytes from 192.168.10.1: icmp_seq=1 ttl=255 time=1.238 ms
56 bytes from 192.168.10.1: icmp_seq=2 ttl=255 time=0.677 ms
56 bytes from 192.168.10.1: icmp_seq=3 ttl=255 time=0.819 ms
56 bytes from 192.168.10.1: icmp_seq=4 ttl=255 time=1.038 ms
===============SWB============
#
sysname SWB
#
vlan 10
description 10.2
#
interface Vlan-interface10
ip address 192.168.10.2 255.255.255.0
#
interface GigabitEthernet1/0/3
port access vlan 10
#