1 Chapter 8. Optimizing Routing Update Operation.

50
1 Chapter 8. Optimizing Routing Update Operation

Transcript of 1 Chapter 8. Optimizing Routing Update Operation.

Page 1: 1 Chapter 8. Optimizing Routing Update Operation.

1

Chapter 8.Optimizing Routing Update Operation

Page 2: 1 Chapter 8. Optimizing Routing Update Operation.

2

Table of Contents

• Redistribution Among Multiple Routing Protocols

• Configuring Redistribution• Controlling Routing Update Traffic• Verifying Redistribution Operation• Policy-Based Routing Using Route Maps• Verifying Policy-Based Routing• Summary

Page 3: 1 Chapter 8. Optimizing Routing Update Operation.

3

Redistribution Among Multiple Routing Protocols

• What Is Redistribution?• Redistribution Considerations

Page 4: 1 Chapter 8. Optimizing Routing Update Operation.

4

Redistribution among Multiple Routing Protocols

Migration Purpose 로 Multiple Routing Protocol 을 사용할 수 있다 . 라우팅 프로토콜을 교체하는 경우 , 통상 지역별로 점진적으로 Migration 하게 된다 .

특정 라우팅 프로토콜만 (RIP 등 ) 을 지원하는 Host 와의 Routing 을 위해 Multiple Routing Protocol 을 사용한다 .( 예 .RIP 를 사용하는 Unix Computer 등과의 라우팅을 지원하기 위해 사용될 수 있다 .)

특정 라우팅 프로토콜을 사용하며 , 독자적인 Filtering Policy 를 구현하는 조직의 라우터와의 라우팅을 위해서 Multiple Routing Protocol 을 사용한다 .

Cisco Router 가 아닌 라우터와의 라우팅을 위해 Multiple Routing Protocol 을 사용한다 .

Multiple Routing Protocol 을 사용하는 원인

Page 5: 1 Chapter 8. Optimizing Routing Update Operation.

5

IP Routing TableI 192.168.5.0I 172.16.1.0I 172.16.2.0I 172.16.3.0

IP Routing Table

D EX 172.16.0.0D 192.168.5.8D 192.168.5.16D 192.168.5.24

S1 Advertises Routes from EIGRP to IGRP

S0 Advertises Routes from IGRP to EIGRP

AS 200IGRP172.16.0.0

S0S1AS 300EIGRP192.168.5.0

ABC

Boundary Router

What Is Redistribution?

상이한 라우팅 프로토콜간에 라우팅 Information 이 교환될 수 있다 .

Page 6: 1 Chapter 8. Optimizing Routing Update Operation.

6

Redistribution Implementation Considerations

Routing Protocol 은 각각 상이한 Metric 을 사용한다 . Administrative Distance 를 설정하여 Routing Protocol 에 대한 신뢰도를 결정하고 Default Metric 설정에 의해 적정하게 Metric 값을 저정해 준다 .

Selecting the Best Route

Routing Loop 이 발생할 수 있다 .( 두개 이상의 Boundary Router 가 Redistribution 하는 경우 , 하나의 Boundary Router 가 Redistribution 한 Routing Information 이 다시 Redistribution 을 통해서 Source 쪽으로 유입되어 라우팅 루프가 발생할 수 있다 .)

라우팅 프로토콜 별로 상이한 Metric 값을 사용하고 Metric 값이 라우팅 프로토콜 상호간에 완벽하게 변환될 수 없으므로 Suboptimal Path 가 선택될 수 있다 . 적절한 Metric 값 조정이 필요하다 .

Convergence Time 이 서로 상이하여 Convergence 가 늦어질 수 있다 .

Page 7: 1 Chapter 8. Optimizing Routing Update Operation.

7

Connected interface 0Static route out an interface 0Static route to a next hop 1EIGRP summary route 5External BGP 20Internal EIGRP 90IGRP 100OSPF 110IS-IS 115RIP v1, v2 120EGP 140External EIGRP 170Internal BGP 200Unknown 255

Route Source Default Distance

Administrative Distance

Page 8: 1 Chapter 8. Optimizing Routing Update Operation.

8

Seed Metric

Default Metric 명령을 사용하여 Redistribute 되는 Route 에 대한 Seed Metric 을 정의한다 .

Default Metric 은 통상 Redistribution 하는 AS 에서 가장 큰 Native Metric 값을 갖는 Route 의 Metric 값보다 크게 설정하여 Routing Loop 을 방지한다 .

Redistribute 된 후의 Route 는 해당 라우팅프로토콜의 Metric 증가 방법에 따라 증가된다 .(OSPF E2 routes 는 예외 )

Page 9: 1 Chapter 8. Optimizing Routing Update Operation.

9

RtrA(config-router)#redistribute ? bgp Border Gateway Protocol (BGP) connected Connected egp Exterior Gateway Protocol (EGP) eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) igrp Interior Gateway Routing Protocol (IGRP) isis ISO IS-IS iso-igrp IGRP for OSI networks mobile Mobile routes odr On Demand stub Routes ospf Open Shortest Path First (OSPF) rip Routing Information Protocol (RIP) static Static routes

Redistribution Supports All Protocols

Page 10: 1 Chapter 8. Optimizing Routing Update Operation.

10

IPX

EIGRP

IPX

AppleTalk

IP

AppleTalk

IP

Redistribution and EIGRP

IPX RIP 의 EIGRP 와의 redistribution 은 default 로 Enable 되어 있다 .(NLSP 와 EIGRP 는 수동으로 Redistribution 해주어야 한다 .)IP RIP 와 EIGRP 는 수동으로 Redistribution 해주어야 한다AppleTalk RTMP 의 EIGRP 와의 redistribution 은 default 로 Enable 되어 있다 . (RTMP: Routing Protocol Maintenance)AS 번호가 같은 EIGRP 와 IGRP 의 Redistribution 은 자동으로 이루어 진다 . AS 번호가 틀린 IGRP 와 EIGRP, EIGRP 와 EIGRP, IGRP 와 IGRP 간 Redistribution 은 수동으로 설정해 주어야 한다 .

Page 11: 1 Chapter 8. Optimizing Routing Update Operation.

11

Configuring Redistribution

• Redistributing into OSPF• Redistributing inro EIGRP• Defining the Default Metric• Configuring Redistribution into Edge Protocol• The passive-interface Command• Static and Default Routes

Page 12: 1 Chapter 8. Optimizing Routing Update Operation.

12

Redistribution 에 해당하는 두 라우팅 프로토콜을 모두 올릴 Boundary Router 를 찾는다

Core 로 사용할 라우팅 프로토콜 (Core Protocol 또는 Backbone Protocol 이라 한다 .) 과 Edge 로 사용할 Routing Protocol 을 결정한다 . Core Protocol 로는 보통 OSPF 와 EIGRP 가 많이 사용된다 .)

통상 Backbone Routing Process 에서부터 Redistribution 을 설정한다 .

Configuring Redistribution

Page 13: 1 Chapter 8. Optimizing Routing Update Operation.

13

RtrA(config-router)#router ospf 1RtrA(config-router)#redistribute eigrp 100 ? metric Metric for redistributed routes metric-type OSPF/IS-IS exterior metric type for redistributed routes route-map Route map reference subnets Consider subnets for redistribution into OSPF tag Set tag for routes redistributed into OSPF <cr>

Configuring Redistribution into OSPF

Configuring Redistribution into EIGRP

RtrA(config-router)#router eigrp 100RtrA(config-router)#redistribute ospf 1 ? match Redistribution of OSPF routes metric Metric for redistributed routes route-map Route map reference <cr>

Page 14: 1 Chapter 8. Optimizing Routing Update Operation.

14

pxr2 pxr3

S0

S0S1

S1E0

E0

S0Shut

E0Shut

LoopbackLoopback LoopbackLoopback

192.168.10x.10x/24

172.26.x.17/28172.26.x.33/28172.26.x.49/28

192.168.x.17/28

192.168.x.18/28

192.168.x.34/28

192.168.x.49/28

192.168.x.50/28

Pxr1ASBR

OSPFArea 0 EIGRP AS 200

192.168.x.33/28

Redistribution example

Page 15: 1 Chapter 8. Optimizing Routing Update Operation.

15

Page 16: 1 Chapter 8. Optimizing Routing Update Operation.

16

Page 17: 1 Chapter 8. Optimizing Routing Update Operation.

17

Configuring default-metricRouter(config-router)#default-metric bandwidth delay reliability loading mtu

IGRP나 EIGRP로 Redistributing시에 사용된다 .

Router(config-router)# default-metric number OSPF, RIP, EGP, BGP 로 Redistributing시에 사용된다 .

default-metric 명령대신에 redistribute 의 명령의 metric 파라미터를 사용할 수도 있다 .

Router eigrp 200 redistribute ospf 200 metric 64 2000 255 1 1500

Page 18: 1 Chapter 8. Optimizing Routing Update Operation.

18

Edge Protocol

Core Protocol

Redistribute

Default or Static

Redistribute and Change Administrative Distance

Redistribute and Filter

Configuring Redistribution

Edge AS 에서는 Default Route, Static Route 를 사용하게 할 수 있다 .Edge AS 에 Route 를 Filtering 을 사용하여 Core AS 의 Route 를 Redistribute 할 수 있다 .Edge AS 에 Core AS 의 Route 를 Redistribute 하면서 AD 값을 변경한다 .

Page 19: 1 Chapter 8. Optimizing Routing Update Operation.

19

Using and Configuring passive-interface

특정 Interface 에서의 Routing Protocol Update 를 금지 한다 .

EIGRP 에서의 passive interface 설정은 라우터가 그 Interface 에 연결된 Neighbor 와 Adjacency 를 맺을 수 없게 한다 . (EIGRP 의 경우 ,Passive Interface 를 설정하면 Hello Packet 도 보내지 않는다 .)

OSPF 에서의 passive interface 설정은 라우터가 그 Interface 에 연결된 Neighbor 와 Adjacency 를 맺는 것을 막지 않는다 . ( OSPF 의 경우 , PassiveInterface 를 설정하면 LSU 및 DBD Packet 은 금지하되 Hello Packet 은 주고 받는다 .)

Router(config-router)#passive-interface type number

Page 20: 1 Chapter 8. Optimizing Routing Update Operation.

20

Static Route 를 Interface 에 준 경우 (serial 0 등 ) 는 Distance 가 0 이 되고 Next Hop Router 의 IP Address 를 준 경우는 Distance 가 1 이 된다 . Broadcast Network(Ethernet 등 LAN 구간 ) 에서는 Interface 에 주면 안된다 .

Default Route 가 여럿인 경우에는 Load Balancing 한다 .

ip default-network 명령은 인접라우터에 그 라우터를 Default Route 로 잡도록 설정하는 것이다 . 그 라우터에는 적용되지 않는다 . EIGRP 의 경우는 Default Route 를 설정한 후 Router Mode 에서 network 0.0.0.0 명령을 사용하여 전파시킬 수 있다 .(EIGRP의 경우 , ip default-network 명령은 적용되지 않는다 .)

ip route 0.0.0.0 0.0.0.0 next-hop-router(outbound-interface) 명령으로 생기는 Route 는 RIP 의 경우 “ gateway of last resort” 으로 다른 RIP Router 에 전파된다 .

OSPF 가 Default Route 를 OSPF Routing Domain 에 전파시키도록 하기위해서는 Default Route 를 설정한 후 , default-information originate (always) 명령을 사용한다 . Always 키워드는 Default Route 의 Interface 가 다운되는 경우에도 Defualt Route 를 전파시키라는 의미이다 .

default-gateway 는 평상시에 작동되지 않으며 , #no ip routing 명령을 주면 라우터가 일반 호스트처럼 되어 Default Gateway 로서 작동한다 .

Default Route, Default Network, Default Gateway

Page 21: 1 Chapter 8. Optimizing Routing Update Operation.

21

router rip passive-interface Serial1 network 10.0.0.0!ip route 172.16.0.0 255.255.0.0 Serial1

172.16.0.0

10.1.0.0

p2r2

p1r2

Static Route Example

p1r2#sh ip route<Output Omitted>Gateway of last resort is not set

10.0.0.0 255.255.255.0 is subnetted, 2 subnetsC 10.1.3.0 is directly connected, Serial1C 10.1.1.0 is directly connected, Serial0S 172.16.0.0 is directly connected, Serial1<Output Omitted>

Page 22: 1 Chapter 8. Optimizing Routing Update Operation.

22

P1R3-Boundary RouterP1R1-Internal

interface Serial0 ip address 10.1.2.1 255.255.255.0 bandwidth 64!interface Serial1 ip address 10.1.1.1 255.255.255.0 clockrate 56000!<Output Omitted>!router rip network 10.0.0.0!ip classless<Output Omitted>

<Output Omitted>!router ospf 200 redistribute rip metric 30 subnets network 172.6.31.5 0.0.0.0 area 0!router rip network 10.0.0.0!ip classlessip default-network 10.0.0.0!<Output Omitted>

RIP/IGRP Router 에서 직접 연결된 네트워크의 Unknown Subnet 으로 가는 Packet 을 Default Route 로 보내려면 반드시 사용되어야 하다 . Subnet 이 Redistribution 되기 위해서 subnet 키워드가 필요하다 .

Redistribution Example Using ip default-network

Page 23: 1 Chapter 8. Optimizing Routing Update Operation.

23

Modifying Administrative Distance

Router(config-router)#distance weight [address mask [access-list-number | name ]] [ ip ]

EIGRP 와 BGP 를 제외한 모든 라우팅 프로토콜에서 사용된다 .

Router(config-router)#distance eigrp internal-distance external-distance

EIGRP 에서 사용된다 .(Default 는 90,170 이다 .)

Page 24: 1 Chapter 8. Optimizing Routing Update Operation.

24

Verifying Redistribution Operation

Router# show ip route

Router# traceroute

Page 25: 1 Chapter 8. Optimizing Routing Update Operation.

25

Controlling Routing Update Traffic

• Using Route Filters• Modifying Administrative Distance• Redistribution Example Using the

distance Command

Page 26: 1 Chapter 8. Optimizing Routing Update Operation.

26

1.distribute-list ( 재분배와 무관하다 .)

router eigrp 200distribute-list 1 out serial 0

access-list 1 permit 10.1.0.0 0.0.255.255

2.route-map

router eigrp 200redistribute ospf 100 route-map test

route-map testmatch ip address 1

access-list 1 permit 10.1.0.0 0.0.255.255

Route Filtering

Page 27: 1 Chapter 8. Optimizing Routing Update Operation.

27

Process entry according to filter

configuration

End

YesYes

No

Process packet normally

End

Is there anentry for this

address?

No

Drop packet

Is there a filter for thisinterface?

Determineinterface

Routingupdate

Using Route Filters

Page 28: 1 Chapter 8. Optimizing Routing Update Operation.

28

S0 192.168.5.0

172.16.0.0

10.0.0.0

router eigrp 1 network 172.16.0.0 network 192.168.5.0 distribute-list 7 out s0!access-list 7 permit 172.16.0.0 0.0.255.255

router eigrp 1 network 172.16.0.0 network 192.168.5.0 distribute-list 7 out s0!access-list 7 permit 172.16.0.0 0.0.255.255

A

B

Distribute-List Example

Page 29: 1 Chapter 8. Optimizing Routing Update Operation.

29

For Outbound Updates:

For Inbound Updates:

Distribute-List

Router(config-router)#distribute-list {access-list-number | name } out [interface-name | routing-process | autonomous-system number]

Router(config-router)#distribute-list {access-list-number | name } in [type number]

(outbound), Received (inbound) Routing Update Access list 는 Transmitted 에 적용될 수 있다 .

Page 30: 1 Chapter 8. Optimizing Routing Update Operation.

30

Policy-Based Routing Using Route Maps

• Policy-Based Routing• Configuring Policy-Based Routing• Policy-Based Routing Example

Page 31: 1 Chapter 8. Optimizing Routing Update Operation.

31

Route Maps

Route Map 은 복합적인 Access List 라 할 수 있으며 , Packet 및 Route 를 Test 하여 일정한 Action 을 줄 수 있다 .

조건 (Match) 에 대한 Action(set) 형식의 구문으로 되어 있다 .Route Map Statement 는 Number 가 부여되며 Statement 단위로 편집될 수 있다 .(Route Map 에서는 statement 를 추가하거나 delete 시킬 수 있다 .)

Access-list Number 는 Route-map 의 Name 에 해당한다 .Access list 의 Line 들은 Route Map 에서의 Statement 에 해당한다 .Access List 에서의 Addresses 와 Mask 는 Route Map 에서의 Match Statements 에 해당한다 .

Access-List 와의 가장 큰 차이점은 Route Map 은 set 명령을 사용하여 조건 (Match) 에 대한 Action 을 줄 수 있다는 것이다 .

Page 32: 1 Chapter 8. Optimizing Routing Update Operation.

32

Route Map Configuration

Router(config)#route-map map-tag [permit | deny] [sequence-number]

Router(config-route-map)# match {conditions}

Router(config-route-map)# set {actions}

Policy Routing에 대한 Condition을 정의한다 .

Match Condition을 정의한다 .

Match의 경우 취해질 Action을 정의한다 .

•Permit/Deny 의 Default 는 Permit 이고 Sequence Number 의 Default 값은 10 이며 , Statement 추가시 자동으로 증가하지 않는다 .

Page 33: 1 Chapter 8. Optimizing Routing Update Operation.

33

If {x or y or z) and a match} then {set b and c}Else If q match then set r Else

Set Nothing

route-map demo permit 10 match x y z match a set b set croute-map demo permit 20 match q set rroute-map demo permit 30

Route Map : Match and Set

첫번째 Statement 에 일치하면 나머지 Statement 는 체크되지 않는다 .Access-List 와 마찬가지로 Route Map 의 마지막에는 Implicit Deny All 이 적용되므로 이를 방지하기 위해서는 match 및 set 이 없는 Statement 가 필요하다 .

Page 34: 1 Chapter 8. Optimizing Routing Update Operation.

34

!Router Arouter ripnetwork 3.0.0.0network 2.0.0.0network 150.10.0.0passive-interface serial 0redistribute bgp 100 route-map SETMETRIC!router bgp 100neighbor 2.2.2.3 remote-as 300network 150.10.0.0!route-map SETMETRIC permit 10match ip-address 1set metric 2!route-map SETMETRIC permit 20set metric 5!access-list 1 permit 170.10.0.0 0.0.255.255

Routers A 와 B 는 상호간에 RIP 를 ,Routers A 와 C 는 상호간에 BGP 를 운영한다 . Router A 가 BGP 로 알게 된 경로 중에 172.10.0.0 의 경로에는 Metric 을 2 로 , 그외의 경로에 대해서는 Metric 값을 5 로 하여 Redistribute 하게 한다 .

Routemap 을 사용한 Routing Example

Page 35: 1 Chapter 8. Optimizing Routing Update Operation.

35

Policy-Based Routing

Policy-Based Routing Benefits

Packet 이 다양한 Path 를 통해 선택적으로 Forward 되도록 정책을 설정할 수 있다 . Traffic 별로 상이한 TOS 를 부여할 수 있다 . Since Cisco IOS Release 11.0 이상에서 가능하다 .

Source Base 로 경유 Provider 를 선택하게 할 수 있다 . : 사용자별로 다양한 경로를 부여할 수 있다 . Quality of service (QoS) : IP Packet Header 의 Prededence 와 TOS를 설정할 수 있다 . queuing 과 함께 사용될 수 있다 . Cost Savings : 필요한 경우에만 고대역의 High-Cost Link 를 사용하게 할 수 있다 . Load Sharing : Traffic 의 특성에 따라 Multiple Path 를 사용하게 할 수 있다 .

(config)# interface serial 0(config-if)# ip policy route-map texas(config)# route-map texas(config)# match length 68 128(config)# set ip precedence 5

Page 36: 1 Chapter 8. Optimizing Routing Update Operation.

36

Policies

Incoming Packet 에 대해서 적용된다 . Policy 가 적용된 Interface에 들어오는 Packet 에 적용된다 . Route Map 을 사용하여 Implementation 된다 .Matching 되는 Route 는 set 명령으로 정의된 정책이 수행된다 .Policy 는 Source System 의 Identity(IP Address), 사용 Application, 사용 Protocol, Packet Size 에 근거하여 정의된다 . Match Criteria 에 부합되고 Route Map 이 Permit 으로 설정되면 정의된 set Action 에 따라 Routing 된다 . Match Criteria 에 부합되고 Route Map 이 Deny 로 설정되면 Normal Routing (Destination Based Routing) 한다 . List 상의 모든 Sequence 가 Check 되었으나 match 되는 사항이 없으면 Normal Routing(Destination Based Routing) 한다 .

Page 37: 1 Chapter 8. Optimizing Routing Update Operation.

37

Policy Routing match Commands

Router(config-route-map)#

match ip address {access-list-number | name} [...access-list-number | name]

Matches IP addresses for policy routing

Router(config-route-map)# match length min maxMatches Layer 3 length of packet for policy routing

Standard Access-List 및 Extended Access-List 를 사용하여 Match IP Address 를 설정한다 .

Packet 의 Layer 3 Length 가 Min 값에서 max 값까지에 해당하는 Packet을 정의한다 . Application 별로 사용하는 Packet 사이즈가 일정하므로 의미있는 조건설정을 할 수 있다 .

Page 38: 1 Chapter 8. Optimizing Routing Update Operation.

38

Policy Routing set Commands

Router(config-route-map)#

set ip next-hop ip-address [...ip-address]

Output Packet 에 대한 next hop 을 정의한다

Router(config-route-map)# set interface type number [...type number]

Output Packet 에 대한 Interface 정의한다

Page 39: 1 Chapter 8. Optimizing Routing Update Operation.

39

Policy Routing set Commands

Router(config-route-map)#

set ip default next-hop ip-address [...ip-address]

Routing Table 에 Destination 에 대한 명시적인 Route 를 갖지 않는 Output Packet 에 대한 Default Next Hop 을 정의한다 .

Router(config-route-map)#

set default interface type number [...type number]

Destination 에 대한 명시적인 Route 를 갖지 않는 Output Packet 에 대한 Default Output Interface 를 정의한다 .

Page 40: 1 Chapter 8. Optimizing Routing Update Operation.

40

Router(config-route-map)#set ip tos [number | name]

Router(config-route-map)#set ip precedence [number | name]

Max-Reliability : 2Max-Throughput : 4Min-Delay : 8Min-monetary-cost : 1Normal :0

Critical : 5, flash:3, flash-override:4, immediate:2, Internet:6,nework:7,Priority : 1, routine:0

IP Header 의 TOS Field 는 COS(5bit) 와 Precedence(3bit) 의 8bit 로 구성된다 . set ip tos 는 COS 를 , set ip precedence 는 Precedence 값을 설정한다 .

Page 41: 1 Chapter 8. Optimizing Routing Update Operation.

41

Configuring Policy-Based Routing

Router(config-if)#ip policy route-map map-tag

Policy Routing 을 사용할 Interface 에 Route Map 을 정의한다 .

Interface 에 Fast Switching Policy 를 Enable 시킨다 .

Router(config-if)#

ip route-cache policy

Cisco IOS 11.2F 이상 버전에서 Interface 의 Switching Mode 를 Fast-Switching 으로 하는 정책을 설정할 수 있다 . Interface 의 Switching Mode 가 대부분 Fast Switching 이므로 특별히 설정하지는 않는다 .

Page 42: 1 Chapter 8. Optimizing Routing Update Operation.

42

Load Balancing

• Packet-by-Packet 기반의 round robin– Process Switching– 해당 Interface 에 “ no ip route-cache”

• Session-by-Seesion 기반의 round robin– IP Fast Switching– 해당 Interface 에 “ ip route-cache” enable

• Monitoring– Debug ip packet– Ping– Show ip cache– Show ip Interface Serial 0

Page 43: 1 Chapter 8. Optimizing Routing Update Operation.

43

Policy-Based Routing Example

RouterA(config)# interface Serial2RouterA(config-if)# ip address 172.16.1.2 255.255.255.0RouterA(config-if)# ip policy route-map testRouterA(config)#route-map test permit 10RouterA(config-route-map)#match ip address 1RouterA(config-route-map)#set ip next-hop 172.17.1.2RouterA(config-route-map)#exitRouterA(config)#access-list 1 permit 192.168.2.1 0.0.0.0

S3:10.1.1.1

C

A

B

192.168.2.0

S1:172.17.1.1S0:10.1.1.100

S1:172.17.1.2

S2:172.16.1.2

S0:172.16.1.1

192.168.1.0

Router A 는 192.168.2.1 로부터의 Packet 을 Router C’s interface S1(172.17.1.2) 으로 보내는 Policy 를 갖는다 .

Page 44: 1 Chapter 8. Optimizing Routing Update Operation.

44

Verifying Policy-Based Routing

Router#show ip policy

Interface 에 설정된 route map 을 Display 한다 .

Router#

show route-map [map-name]

설정된 route map 을 Display 한다 .

Page 45: 1 Chapter 8. Optimizing Routing Update Operation.

45

Page 46: 1 Chapter 8. Optimizing Routing Update Operation.

46

Verifying Policy-Based Routing

RouterA#show ip policyInterface Route mapSerial2 test

RouterA#show route-maproute-map test, permit, sequence 10 Match clauses: ip address (access-lists): 1 Set clauses: ip next-hop 172.17.1.2 Policy routing matches: 3 packets, 168 bytes

Page 47: 1 Chapter 8. Optimizing Routing Update Operation.

47

Verifying Policy-Based Routing

Router#debug ip policy

Router# traceroute

Router# ping

IP policy routing event 를 Debugging 한다 .

Extended traceroute

Extended Ping

Page 48: 1 Chapter 8. Optimizing Routing Update Operation.

48

Page 49: 1 Chapter 8. Optimizing Routing Update Operation.

49

Page 50: 1 Chapter 8. Optimizing Routing Update Operation.

50

RouterA#debug ip policyPolicy routing debugging is on

RouterA#show logging...11:50:51: IP: s=172.16.1.1 (Serial2), d=192.168.1.1 (Serial3), len 100, policy rejected -- normal forwarding...11:51:25: IP: s=192.168.2.1 (Serial2), d=192.168.1.1, len 100, policy match11:51:25: IP: route map test, item 10, permit11:51:25: IP: s=192.168.2.1 (Serial2), d=192.168.1.1 (Serial1), len 100, policyrouted11:51:25: IP: Serial2 to Serial1 172.17.1.2

Verifying Policy-Based Routing