Table of Contents

Advertisement

Figure 57 Network diagram

Configuration procedure

IMPORTANT:
The vlan-type dot1q vid command is mandatory for devices that support it, because an Ethernet
subinterface can be activated and transmit packets only after it is associated with VLANs.
1.
Configure Host A, Host B, Host C, and Host D:
Configure Host A's IP address as 1.1.1.1/8, and gateway IP address as 1.0.0.1/8.
Configure Host B's IP address as 2.2.2.2/8, and gateway IP address as 2.0.0.1/8.
Configure Host C's IP address as 3.3.3.3/8, and gateway IP address as 3.0.0.1/8.
Configure Host D's IP address as 4.4.4.4/8, and gateway IP address as 4.0.0.1/8.
2.
Configure Layer 2 Switch A:
# Assign Ethernet 1/2 to VLAN 10.
<L2_SwitchA> system-view
[L2_SwitchA] vlan 10
[L2_SwitchA-vlan10] port ethernet 1/2
[L2_SwitchA-vlan10] quit
# Assign Ethernet 1/3 to VLAN 20.
[L2_SwitchA] vlan 20
[L2_SwitchA-vlan20] port ethernet 1/3
[L2_SwitchA-vlan20] quit
# Configure Ethernet 1/1 as a trunk port, and assign it to VLAN 10 and VLAN 20.
[L2_SwitchA] interface ethernet 1/1
[L2_SwitchA-Ethernet1/1] port link-type trunk
[L2_SwitchA-Ethernet1/1] port trunk permit vlan 10 20
3.
Configure Layer 2 Switch B in the same way Layer 2 Switch A is configured.
4.
Configure Router:
166

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hsr6600

Table of Contents