VLAN
H3C Low-End Ethernet Switches Configuration Examples
Chapter 2 Configuration Examples
2-7
# Configure GigabitEthernet 1/1/1 and GigabitEthernet 1/1/2 as trunk ports permitting
the frames of VLAN 100, VLAN 200, and VLAN 300 to pass through with VLAN tags.
[SwitchB] interface GigabitEthernet 1/1/1
[SwitchB-GigabitEthernet1/1/1] port link-type trunk
[SwitchB-GigabitEthernet1/1/1] port trunk permit vlan 100 200 300
[SwitchB-GigabitEthernet1/1/1] quit
[SwitchB] interface GigabitEthernet 1/1/2
[SwitchB-GigabitEthernet1/1/2] port link-type trunk
[SwitchB-GigabitEthernet1/1/2] port trunk permit vlan 100 200 300
[SwitchB-GigabitEthernet1/1/2] quit
z
Configure Core-Switch A
# Create VLAN 100, VLAN 200, and VLAN 300 on Core-Switch A. The configuration
procedure is the same as that on Switch A.
# Configure GigabitEthernet 1/1/1 and GigabitEthernet 1/1/2 as trunk ports permitting
the frames of VLAN 100, VLAN 200, and VLAN 300 to pass through with VLAN tags.
The configuration procedure is the same as that on Switch B.
# Create VLAN-interface 100 and assign it IP address 192.168.30.1. Use this address
as the IP address of the gateway for the R&D department. Allocate IP addresses in the
address pool 192.168.30.0/24 for the hosts of the R&D department.
[Core-SwitchA] dhcp enable
[Core-SwitchA] interface Vlan-interface 100
[Core-SwitchA-Vlan-interface100] ip address 192.168.30.1 24
[Core-SwitchA-Vlan-interface100] dhcp select interface
[Core-SwitchA-Vlan-interface100] quit
# Create a global IP address pool
mk
with the address segment 192.168.40.0/24 to
allocate IP addresses for the hosts of the marketing department. Configure the gateway
IP address as 192.168.40.1 for the hosts, pointing to Core-Switch B.
[Core-SwitchA] dhcp server ip-pool mk
[Core-SwitchA-dhcp-pool-mk] network 192.168.40.0 mask 255.255.255.0
[Core-SwitchA-dhcp-pool-mk] gateway-list 192.168.40.1
Note:
For detailed information about DHCP configuration, refer to the user manual of the
S3600 series.
# Create VLAN 500 and VLAN-interface 500 on Core-Switch A and assign IP address
192.168.50.1/24 to VLAN-interface 500. Configure the trunk port GigabitEthernet 1/1/1