Huawei S6700 Series Configuration Manual page 638

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
5.
6.
Issue 01 (2012-03-15)
Destinations : 13
Destination/Mask
Proto
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
192.168.1.0/24
Direct 0
192.168.1.2/32
Direct 0
192.168.2.0/24
Direct 0
192.168.2.1/32
Direct 0
192.168.3.0/24
Direct 0
192.168.3.1/32
Direct 0
172.1.16.0/24
O_ASE
172.1.17.0/24
O_ASE
172.1.18.0/24
O_ASE
172.1.19.0/24
O_ASE
172.1.20.0/24
O_ASE
Configure the policy for advertising routes.
# Set an IP prefix list named a2b on Switch-A.
[SwitchA] ip ip-prefix a2b index 10 permit 172.1.17.0 24
[SwitchA] ip ip-prefix a2b index 20 permit 172.1.18.0 24
[SwitchA] ip ip-prefix a2b index 30 permit 172.1.19.0 24
# Set a policy for advertising routes on Switch-A and use a2b to filter routes.
[SwitchA] ospf
[SwitchA-ospf-1] filter-policy ip-prefix a2b export static
# Check the routing table on Switch-B. You can view that Switch-B receives only three
routes defined in a2b.
[SwitchB] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 11
Destination/Mask
Proto
127.0.0.0/8
127.0.0.1/32
192.168.1.0/24
192.168.1.2/32
192.168.2.0/24
192.168.2.1/32
192.168.3.0/24
192.168.3.1/32
172.1.17.0/24
172.1.18.0/24
172.1.19.0/24
Configure the policy for receiving routes.
# Set an IP prefix list named in on Switch-C.
[SwitchC] ip ip-prefix in index 10 permit 172.1.18.0 24
# Set a policy for receiving routes on Switch-C and use in to filter routes.
[SwitchC] ospf
[SwitchC-ospf-1] filter-policy ip-prefix in import
# Check the routing table on Switch-C. You can find that Switch-C in the local core routing
table receives only one route defined in in.
[SwitchC] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 5
Destination/Mask
Proto
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 13
Pre
Cost
Flags NextHop
0
0
0
0
0
0
0
0
150
1
150
1
150
1
150
1
150
1
Routes : 11
Pre
Cost
Flags NextHop
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
O_ASE
150
1
O_ASE
150
1
O_ASE
150
1
Routes : 5
Pre
Cost
Flags NextHop
10 Routing Policy Configuration
Interface
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
D
192.168.1.2
Vlanif10
D
127.0.0.1
Vlanif10
D
192.168.2.1
Vlanif20
D
127.0.0.1
Vlanif20
D
192.168.3.1
Vlanif30
D
127.0.0.1
Vlanif30
D
192.168.1.1
Vlanif10
D
192.168.1.1
Vlanif10
D
192.168.1.1
Vlanif10
D
192.168.1.1
Vlanif10
D
192.168.1.1
Vlanif10
Interface
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
D
192.168.1.2
Vlanif10
D
127.0.0.1
Vlanif10
D
192.168.2.1
Vlanif20
D
127.0.0.1
Vlanif20
D
192.168.3.1
Vlanif30
D
127.0.0.1
Vlanif30
D
192.168.1.1
Vlanif10
D
192.168.1.1
Vlanif10
D
192.168.1.1
Vlanif10
Interface
619

Advertisement

Table of Contents
loading

Table of Contents