Data Preparation
To complete the configuration, you need the following data:
l VLAN 10 allowed by GE 1/0/1.1 of Switch A and IP address being 10.10.10.1/24
l VLAN 10 allowed by GE 1/0/2.1 of Switch B and IP address being 20.20.20.1/24
l VLAN 30 allowed by GE 1/0/2 of Switch A and IP address of VLANIF 30 being
30.30.30.1/24
l VLAN 30 allowed by GE 1/0/1 of Switch B and IP address of VLANIF 30 being
30.30.30.2/24
l IP address of the computer on a Layer 2 network connected to Switch A being 10.10.10.1/24
l IP address of the computer on a Layer 2 network connected to Switch B being 20.20.20.1/24
Procedure
Step 1 Configure Switch A.
# Create a VLAN.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] vlan batch 30
# Add an interface to the VLAN.
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk allow-pass vlan 30
[SwitchA-GigabitEthernet1/0/2] quit
# Assign an IP address to the VLANIF interface.
[SwitchA] interface vlanif 30
[SwitchA-Vlanif30] ip address 30.30.30.1 24
[SwitchA-Vlanif30] quit
# Create and configure GE 1/0/1.1.
[SwitchA] interface gigabitethernet 1/0/1.1
[SwitchA-GigabitEthernet1/0/1.1] control-vid 100 dot1q-termination
[SwitchA-GigabitEthernet1/0/1.1] dot1q termination vid 10
[SwitchA-GigabitEthernet1/0/1.1] ip address 10.10.10.1 24
[SwitchA-GigabitEthernet1/0/1.1] arp broadcast enable
[SwitchA-GigabitEthernet1/0/1.1] quit
# Configure basic OSPF functions.
[SwitchA] router id 1.1.1.1
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 10.10.10.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] network 30.30.30.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
Step 2 Configure Switch B.
# Create a VLAN.
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] vlan batch 30
# Add an interface to the VLAN.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 3 VLAN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
138