![Huawei S6700 Series Скачать руководство пользователя страница 642](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517642.webp)
2.
Assign an IP address to each VLANIF interface.
The configuration details are not mentioned here.
3.
Configure IS-IS.
# Configure Switch-C.
[SwitchC]
isis
[SwitchC-isis-1]
is-level level-2
[SwitchC-isis-1]
network-entity 10.0000.0000.0001.00
[SwitchC-isis-1]
quit
[SwitchC]
interface vlanif 20
[SwitchC-Vlanif20]
isis enable
[SwitchC-Vlanif20]
quit
[SwitchC]
interface vlanif 30
[SwitchC-Vlanif30]
isis enable
[SwitchC-Vlanif30]
quit
[SwitchC]
interface vlanif 40
[SwitchC-Vlanif30]
isis enable
[SwitchC-Vlanif30]
quit
[SwitchC]
interface vlanif 50
[SwitchC-Vlanif30]
isis enable
[SwitchC-Vlanif30]
quit
# Configure Switch-B.
[SwitchB]
isis
[SwitchB-isis-1]
is-level level-2
[SwitchB-isis-1]
network-entity 10.0000.0000.0002.00
[SwitchB-isis-1]
quit
[SwitchB]
interface vlanif 20
[SwitchB-Vlanif20]
isis enable
[SwitchB-Vlanif20]
quit
4.
Configure OSPF and import routes.
# Configure Switch-A and enable OSPF.
[SwitchA]
ospf
[SwitchA-ospf-1]
area 0
[SwitchA-ospf-1-area-0.0.0.0]
network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0]
quit
[SwitchA-ospf-1]
quit
# Configure Switch-B, enable OSPF, and import IS-IS routes.
[SwitchB]
ospf
[SwitchB-ospf-1]
area 0
[SwitchB-ospf-1-area-0.0.0.0]
network 192.168.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0]
quit
[SwitchB-ospf-1]
import-route isis 1
[SwitchB-ospf-1]
quit
# Check the OSPF routing table of Switch-A. You can view the imported routes.
[SwitchA]
display ospf routing
OSPF Process 1 with Router ID 192.168.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
192.168.1.0/24 1 Stub 192.168.1.1 192.168.1.1 0.0.0.0
Routing for ASEs
Destination Cost Type Tag NextHop AdvRouter
192.168.2.0/24 1 Type2 1 192.168.1.2 192.168.1.2
172.17.1.0/24 1 Type2 1 192.168.1.2 192.168.1.2
172.17.2.0/24 1 Type2 1 192.168.1.2 192.168.1.2
172.17.3.0/24 1 Type2 1 192.168.1.2 192.168.1.2
Total Nets: 5
Intra Area: 1 Inter Area: 0 ASE: 4 NSSA: 0
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
623