![Huawei S6700 Series Скачать руководство пользователя страница 74](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517074.webp)
The configurations of Switch B and Switch C are similar to the configuration of Switch A, and
are not mentioned here.
Step 2
Assign an IP address to each VLANIF interface.
[Switch A]
interface vlanif 10
[Switch A-Vlanif10]
ip address 192.168.1.1 24
[Switch A-Vlanif10]
quit
[Switch A]
interface vlanif 50
[Switch A-vlanif50]
ip address 192.168.0.1 24
[Switch A-vlanif50]
quit
The configurations of Switch B and Switch C are similar to the configuration of Switch A, and
are not mentioned here.
Step 3
Configure the basic RIP functions.
# Enable RIP process 100 on Switch A.
[Switch A]
rip 100
[Switch A-rip-100]
network 192.168.0.0
[Switch A-rip-100]
network 192.168.1.0
[Switch A-rip-100]
quit
# Enable RIP processes 100 and 200 on Switch B.
[Switch B]
rip 100
[Switch B-rip-100]
network 192.168.1.0
[Switch B-rip-100]
quit
[Switch B]
rip 200
[Switch B-rip-200]
network 192.168.2.0
[Switch B-rip-200]
quit
# Enable RIP process 200 on Switch C.
[Switch C]
rip 200
[Switch C-rip-200]
network 192.168.2.0
[Switch C-rip-200]
network 192.168.3.0
[Switch C-rip-200]
network 192.168.4.0
[Switch C-rip-200]
quit
# Check the routing table of Switch A.
[Switch A]
display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.0.0/24 Direct 0 0 D 192.168.0.1 Vlanif50
192.168.0.1/32 Direct 0 0 D 127.0.0.1 Vlanif50
192.168.1.0/24 Direct 0 0 D 192.168.1.1 Vlanif10
192.168.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif10
192.168.1.255/32 Direct 0 0 D 192.168.1.2 Vlanif10
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Step 4
Configure the RIP processes to import external routes.
# On Switch B, set the default metric of imported routes to 3 and configure the RIP processes
to import routes into each other's routing table.
[Switch B]
rip 100
[Switch B-rip-100]
default-cost 3
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
2 RIP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
55