Configuration procedure, Verification – H3C Technologies H3C S7500E Series Switches User Manual

Page 240

Advertising
background image

16-4

Configuration procedure

# Create VLAN 10, and configure its VLAN interface IP address as 10.0.0.1/24.

<Sysname> system-view

[Sysname] vlan 10

[Sysname-vlan10] interface vlan-interface 10

[Sysname-Vlan-interface10] ip address 10.0.0.1 255.255.255.0

# Enable local proxy ARP.

[Sysname-Vlan-interface10] local-proxy-arp enable

[Sysname-Vlan-interface10] quit

# Create VLAN 2, and assign GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2 to it.

[Sysname] vlan 2

[Sysname-vlan2] port gigabitethernet 2/0/1 gigabitethernet 2/0/2

[Sysname-vlan2] quit

# Create VLAN 3, and assign GigabitEthernet 2/0/3 and GigabitEthernet 2/0/4 to it.

[Sysname] vlan 3

[Sysname-vlan3] port gigabitethernet 2/0/3 gigabitethernet 2/0/4

[Sysname-vlan3] quit

# Create VLAN 5, and assign GigabitEthernet 2/0/5 and GigabitEthernet 2/0/6 to it.

[Sysname] vlan 5

[Sysname-vlan5] port gigabitethernet 2/0/5 gigabitethernet 2/0/6

[Sysname-vlan5] quit

# Configure VLAN 10 as the super VLAN, and configure VLAN 2, VLAN 3, and VLAN 5 as its
sub-VLANs.

[Sysname] vlan 10

[Sysname-vlan10] supervlan

[Sysname-vlan10] subvlan 2 3 5

[Sysname-vlan10] quit

[Sysname] quit

Verification

# Display information about VLAN 10, the super VLAN, to verify the above configuration.

<Sysname> display supervlan

SuperVLAN ID : 10

SubVLAN ID : 2 3 5

VLAN ID: 10

VLAN Type: static

It is a Super VLAN.

Route Interface: not configured

Description: VLAN 0010

Name: VLAN 0010

Tagged Ports: none

Untagged Ports: none

VLAN ID: 2

VLAN Type: static

It is a Sub VLAN.

Route Interface: not configured

Description: VLAN 0002

Advertising