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

Page 140

Advertising
background image

129

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter VLAN view.

vlan vlan-id N/A

3.

Associate an IP subnet with
the VLAN.

ip-subnet-vlan [ ip-subnet-index ]
ip ip-address [ mask ]

The IP subnet or IP address to be
associated with a VLAN cannot be a

multicast subnet or a multicast address.

4.

Return to system view.

quit

N/A

5.

Enter interface view or port
group view.

Enter Ethernet interface view:

interface interface-type

interface-number

Enter Layer 2 aggregation

interface view:

interface bridge-aggregation
interface-number

Enter port group view:

port-group manual

port-group-name

Use one of the commands.

The configuration made in Ethernet

interface view applies only to the

port.

The configuration made in port

group view applies to all ports in

the port group.

The configuration made in Layer 2

aggregate interface view applies to

the aggregate interface and its
aggregation member ports. If the

system fails to apply the

configuration to the aggregate
interface, it stops applying the

configuration to aggregation

member ports. If the system fails to
apply the configuration to an

aggregation member port, it skips

the port and moves to the next

member port.

6.

Configure port link type as
hybrid.

port link-type hybrid

By default, all ports are access ports.

7.

Configure the hybrid ports
to permit the specified IP

subnet-based VLANs to

pass through.

port hybrid vlan vlan-list { tagged
| untagged }

By default, a hybrid port allows only
packets from VLAN 1 to pass through

untagged.

8.

Associate the hybrid ports
with the specified IP

subnet-based VLAN.

port hybrid ip-subnet-vlan vlan
vlan-id

By default, no IP subnet-based VLAN is
associated with a port.

Configuration example

Network requirements

As shown in

Figure 39

, the hosts in the office belong to different IP subnets 192.168.5.0/24 and

192.168.50.0/24.
Configure Device C to transmit packets over separate VLANs based on their source IP addresses.

Advertising