网络拓扑图
VLAN 配置
VLAN 100
VLAN 200
[H3C]int vlan 100
ip address 1.1.1.1 255.255.255.0[H3C-Vlan-interface100]int vlan 200
ip address 2.2.2.1 255.255.255.0[H3C]int GigabitEthernet 1/0/1port access vlan 100[H3C]int GigabitEthernet 1/0/2port access vlan 200
[H3C]dis vlan all......VLAN ID: 100VLAN type: StaticRoute interface: ConfiguredIPv4 address: 1.1.1.1IPv4 subnet mask: 255.255.255.0Description: VLAN 0100Name: VLAN 0100Tagged ports: NoneUntagged ports:GigabitEthernet1/0/1VLAN ID: 200VLAN type: StaticRoute interface: ConfiguredIPv4 address: 2.2.2.1IPv4 subnet mask: 255.255.255.0Description: VLAN 0200Name: VLAN 0200Tagged ports: NoneUntagged ports:GigabitEthernet1/0/2
PC测试
PC1 : 1.1.1.2 255.255.255.0 gateway 1.1.1.1VPCS_2> ping 2.2.2.2
84 bytes from 2.2.2.2 icmp_seq=1 ttl=63 time=2.572 ms
84 bytes from 2.2.2.2 icmp_seq=2 ttl=63 time=2.417 ms
84 bytes from 2.2.2.2 icmp_seq=3 ttl=63 time=2.426 ms
84 bytes from 2.2.2.2 icmp_seq=4 ttl=63 time=1.132 ms
正常!