沃尔夫ccie实验室|CCIE实验室考试指南(2)
【shitiku.jxxyjl.com--思科指导交流】
lab 02 -
policy routing
the following scenario refers to the diagram below.
scenario:
all routers are configured in a single ospf area.
router_c, based on the cost metric for ospf will send all packets with
a destination network address of 10.4.0.0 out the e0 interface.
problem:
have all packets destined for network 10.4.0.0 exit the serial 0
router_c.
router_c#sh ip route
codes: c - connected, s - static,
i - igrp,
r - rip, m - mobile, b - bgp,
d - eigrp,
ex - eigrp external, o - ospf,
ia - ospf inter area,
n1 - ospf nssa external type 1,
n2 - ospf nssa external type 2,
e1 - ospf external type 1,
e2 - ospf external type 2, e - egp,
i - is-is,
l1 - is-is level-1,
l2 - is-is level-2,
* - candidate default,
u - per-user static route,
o - odr
gateway of last resort is not set
10.0.0.0/16 is subnetted, 3 subnets
c 10.2.0.0 is directly connected,
serial0
c 10.3.0.0 is directly connected,
ethernet0
o 10.4.0.0 [110/74] via 10.3.0.1,
00:00:13, ethernet0
solution:
policy routing will allow you to configure a route map. the route map
will be used by the router in lieu of destination routing.
in this scenario the best route to the destination network 10.4.0.0 is
to go ethernet. we want to force the route to take the serial
connection.
step 1
configure a route map tag. i chose "takeserial".
step 2
point the route map to the tag. don’t let the 10 shake you it is just a
sequence number.
router_c(config)#route-map
takeserial permit ?
<0-65535>
sequence to insert to/delete
from existing route-map entry
step 3
identify which packet should be route mapped. in our example we will
match the ip address of access list 1.
step 4
tell the router where to send the matched packet. we will send the
packets to serial 0.
current configuration:
!
version 11.2
!
hostname router_c
!
!
!
interface ethernet0
ip address 10.3.0.3 255.255.0.0
!
interface ethernet1
ip address 10.1.0.3 255.255.0.0
ip policy route-map takeserial*step 1
!
interface serial0
ip address 10.2.0.1 255.255.0.0
clockrate 38400
!
interface serial1
no ip address
shutdown
!
router ospf 100
network 10.0.0.0 0.255.255.255 area 0
no ip classless
access-list 1 permit 10.1.0.5
route-map takeserial permit 10 *step 2
match ip address 1 *step 3
set interface serial0 *step 4
!
line con 0
line aux 0
line vty 0 4
login
!
end
now we will ping 10.4.0.2 from workstaton a:
router_c#debug ip policy
policy routing debugging is on
router_c#
ip: s=10.1.0.5 (ethernet1), d=10.4.0.2,
len 74, policy match
ip: route map takeserial, item 10,
permit
ip: s=10.1.0.5 (ethernet1),
d=10.4.0.2 (serial0),
len 74, policy routed
ip: ethernet1 to serial0 10.4.0.2
ip: s=10.1.0.5 (ethernet1), d=10.4.0.2,
len 74, policy match
ip: route map takeserial, item 10,
permit
ip: s=10.1.0.5 (ethernet1),
d=10.4.0.2 (serial0),
len 74, policy routed
ip: ethernet1 to serial0 10.4.0.2
ip: s=10.1.0.5 (ethernet1), d=10.4.0.2,
len 74, policy match
ip: route map takeserial, item 10,
permit
ip: s=10.1.0.5 (ethernet1),
d=10.4.0.2 (serial0),
len 74, policy routed
ip: ethernet1 to serial0 10.4.0.2
ip: s=10.1.0.5 (ethernet1), d=10.4.0.2,
len 74, policy match
ip: route map takeserial, item 10,
permit
ip: s=10.1.0.5 (ethernet1),
d=10.4.0.2 (serial0),
len 74, policy routed
ip: ethernet1 to serial0 10.4.0.2
本文来源:https://shitiku.jxxyjl.com/sikezhidaojiaoliu/50538.html
-
[ccie学什么]CCIE的学习方法和能力定位之经验谈详细阅读
今天凌晨一点,踢完球回到实验室,下午要讲mpls,虽然已经很熟悉,但还是想看看有没有什么新思路,所以又作了一下课程准备,两点的时候准备回去休息了,去np课室巡查了一下,发现movie-time还没结束,最后排有个学员正看得津津有味,他刚才跟我们一起踢得很累,本应该早早休息,准备明天的实...
-
沃尔夫ccie实验室_CCIE实验室考试指南(1)详细阅读
lab 01- trouble-shooting everything was fine before lunch: router_a router_a sh run building configuration current configuration:...
-
[cisco综合实验]Cisco综合辅导:Cisco认证解疑详细阅读
1 问:都说cisco 认证是很有价值的,价值在哪里? 答:网络应用已遍及世界的每个角落。为了保证网络的合理设计、实施和维护,需要大量的网络技术人员。怎样衡量这些技术人员的水平呢?为此各公司先后推出了认证计划。 作为世界上最大网络产品供应商----cisco公司,在1993年推出了号称全球最有价值...
-
【无线移动办公名词解释】思科无线移动办公室与安全解决方案详细阅读
摘要:思科的思科移动办公室计划旨在通过移动能力帮助机构提高生产率、工作效率和员工满意度。它包括无线和有线解决方案,两者都具有很高的安全性、可扩展性、灵活性和可管理性,而且可以与现有网络进行全面的互操作。本文将举例说明各个行业的企业如何利用ieee 802 11技术部署思科移动办公室,以...