beautypg.com

Configuration example, Network requirements, Configuration procedure – H3C Technologies H3C WX5500E Series Access Controllers User Manual

Page 124

background image

113

Step Command

Remarks

7.

Cancel the action of
manually shutting down the

VLAN interface.

undo shutdown

Optional.
By default, a VLAN interface is not

manually shut down. The VLAN interface
is up if one or more ports in the VLAN is

up, and goes down if all ports in the

VLAN go down.

Configuration example

Network requirements

As shown in

Figure 35

, PC A is assigned to VLAN 5. PC B is assigned to VLAN 10. The PCs belong to

different IP subnets and cannot communicate with each other.
Configure VLAN interfaces on Switch A and configure the PC A and PC B to enable Layer 3

communication between them.

Figure 35 Network diagram

Configuration procedure

1.

Configure Switch A:
# Create VLAN 5 and assign GigabitEthernet 1/0/1 to it.

system-view

[SwitchA] vlan 5

[SwitchA-vlan5] port GigabitEthernet 1/0/1

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

[SwitchA-vlan5] vlan 10

[SwitchA-vlan10] port GigabitEthernet 1/0/2

[SwitchA-vlan10] quit

# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.

[SwitchA] interface vlan-interface 5

[SwitchA-Vlan-interface5] ip address 192.168.0.10 24

[SwitchA-Vlan-interface5] quit

# Create VLAN-interface 10 and configure its IP address as 192.168.1.20/24.

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] ip address 192.168.1.20 24