EasyManua.ls Logo

Huawei quidway s7700 - Page 156

Huawei quidway s7700
648 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
[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
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.
139

Table of Contents

Other manuals for Huawei quidway s7700

Related product manuals