1-8
Figure 1-1
Network diagram for route policy application to route redistribution
Configuration procedure
1) Configure Switch A.
# Configure IP addresses of the interfaces (omitted).
# Configure RIP basic functions.
<SwitchA> system-view
[SwitchA] rip
[SwitchA-rip-1] version 2
[SwitchA-rip-1] undo summary
[SwitchA-rip-1] network 192.168.1.0
[SwitchA-rip-1] quit
# Configure three static routes.
[SwitchA] ip route-static 20.0.0.0 255.0.0.0 172.17.1.2
[SwitchA] ip route-static 30.0.0.0 255.0.0.0 172.17.1.2
[SwitchA] ip route-static 40.0.0.0 255.0.0.0 172.17.1.2
# Configure an ACL.
[SwitchA] acl number 2000
[SwitchA-acl-basic-2000] rule deny source 30.0.0.0 0.255.255.255
[SwitchA-acl-basic-2000] rule permit source any
[SwitchA-acl-basic-2000] quit
# Redistribute static routes.
[SwitchA] rip
[SwitchA-rip-1] import-route static
# Apply ACL 2000 to filter the routing information to be advertised to Switch B.
[SwitchA-rip-1] filter-policy 2000 export vlan-interface 100
[SwitchA-rip-1] quit
2) Configure Switch B.
# Configure IP addresses of the interfaces (omitted).
# Configure RIP basic functions.
<SwitchB> system-view
[SwitchB] rip
[SwitchB-rip-1] version 2
[SwitchB-rip-1] undo summary
[SwitchB-rip-1] network 192.168.1.0
[SwitchB-rip-1] network 10.0.0.0
[SwitchB-rip-1] quit