实验任务:配置策略路由
步骤1:完成物理连接及各台主机的IP地址配置,完成L3SW的VLAN配置、VLAN虚接口配置、G1/0/1和G1/0/2路由口的IP地址配置,完成R1、R2的接口IP地址配置,然后分别在L3SW、R1、R2上启动RIP路由协议,实现全网互通。在各台路由器上使用ip ttl-expires enable启动ICMP的TTL超时。
步骤2:按照以下内容完成L3SW上完成策略路由的配置。acl
[L3SW]acl basic 2000
[L3SW-acl-ipv4-basic-2000]rule permit source 192.168.10.0 0.0.0.255
[L3SW-acl-ipv4-basic-2000]exit
[L3SW]acl basic 2001
[L3SW-acl-ipv4-basic-2001]rule permit source 192.168.20.0 0.0.0.255
[L3SW-acl-ipv4-basic-2001]exit
[L3SW]policy-based-route test permit node 1
[L3SW-pbr-test-1]if-match acl 2000
[L3SW-pbr-test-1]apply next-hop 172.16.1.2
[L3SW-pbr-test-1]exit
[L3SW]policy-based-route test permit node 2
[L3SW-pbr-test-2]if-match acl 2001
[L3SW-pbr-test-2]apply next-hop 172.16.2.2
[L3SW-pbr-test-2]exit
[L3SW]interface Vlan 10
[L3SW-Vlan-interface10]ip policy-based-route test
[L3SW-Vlan-interface10]quit
[L3SW]interface vlan 20
[L3SW-Vlan-interface20]ip policy-based-route test