beautypg.com

H3C Technologies H3C S3600 Series Switches User Manual

Page 303

background image

1-50

[Sysname] vlan-vpn tunnel

# Add GigabitEthernet 1/0/1 to VLAN 10.

[Sysname] vlan 10

[Sysname-Vlan10] port GigabitEthernet 1/0/1

[Sysname-Vlan10] quit

# Enable the VLAN VPN function on GigabitEthernet 1/0/1.

[Sysname] interface GigabitEthernet 1/0/1

[Sysname-GigabitEthernet1/0/1] port access vlan 10

[Sysname-GigabitEthernet1/0/1] vlan-vpn enable

[Sysname-GigabitEthernet1/0/1] quit

# Configure GigabitEthernet 1/0/2 as a trunk port.

[Sysname] interface GigabitEthernet 1/0/2

[Sysname-GigabitEthernet1/0/2] port link-type trunk

# Add the trunk port to all VLANs.

[Sysname-GigabitEthernet1/0/2] port trunk permit vlan all

4) Configure Switch D

# Enable MSTP.

system-view

[Sysname] stp enable

# Enable the VLAN-VPN tunnel function.

[Sysname] vlan-vpn tunnel

# Add GigabitEthernet 1/0/2 to VLAN 10.

[Sysname] vlan 10

[Sysname-Vlan10] port GigabitEthernet 1/0/2

# Enable the VLAN VPN function on GigabitEthernet 1/0/2.

[Sysname] interface GigabitEthernet 1/0/2

[Sysname-GigabitEthernet1/0/2] port access vlan 10

[Sysname-GigabitEthernet1/0/2] vlan-vpn enable

[Sysname-GigabitEthernet1/0/2] quit

# Configure GigabitEthernet 1/0/1 as a trunk port.

[Sysname] interface GigabitEthernet 1/0/1

[Sysname-GigabitEthernet1/0/1] port link-type trunk

# Add the trunk port to all VLANs.

[Sysname-GigabitEthernet1/0/1] port trunk permit vlan all

This manual is related to the following products: