H3C S5600 SERIES Operation Manual page 377

Hide thumbs Also See for S5600 SERIES:
Table of Contents

Advertisement

[SwitchC] route-policy in permit node 40
[SwitchC-route-policy] if-match interface Vlan-interface6
[SwitchC-route-policy] if-match ip-prefix 2
[SwitchC-route-policy] apply cost 5
[SwitchC-route-policy] quit
# Create node 50 with the matching mode being permit, to allow all routing information to pass.
[SwitchC] route-policy in permit node 50
[SwitchC-route-policy] quit
# Configure RIP and apply the routing policy in to the incoming routing information.
[SwitchC] rip
[SwitchC-rip] network 1.0.0.0
[SwitchC-rip] network 3.0.0.0
[SwitchC-rip] network 6.0.0.0
[SwitchC-rip] filter-policy route-policy in import
Configuration verification
1)
Display data forwarding paths when the main link of the OA server between Switch A and Switch C
works normally.
<SwitchC> display ip routing-table
Routing Table: public net
Destination/Mask
1.0.0.0/8
2.0.0.0/8
DIRECT
2.2.2.2/32
DIRECT
3.0.0.0/8
6.0.0.0/8
DIRECT
6.6.6.6/32
127.0.0.0/8
127.0.0.1/32
192.168.0.0/24
192.168.0.39/32
2)
Display data forwarding paths when the main link of the OA server between Switch A and Switch C
is down.
<SwitchC> display ip routing-table
Routing Table: public net
Destination/Mask
1.0.0.0/8
3.0.0.0/8
6.0.0.0/8
DIRECT
6.6.6.6/32
127.0.0.0/8
127.0.0.1/32
192.168.0.0/24
192.168.0.39/32
Precautions
1)
When you configure the apply cost command in a routing policy:
Protocol
Pre
Cost
RIP
100
5
0
0
0
0
RIP
100
5
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
Protocol
Pre
Cost
RIP
100
6
RIP
100
5
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
Nexthop
Interface
2.2.2.1
Vlan-interface2
2.2.2.2
Vlan-interface2
127.0.0.1
InLoopBack0
6.6.6.5
Vlan-interface6
6.6.6.6
Vlan-interface6
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
192.168.0.39
Vlan-interface1
127.0.0.1
InLoopBack0
Nexthop
Interface
6.6.6.5
Vlan-interface2
6.6.6.5
Vlan-interface6
6.6.6.6
Vlan-interface6
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
192.168.0.39
Vlan-interface1
127.0.0.1
InLoopBack0
6-12

Advertisement

Table of Contents
loading

Table of Contents