EasyManua.ls Logo

Huawei quidway s7700 - Page 150

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...
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] port trunk allow-pass vlan 10
[SwitchA-GigabitEthernet1/0/1] quit
[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 IP addresses to VLANIF interfaces.
[SwitchA] interface vlanif 10
[SwitchA-Vlanif10] ip address 10.10.10.1 24
[SwitchA-Vlanif10] quit
[SwitchA] interface vlanif 30
[SwitchA-Vlanif30] ip address 30.30.30.1 24
[SwitchA-Vlanif30] 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 VLANs.
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] vlan batch 10 30
# Add interfaces to VLANs.
[SwitchB] interface gigabitethernet 1/0/2
[SwitchB-GigabitEthernet1/0/2] port link-type trunk
[SwitchB-GigabitEthernet1/0/2] port trunk allow-pass vlan 10
[SwitchB-GigabitEthernet1/0/2] quit
[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 IP addresses to VLANIF interfaces.
[SwitchB] interface vlanif 10
[SwitchB-Vlanif10] ip address 20.20.20.1 24
[SwitchB-Vlanif10] quit
[SwitchB] interface vlanif 30
[SwitchB-Vlanif30] ip address 30.30.30.2 24
[SwitchB-Vlanif30] 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 on the Layer 2 network connected to Switch A, set the default gateway address
to the IP address of VLANIF 10, that is, 10.10.10.1/24.
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.
133

Table of Contents

Other manuals for Huawei quidway s7700

Related product manuals