Huawei Quidway S7700 Configuration Manual - Ethernet page 150

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

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet
[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.
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3 VLAN Configuration
133

Advertisement

Table of Contents
loading

This manual is also suitable for:

Quidway s9300

Table of Contents