132
State: S - Static, D – Dynamic
MAC address Mask VLAN ID Dot1q State
000d-88f8-4e71 ffff-ffff-ffff 100 0 S
0014-222c-aa69 ffff-ffff-ffff 200 0 S
Total MAC VLAN entries count: 2
IP subnet-based VLAN configuration example
Network requirements
As shown in
, the hosts in the office belong to different IP subnets.
Configure Device C to transmit packets from 192.168.5.0/24 and 192.168.50.0/24 in VLANs 100 and
200, respectively.
Figure 41 Network diagram
Configuration procedure
1.
Configure Device C:
# Associate IP subnet 192.168.5.0/24 with VLAN 100.
<DeviceC> system-view
[DeviceC] vlan 100
[DeviceC-vlan100] ip-subnet-vlan ip 192.168.5.0 255.255.255.0
[DeviceC-vlan100] quit
# Associate IP subnet 192.168.50.0/24 with VLAN 200.
[DeviceC] vlan 200
[DeviceC-vlan200] ip-subnet-vlan ip 192.168.50.0 255.255.255.0
Device A
Device B
Office
Device C
VLAN 100
VLAN 200
GE1/0/1
GE1/0/11
GE1/0/12
192.168.5.0/24
192.168.50.0/24
Содержание H3C S7500E-X
Страница 70: ...57 ...