Huawei Quidway S7700 Configuration Manual - Ethernet page 156

Smart routing switch
Hide thumbs Also See for Quidway S7700:
Table of Contents

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] port link-type trunk
[SwitchB-GigabitEthernet1/0/1] port trunk allow-pass vlan 30
[SwitchB-GigabitEthernet1/0/1] quit
# Assign an IP address to the VLANIF interface.
[SwitchB] interface vlanif 30
[SwitchB-Vlanif30] ip address 30.30.30.2 24
[SwitchB-Vlanif30] quit
# Create and configure GE 1/0/2.1.
[SwitchB] interface gigabitethernet 1/0/2.1
[SwitchB-GigabitEthernet1/0/2.1] control-vid 100 dot1q-termination
[SwitchB-GigabitEthernet1/0/2.1] dot1q termination vid 10
[SwitchB-GigabitEthernet1/0/2.1] ip address 20.20.20.1 24
[SwitchB-GigabitEthernet1/0/2.1] arp broadcast enable
[SwitchB-GigabitEthernet1/0/2.1] quit
# Configure basic OSPF functions.
[SwitchB] router id 2.2.2.2
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 20.20.20.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 30.30.30.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
Step 3 Verify the configuration.
On the computer of the Layer 2 network connected to Switch A, set the default gateway address
to the IP address of GE 1/0/1.1, that is, 10.10.10.1/24.
On the computer of the Layer 2 network connected to Switch B, set the default gateway address
to the IP address of GE 1/0/2.1, that is, 20.20.20.1/24.
After the configurations, computers of the two Layer 2 networks are isolated at Layer 2 and
interwork at Layer 3.
----End
Configuration Files
Configuration file of Switch A
#
sysname SwitchA
#
router id 1.1.1.1
#
vlan batch 30
#
interface Vlanif30
ip address 30.30.30.1 255.255.255.0
#
interface GigabitEthernet1/0/1.1
control-vid 100 dot1q-termination
dot1q termination vid 10
ip address 10.10.10.1 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 30
#
ospf 1
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3 VLAN Configuration
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

Quidway s9300

Table of Contents