Operation Manual – IPv4 Routing
H3C S3610&S5510 Series Ethernet Switches
Chapter 2 RIP Configuration
2-21
[SwitchB-rip-100] import-route rip 200
[SwitchB-rip-100] quit
[SwitchB] rip 200
[SwitchB-rip-200] import-route rip 100
[SwitchB-rip-200] quit
# Display the routing table of Switch A.
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.1 Vlan100
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
2.1.1.0/24 Direct 0 0 2.1.1.1 Vlan101
2.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
3.1.1.0/24 RIP 100 4 1.1.1.2 Vlan100
4.1.1.0/24 RIP 100 4 1.1.1.2 Vlan100
5.1.1.0/24 RIP 100 4 1.1.1.2 Vlan100
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
4)
Configure an filtering policy to filter redistributed routes
# Define ACL 2000 and reference it to a filtering policy to filter routes redistributed from
RIP 200 on Switch B.
[SwitchB] acl number 2000
[SwitchB-acl-basic-2000] rule deny source 4.1.1.1 0.0.0.255
[SwitchB-acl-basic-2000] rule permit
[SwitchB-acl-basic-2000] quit
[SwitchB] rip 100
[SwitchB-rip-100] filter-policy 2000 export rip 200
# Display the routing table of Switch A.
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.1 Vlan100
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
2.1.1.0/24 Direct 0 0 2.1.1.1 Vlan101
2.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
3.1.1.0/24 RIP 100 4 1.1.1.2 Vlan100
5.1.1.0/24 RIP 100 4 1.1.1.2 Vlan100
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0