<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>David Sudjiman &#187; helpme</title>
	<atom:link href="http://www.davidsudjiman.info/category/helpme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidsudjiman.info</link>
	<description>“Being different is hard, but not being different is harder.”</description>
	<lastBuildDate>Thu, 26 Jan 2012 21:29:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ipv6 Overlapping Errors?</title>
		<link>http://www.davidsudjiman.info/2008/05/09/ipv6-overlapping-errors/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ipv6-overlapping-errors</link>
		<comments>http://www.davidsudjiman.info/2008/05/09/ipv6-overlapping-errors/#comments</comments>
		<pubDate>Thu, 08 May 2008 22:24:56 +0000</pubDate>
		<dc:creator>David Sudjiman</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[helpme]]></category>

	<!-- AutoMeta Start -->
	<category>overlapping  r2 config if</category>
	<category></category>
	<category>ipv</category>
	<category>addr</category>
	<category>fec0</category>
	<category></category>
	<category>ipv</category>
	<category>addr</category>
	<category>fec0</category>
	<category>ipv</category>
	<category>addr</category>
	<category>fec0</category>
	<category>r2 config</category>
	<category>int</category>
	<category>lo0  r2 config if</category>
	<category>2</category>
	<category>1 112</category>
	<category></category>
	<category>fec0</category>
	<category>12</category>
	<category>3 112</category>
	<category>fec0</category>
	<category>configured</category>
	<category>loopback0</category>
	<category>222</category>
	<category>1 112  r2 config if</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.davidsudjiman.info/?p=238</guid>
		<description><![CDATA[R2(config)#int lo0 R2(config-if)#ipv addr fec0::2:1/112 % FEC0::2:1/112 can not be configured on Loopback0, overlapping R2(config-if)# ipv addr FEC0::12:3/112 % FEC0::12:3/112 can not be configured on Loopback0, overlapping R2(config-if)# ipv addr FEC0::222:1/112 R2(config-if)# ipv addr FEC0::2:1/112 R2(config-if)#do sh ver &#124; i &#8230; <a href="http://www.davidsudjiman.info/2008/05/09/ipv6-overlapping-errors/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>
R2(config)#int lo0
R2(config-if)#ipv addr fec0::2:1/112
% FEC0::2:1/112 can not be configured on Loopback0, overlapping
R2(config-if)# ipv addr FEC0::12:3/112
% FEC0::12:3/112 can not be configured on Loopback0, overlapping
R2(config-if)# ipv addr FEC0::222:1/112
R2(config-if)# ipv addr FEC0::2:1/112  

R2(config-if)#do sh ver | i IOS
Cisco IOS Software, 3600 Software (C3640-JS-M), Version 12.4(18), RELEASE SOFTWARE (fc1)
</pre>
<p>Why am I getting these <em>overlapping</em> errors?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidsudjiman.info/2008/05/09/ipv6-overlapping-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HELPME: Prefered Routing using Dialer Watch.</title>
		<link>http://www.davidsudjiman.info/2007/03/18/helpme-prefered-routing-using-dialer-watch/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=helpme-prefered-routing-using-dialer-watch</link>
		<comments>http://www.davidsudjiman.info/2007/03/18/helpme-prefered-routing-using-dialer-watch/#comments</comments>
		<pubDate>Sun, 18 Mar 2007 03:31:15 +0000</pubDate>
		<dc:creator>David Sudjiman</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[helpme]]></category>

	<!-- AutoMeta Start -->
	<category>interface</category>
	<category></category>
	<category>serial0 111</category>
	<category>input</category>
	<category>pkts</category>
	<category>82</category>
	<category>output</category>
	<category>pkts</category>
	<category>83</category>
	<category>route</category>
	<category>the</category>
	<category>routing</category>
	<category>table     checking</category>
	<category>current</category>
	<category>ip</category>
	<category>routing    r1 sh</category>
	<category>ip</category>
	<category>route  gateway</category>
	<category>attempting</category>
	<category>dial</category>
	<category>98050041</category>
	<category>finally</category>
	<category>bytes</category>
	<category>9471</category>
	<category>dropped</category>
	<category>pkts</category>
	<category>0</category>
	<category>attempting</category>
	<category>dial</category>
	<category>98050041  00</category>
	<category>implement</category>
	<category>dialer</category>
	<category>watch</category>
	<category>routing</category>
	<category>the</category>
	<category>dialer</category>
	<category>watch</category>
	<category>s0 222</category>
	<category>down       r1 debug</category>
	<category>dialer  dial</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.davidsudjiman.info/?p=156</guid>
		<description><![CDATA[Have you ever tried to implement dialer watch? Yes, I know this is not the best way to implement dial backup which most people will use floating route. However, for the sake of curiosity, I want to try to create &#8230; <a href="http://www.davidsudjiman.info/2007/03/18/helpme-prefered-routing-using-dialer-watch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried to implement dialer watch? Yes, I know this is not the best way to implement dial backup which most people will use floating route. However, for the sake of curiosity, I want to try to create a small scenario where two routers are connected using Frame Relay (FR) link and a dial backup whenever particular route is gone from the routing table.<br />
<span id="more-156"></span><br />
<a href="http://picasaweb.google.com/davidsudjiman/DavidSudjimanWebsiteImagesCollection/photo#5212374316145353442"><img src="http://lh3.ggpht.com/davidsudjiman/SFYS0v42ouI/AAAAAAAAAIs/fFHACckpZuo/s400/156-01.jpg" /></a></p>
<pre>
hostname R1
!
username r2 password 0 cisco
!
isdn switch-type basic-net3
!
interface Loopback0
 ip address 10.10.10.10 255.255.255.255
!
interface Serial0
 bandwidth 64
 no ip address
 encapsulation frame-relay
!
interface Serial0.111 point-to-point
 ip address 131.108.0.1 255.255.255.252
 frame-relay interface-dlci 111
!
interface BRI0
 ip address 131.108.0.5 255.255.255.252
 encapsulation ppp
 dialer idle-timeout 30
 dialer watch-disable 10
 dialer map ip 20.20.20.20 name R2 broadcast 98050041
 dialer watch-group 1
 dialer-group 1
 isdn switch-type basic-net3
 ppp authentication chap
!
router ospf 1
 log-adjacency-changes
 network 10.10.10.10 0.0.0.0 area 0
 network 131.108.0.0 0.0.0.3 area 0
 network 131.108.0.4 0.0.0.3 area 0
!
access-list 101 deny   ospf any any
access-list 101 permit ip any any
dialer watch-list 1 ip 20.20.20.20 255.255.255.255
dialer watch-list 1 delay route-check initial 600
dialer-list 1 protocol ip list 101
!
end
</pre>
<pre>
hostname R2
!
username R1 password 0 cisco
!
isdn switch-type basic-net3
!
interface Loopback0
 ip address 20.20.20.20 255.255.255.255
!
interface Serial0
 bandwidth 64
 no ip address
 encapsulation frame-relay
!
interface Serial0.222 point-to-point
 ip address 131.108.0.2 255.255.255.252
 frame-relay interface-dlci 222
!
interface BRI0
 ip address 131.108.0.6 255.255.255.252
 encapsulation ppp
 isdn switch-type basic-net3
 ppp authentication chap
!
router ospf 1
 log-adjacency-changes
 network 20.20.20.20 0.0.0.0 area 0
 network 131.108.0.0 0.0.0.3 area 0
 network 131.108.0.4 0.0.0.3 area 0
!
dialer-list 1 protocol ip permit
!
end
</pre>
<pre>
R1#sh ip route
Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
O       20.20.20.20 [110/1563] via 131.108.0.2, 00:08:13, Serial0.111
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/30 is subnetted, 2 subnets
C       131.108.0.4 is directly connected, BRI0
C       131.108.0.0 is directly connected, Serial0.111
</pre>
<p>You can see ip 20.20.20.20 is reachable from s0.111. It is where the FR link is.</p>
<pre>
R1#sh frame-relay pvc

PVC Statistics for interface Serial0 (Frame Relay DTE)

              Active     Inactive      Deleted       Static
  Local          1            0            0            0
  Switched       0            0            0            0
  Unused         0            1            0            0

DLCI = 111, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0.111

  input pkts 82            output pkts 83           in bytes 9415
  out bytes 9471           dropped pkts 0           in pkts dropped 0
  out pkts dropped 0                out bytes dropped 0
  in FECN pkts 0           in BECN pkts 0           out FECN pkts 0
  out BECN pkts 0          in DE pkts 0             out DE pkts 0
  out bcast pkts 83        out bcast bytes 9471
  pvc create time 00:10:44, last time pvc status changed 00:10:19
</pre>
<p>Looking at the network diagram above and configuration from each router. We can see that we are watching this particular ip 20.20.20.20/32. If this routing is gone, the dialer watch will initiate to dial using command <code> dialer map ip 20.20.20.20 name R2 broadcast 98050041</code>. Let&#8217;s see what happen when I shut R2&#8242;s s0.222 down.</p>
<pre>
R1#debug dialer
Dial on demand events debugging is on
R1#
00:17:22: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on Serial0.111 from FULL to DOWN, Neighbor Down: Dead timer expired
00:17:28: DDR: Dialer Watch: watch-group = 1
00:17:28: DDR:    network 20.20.20.20/255.255.255.255 DOWN,
00:17:28: DDR:    primary DOWN
00:17:28: DDR: Dialer Watch: Dial Reason: Primary of group 1 DOWN
00:17:28: DDR: Dialer Watch: watch-group = 1,
00:17:28: DDR:    dialing secondary by dialer map 20.20.20.20 on BR0
00:17:28: BR0 DDR: Attempting to dial 98050041
00:17:28: %LINK-3-UPDOWN: Interface BRI0:1, changed state to up
00:17:28: BR0:1 DDR: Dialer Watch: resetting call in progress
00:17:28: BR0:1 DDR: dialer protocol up
00:17:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to up
00:17:34: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on BRI0 from LOADING to FULL, Loading Done
00:17:34: %ISDN-6-CONNECT: Interface BRI0:1 is now connected to 98050041 R2
</pre>
<p>We can see that because of <code>00:17:28: DDR:    network 20.20.20.20/255.255.255.255 DOWN</code> then <code>00:17:28: BR0 DDR: Attempting to dial 98050041<br />
</code>. Finally, <code>00:17:34: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on BRI0 from LOADING to FULL, Loading Done</code>, the OSPF state back to FULL.</p>
<pre>
R1#sh ip route

Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
C       20.20.20.20 is directly connected, BRI0
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/30 is subnetted, 2 subnets
C       131.108.0.4 is directly connected, BRI0
C       131.108.0.0 is directly connected, Serial0.111
</pre>
<p>Checking the routing table reveals that 20.20.20.20/32 is now reachable from BRI0.</p>
<p>So far, we can initiate a dial using dialer watch. However, I haven&#8217;t been successful to get the BRI0 disconnected when I <code>no shut</code> s0.222 thus making the FR link back up. Let me show show you more of it.</p>
<pre>
R2(config-subif)#int s0.222
R2(config-subif)#no shut
</pre>
<pre>
00:25:34: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on Serial0.111 from LOADING to FULL, Loading Done
</pre>
<pre>
R1#sh ip route

Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
C       20.20.20.20 is directly connected, BRI0
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/30 is subnetted, 2 subnets
C       131.108.0.4 is directly connected, BRI0
C       131.108.0.0 is directly connected, Serial0.111
</pre>
<p>We can see that OSPF manage to get 20.20.20.20 from S0.111 back and not from BRI0. However, when I check on the routing table, it still prefers the directly connected router over OSPF, which is quite reasonable.</p>
<pre>
00:29:59: BR0:1 DDR: idle timeout
00:29:59: DDR: Dialer Watch: watch-group = 1
00:29:59: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:29:59: DDR:    primary DOWN
00:30:29: BR0:1 DDR: idle timeout
00:30:29: DDR: Dialer Watch: watch-group = 1
00:30:29: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:30:29: DDR:    primary DOWN
00:30:59: BR0:1 DDR: idle timeout
00:30:59: DDR: Dialer Watch: watch-group = 1
00:30:59: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:30:59: DDR:    primary DOWN
00:31:29: %ISDN-6-DISCONNECT: Interface BRI0:1  disconnected from 98050041 R2, call lasted 119 seconds
00:31:29: %LINK-3-UPDOWN: Interface BRI0:1, changed state to down
00:31:29: BR0:1 DDR: disconnecting call
00:31:29: BR0:1 DDR: Dialer Watch: resetting call in progress
00:31:29: DDR: Dialer Watch: watch-group = 1
00:31:29: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:31:29: DDR:    primary DOWN
00:31:29: DDR: Dialer Watch: Dial Reason: Secondary of group 1 DOWN
00:31:29: DDR: Dialer Watch: watch-group = 1,
00:31:29: DDR:    dialing secondary by dialer map 20.20.20.20 on BR0
00:31:29: BR0 DDR: Attempting to dial 98050041
00:31:29: DDR: Dialer Watch: watch-group = 1
00:31:29: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:31:29: DDR:    primary DOWN
00:31:29: DDR: Dialer Watch: Dial Reason: Primary of group 1 DOWN
00:31:29: DDR: Dialer Watch: watch-group = 1,
00:31:30: DDR: Dialer Watch: watch-group = 1
00:31:30: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:31:30: DDR:    primary DOWN
00:31:30: DDR: Dialer Watch: Dial Reason: Secondary of group 1 AVAILABLE
00:31:30: DDR: Dialer Watch: watch-group = 1,
00:31:30: DDR: Dialer Watch: watch-group = 1
00:31:30: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:31:30: DDR:    primary DOWN
00:31:30: DDR: Dialer Watch: Dial Reason: Secondary of group 1 AVAILABLE
00:31:30: DDR: Dialer Watch: watch-group = 1,
00:31:30: %LINK-3-UPDOWN: Interface BRI0:1, changed state to up
00:31:30: BR0:1 DDR: Dialer Watch: resetting call in progress
00:31:30: BR0:1 DDR: dialer protocol up
00:31:30: DDR: Dialer Watch: watch-group = 1
00:31:30: DDR:    network 20.20.20.20/255.255.255.255 UP,
00:31:30: DDR:    primary DOWN
00:31:30: DDR: Dialer Watch: Dial Reason: Primary of group 1 DOWN
00:31:30: DDR: Dialer Watch: watch-group = 1,
00:31:36: %ISDN-6-CONNECT: Interface BRI0:1 is now connected to 98050041 R2
</pre>
<p>Is there someway I can get this BRI0 down and route to 20.20.20.20 back through s0.111?</p>
<p>=========================================================</p>
<h3>SOLUTION 1</h3>
<p>A friend of mine told me to use Dialer Interface. This is the configuration change on R1</p>
<pre>
R1#sh run int bri0
!
interface BRI0
 no ip address
 encapsulation ppp
 dialer pool-member 1
 isdn switch-type basic-net3
 ppp authentication chap
end

R1#sh run int dialer 1
!
interface Dialer1
 ip address 131.108.0.5 255.255.255.252
 encapsulation ppp
 dialer pool 1
 dialer idle-timeout 30
 dialer watch-disable 10
 dialer string 98050041
 dialer watch-group 1
 dialer-group 1
 ppp authentication chap
end
</pre>
<p>This is the routing table before I shut the R2&#8242;s s0.222</p>
<pre>
R1#sh ip route
Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
O       20.20.20.20 [110/1563] via 131.108.0.2, 00:06:21, Serial0.111
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/30 is subnetted, 2 subnets
C       131.108.0.4 is directly connected, Dialer1
C       131.108.0.0 is directly connected, Serial0.111
</pre>
<p>And this is what happens when I shut the R2&#8242;s s0.222</p>
<pre>
00:26:56: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on Serial0.111 from FULL to DOWN, Neighbor Down: Dead timer expired
00:27:02: %LINK-3-UPDOWN: Interface BRI0:1, changed state to up
00:27:02: %DIALER-6-BIND: Interface BR0:1 bound to profile Di1
00:27:03: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to up
00:27:08: %ISDN-6-CONNECT: Interface BRI0:1 is now connected to 98050041 R2
00:27:11: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on Dialer1 from LOADING to FULL, Loading Done
R1#sh ip route
Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
O       20.20.20.20 [110/1786] via 131.108.0.6, 00:00:03, Dialer1
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/16 is variably subnetted, 3 subnets, 2 masks
C       131.108.0.6/32 is directly connected, Dialer1
C       131.108.0.4/30 is directly connected, Dialer1
C       131.108.0.0/30 is directly connected, Serial0.111
</pre>
<p>And this is what happens when I no-shut the R2&#8242;s interface.</p>
<pre>
00:28:25: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on Serial0.111 from LOADING to FULL, Loading Done
00:29:02: %ISDN-6-DISCONNECT: Interface BRI0:1  disconnected from 98050041 R2, call lasted 119 seconds
00:29:02: %LINK-3-UPDOWN: Interface BRI0:1, changed state to down
00:29:02: %DIALER-6-UNBIND: Interface BR0:1 unbound from profile Di1
00:29:03: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to down
00:29:34: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on Dialer1 from FULL to DOWN, Neighbor Down: Dead timer expired
R1#sh ip route
Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
O       20.20.20.20 [110/1563] via 131.108.0.2, 00:00:05, Serial0.111
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/30 is subnetted, 2 subnets
C       131.108.0.4 is directly connected, Dialer1
C       131.108.0.0 is directly connected, Serial0.111
</pre>
<p>Finally it works!</p>
<p>======================================================</p>
<h3>SOLUTION 2</h3>
<p>However, what if I change the BRI0 to only use <code>dialer string</code> and not <code>dialer map</code> and remove the <code>dialer interface</code>?</p>
<pre>
interface BRI0
 ip address 131.108.0.5 255.255.255.252
 encapsulation ppp
 dialer idle-timeout 30
 dialer watch-disable 10
 dialer string 98050041
 dialer watch-group 1
 dialer-group 1
 isdn switch-type basic-net3
 ppp authentication chap
end
</pre>
<p>Now, when I try to get the primary link back up, I am still seeing BRI0 route, but this time is has the same metric with s0.111.</p>
<pre>
R1#sh ip route
Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
O       20.20.20.20 [110/1563] via 131.108.0.6, 00:00:36, BRI0
                    [110/1563] via 131.108.0.2, 00:00:36, Serial0.111
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/16 is variably subnetted, 3 subnets, 2 masks
C       131.108.0.6/32 is directly connected, BRI0
C       131.108.0.4/30 is directly connected, BRI0
C       131.108.0.0/30 is directly connected, Serial0.111
</pre>
<p>The second solution is quite easy. You can just play with <b>Bandwidth, Delay, and Distance</b> parameter. To make it easy, let try the Bandwidth parameter.</p>
<p>R1&#8242;s s0.111 has bandwidth 64, and I make BRI0 has bandwidth 63.</p>
<pre>
R1(config)#int bri 0
R1(config-if)#bandwidth 63
R1(config-if)#^Z
R1#
R1#clear ip route *
R1#sh ip route
Gateway of last resort is not set

     20.0.0.0/32 is subnetted, 1 subnets
O       20.20.20.20 [110/1563] via 131.108.0.2, 00:00:02, Serial0.111
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback0
     131.108.0.0/16 is variably subnetted, 3 subnets, 2 masks
C       131.108.0.6/32 is directly connected, BRI0
C       131.108.0.4/30 is directly connected, BRI0
C       131.108.0.0/30 is directly connected, Serial0.111
R1#
00:14:02: %ISDN-6-DISCONNECT: Interface BRI0:1  disconnected from 98050041 R2, call lasted 100 seconds
00:14:02: %LINK-3-UPDOWN: Interface BRI0:1, changed state to down
00:14:03: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to down
00:14:32: %OSPF-5-ADJCHG: Process 1, Nbr 20.20.20.20 on BRI0 from FULL to DOWN, Neighbor Down: Dead timer expired
</pre>
<p>It finally works, for the second time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidsudjiman.info/2007/03/18/helpme-prefered-routing-using-dialer-watch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HELPME: BGP + Route Map + Next Hop.</title>
		<link>http://www.davidsudjiman.info/2007/01/23/helpme-bgp-route-map-next-hop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=helpme-bgp-route-map-next-hop</link>
		<comments>http://www.davidsudjiman.info/2007/01/23/helpme-bgp-route-map-next-hop/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 08:56:18 +0000</pubDate>
		<dc:creator>David Sudjiman</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[helpme]]></category>

	<!-- AutoMeta Start -->
	<category>fair queue</category>
	<category>clockrate</category>
	<category>56000</category>
	<category>interface</category>
	<category>serial1</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 5</category>
	<category>255 255 255 252</category>
	<category>clockrate</category>
	<category>56000     router</category>
	<category>bgp</category>
	<category>1</category>
	<category>bgp</category>
	<category>log neighbor changes</category>
	<category>network</category>
	<category>10 10 10 0</category>
	<category>mask</category>
	<category>255 255 255 0</category>
	<category>neighbor</category>
	<category>131 108 1 2</category>
	<category>remote as</category>
	<category>2</category>
	<category>neighbor</category>
	<category>131 108 1 6</category>
	<category>remote as</category>
	<category>2     ip</category>
	<category>local</category>
	<category>policy</category>
	<category>route map</category>
	<category>from 10 10 10 1 to 20 20 20 1     access list</category>
	<category>100</category>
	<category>permit</category>
	<category>icmp</category>
	<category>host</category>
	<category>10 10 10 1</category>
	<category>host</category>
	<category>20 20 20 1  route map</category>
	<category>from 10 10 10 1 to 20 20 20 1</category>
	<category>permit</category>
	<category>10</category>
	<category>match</category>
	<category>ip</category>
	<category>address</category>
	<category>100</category>
	<category>fair queue     interface</category>
	<category>serial1</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 6</category>
	<category>255 255 255 252     router</category>
	<category>bgp</category>
	<category>2</category>
	<category>bgp</category>
	<category>log neighbor changes</category>
	<category>network</category>
	<category>20 20 20 0</category>
	<category>mask</category>
	<category>255 255 255 0</category>
	<category>neighbor</category>
	<category>131 108 1 1</category>
	<category>remote as</category>
	<category>1</category>
	<category>neighbor</category>
	<category>131 108 1 5</category>
	<category>remote as</category>
	<category>1     ip</category>
	<category>local</category>
	<category>policy</category>
	<category>route map</category>
	<category>from 20 20 20 1 to 10 10 10 1     access list</category>
	<category>100</category>
	<category>permit</category>
	<category>icmp</category>
	<category>host</category>
	<category>20 20 20 1</category>
	<category>host</category>
	<category>10 10 10 1  route map</category>
	<category>from 20 20 20 1 to 10 10 10 1</category>
	<category>permit</category>
	<category>10</category>
	<category>match</category>
	<category>ip</category>
	<category>address</category>
	<category>100</category>
	<category>fair queue</category>
	<category>clockrate</category>
	<category>56000     interface</category>
	<category>serial1</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 5</category>
	<category>255 255 255 252</category>
	<category>clockrate</category>
	<category>56000     router</category>
	<category>bgp</category>
	<category>1</category>
	<category>bgp</category>
	<category>log neighbor changes</category>
	<category>network</category>
	<category>10 10 10 0</category>
	<category>mask</category>
	<category>255 255 255 0</category>
	<category>neighbor</category>
	<category>131 108 1 2</category>
	<category>remote as</category>
	<category>2</category>
	<category>neighbor</category>
	<category>131 108 1 6</category>
	<category>remote as</category>
	<category>2     access list</category>
	<category>100</category>
	<category>permit</category>
	<category>icmp</category>
	<category>host</category>
	<category>10 10 10 1</category>
	<category>host</category>
	<category>20 20 20 1  route map</category>
	<category>from 10 10 10 1 to 20 20 20 1</category>
	<category>permit</category>
	<category>10</category>
	<category>match</category>
	<category>ip</category>
	<category>address</category>
	<category>100</category>
	<category>fair queue</category>
	<category>interface</category>
	<category>serial1</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 6</category>
	<category>255 255 255 252     router</category>
	<category>bgp</category>
	<category>2</category>
	<category>bgp</category>
	<category>log neighbor changes</category>
	<category>network</category>
	<category>20 20 20 0</category>
	<category>mask</category>
	<category>255 255 255 0</category>
	<category>neighbor</category>
	<category>131 108 1 1</category>
	<category>remote as</category>
	<category>1</category>
	<category>neighbor</category>
	<category>131 108 1 5</category>
	<category>remote as</category>
	<category>1     access list</category>
	<category>100</category>
	<category>permit</category>
	<category>icmp</category>
	<category>host</category>
	<category>20 20 20 1</category>
	<category>host</category>
	<category>10 10 10 1  route map</category>
	<category>from 20 20 20 1 to 10 10 10 1</category>
	<category>permit</category>
	<category>10</category>
	<category>match</category>
	<category>ip</category>
	<category>address</category>
	<category>100</category>
	<category>routed</category>
	<category>r1e0 r1s1 r2s1 r2e0       r1 debug</category>
	<category>ip</category>
	<category>policy</category>
	<category>policy</category>
	<category>routing</category>
	<category>debugging</category>
	<category>ip</category>
	<category>local</category>
	<category>policy</category>
	<category>route map</category>
	<category>globally         r1 sh</category>
	<category>run     hostname</category>
	<category>r1     interface</category>
	<category>ethernet0</category>
	<category>ip</category>
	<category>address</category>
	<category>10 10 10 1</category>
	<category>255 255 255 0     interface</category>
	<category>serial0</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 1</category>
	<category>255 255 255 252</category>
	<category>routers     r1 sh</category>
	<category>run     hostname</category>
	<category>r1     interface</category>
	<category>ethernet0</category>
	<category>ip</category>
	<category>address</category>
	<category>10 10 10 1</category>
	<category>255 255 255 0</category>
	<category>ip</category>
	<category>policy</category>
	<category>route map</category>
	<category>from 10 10 10 1 to 20 20 20 1     interface</category>
	<category>serial0</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 1</category>
	<category>255 255 255 252</category>
	<category>ip</category>
	<category>next hop</category>
	<category>131 108 1 6     end        r2 sh</category>
	<category>run     hostname</category>
	<category>r2     interface</category>
	<category>ethernet0</category>
	<category>ip</category>
	<category>address</category>
	<category>20 20 20 1</category>
	<category>255 255 255 0</category>
	<category>ip</category>
	<category>policy</category>
	<category>route map</category>
	<category>from 20 20 20 1 to 10 10 10 1     interface</category>
	<category>serial0</category>
	<category>ip</category>
	<category>address</category>
	<category>131 108 1 2</category>
	<category>255 255 255 252</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.davidsudjiman.info/?p=149</guid>
		<description><![CDATA[I have two routers that connected back-to-back using two serials. I also have each e0 on each router (R1 and R2) configured. both routers are using BGP AS 1 and BGP as 2, respectively. What I&#8217;m trying to do next &#8230; <a href="http://www.davidsudjiman.info/2007/01/23/helpme-bgp-route-map-next-hop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have two routers that connected back-to-back using two serials. I also have each e0 on each router (R1 and R2) configured. both routers are using BGP AS 1 and BGP as 2, respectively. What I&#8217;m trying to do next is to make any ICMP packets from R1&#8242;s e0 going to path R1E0-R1S1-R2S1-R2E0. I&#8217;m using route-map and next hop to achieve this.</p>
<p>The problem is why can&#8217;t I use <code>ip policy route-map</code> on the interface yet I have to use <code>ip LOCAL policy route-map</code> to do this?<br />
<span id="more-149"></span><br />
<a href="http://picasaweb.google.com/davidsudjiman/DavidSudjimanWebsiteImagesCollection/photo#5212374338495259810"><img src="http://lh6.ggpht.com/davidsudjiman/SFYS2DJfJKI/AAAAAAAAAI4/qpJ4PoH9atU/s400/149-01.jpg" /></a><br />
These are the configurations for both routers.</p>
<pre>
R1#sh run
!
hostname R1
!
interface Ethernet0
 ip address 10.10.10.1 255.255.255.0
 ip policy route-map FROM-10.10.10.1-TO-20.20.20.1
!
interface Serial0
 ip address 131.108.1.1 255.255.255.252
 no fair-queue
 clockrate 56000
!
interface Serial1
 ip address 131.108.1.5 255.255.255.252
 clockrate 56000
!
router bgp 1
 bgp log-neighbor-changes
 network 10.10.10.0 mask 255.255.255.0
 neighbor 131.108.1.2 remote-as 2
 neighbor 131.108.1.6 remote-as 2
!
access-list 100 permit icmp host 10.10.10.1 host 20.20.20.1
route-map FROM-10.10.10.1-TO-20.20.20.1 permit 10
 match ip address 100
 set ip next-hop 131.108.1.6
!
end
</pre>
<pre>
R2#sh run
!
hostname R2
!
interface Ethernet0
 ip address 20.20.20.1 255.255.255.0
 ip policy route-map FROM-20.20.20.1-TO-10.10.10.1
!
interface Serial0
 ip address 131.108.1.2 255.255.255.252
 no fair-queue
!
interface Serial1
 ip address 131.108.1.6 255.255.255.252
!
router bgp 2
 bgp log-neighbor-changes
 network 20.20.20.0 mask 255.255.255.0
 neighbor 131.108.1.1 remote-as 1
 neighbor 131.108.1.5 remote-as 1
!
access-list 100 permit icmp host 20.20.20.1 host 10.10.10.1
route-map FROM-20.20.20.1-TO-10.10.10.1 permit 10
 match ip address 100
 set ip next-hop 131.108.1.4
!
end
</pre>
<p>Based on the above configuration I&#8217;m expecting whether I can have my icmp packets go through R1E0-R1S1-R2S1-R2E0.</p>
<pre>
R1#sh ip bgp
BGP table version is 3, local router ID is 10.10.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 10.10.10.0/24    0.0.0.0                  0         32768 i
*  20.20.20.0/24    131.108.1.6              0             0 2 i
*>                  131.108.1.2              0             0 2 i
</pre>
<pre>
R1#sh access-list 100
Extended IP access list 100
    permit icmp host 10.10.10.1 host 20.20.20.1
</pre>
<pre>
R1#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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     20.0.0.0/24 is subnetted, 1 subnets
B       20.20.20.0 [20/0] via 131.108.1.2, 00:06:12
     10.0.0.0/24 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, Ethernet0
     131.108.0.0/30 is subnetted, 2 subnets
C       131.108.1.4 is directly connected, Serial1
C       131.108.1.0 is directly connected, Serial0

R1#debug ip policy
Policy routing debugging is on

R1#ping
Protocol [ip]:
Target IP address: 20.20.20.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.10.10.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.1, timeout is 2 seconds:
Packet sent with a source address of 10.10.10.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/37/40 ms

R1#u all
All possible debugging has been turned off

R1#debug ip packet
IP packet debugging is on

R1#ping
Protocol [ip]:
Target IP address: 20.20.20.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.10.10.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.1, timeout is 2 seconds:
Packet sent with a source address of 10.10.10.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/52/52 ms

00:18:41: IP: tableid=0, s=10.10.10.1 (local), d=20.20.20.1 (Serial0), routed via RIB
00:18:41: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial0), len 100, sending
00:18:41: IP: tableid=0, s=20.20.20.1 (Serial0), d=10.10.10.1 (Ethernet0), routed via RIB
00:18:41: IP: s=20.20.20.1 (Serial0), d=10.10.10.1, len 100, rcvd 4
00:18:41: IP: tableid=0, s=10.10.10.1 (local), d=20.20.20.1 (Serial0), routed via RIB
00:18:41: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial0), len 100, sending
00:18:41: IP: tableid=0, s=20.20.20.1 (Serial0), d=10.10.10.1 (Ethernet0), routed via RIB
00:18:41: IP: s=20.20.20.1 (Serial0), d=10.10.10.1, len 100, rcvd 4
00:18:41: IP: tableid=0, s=10.10.10.1 (local), d=20.20.20.1 (Serial0), routed via RIB
00:18:41: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial0), len 100, sending
00:18:41: IP: tableid=0, s=20.20.20.1 (Serial0), d=10.10.10.1 (Ethernet0), routed via RIB
00:18:41: IP: s=20.20.20.1 (Serial0), d=10.10.10.1, len 100, rcvd 4
00:18:41: IP: tableid=0, s=10.10.10.1 (local), d=20.20.20.1 (Serial0), routed via RIB
00:18:41: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial0), len 100, sending
00:18:41: IP: tableid=0, s=20.20.20.1 (Serial0), d=10.10.10.1 (Ethernet0), routed via RIB
00:18:41: IP: s=20.20.20.1 (Serial0), d=10.10.10.1, len 100, rcvd 4
00:18:41: IP: tableid=0, s=10.10.10.1 (local), d=20.20.20.1 (Serial0), routed via RIB
00:18:41: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial0), len 100, sending
00:18:41: IP: tableid=0, s=20.20.20.1 (Serial0), d=10.10.10.1 (Ethernet0), routed via RIB
00:18:41: IP: s=20.20.20.1 (Serial0), d=10.10.10.1, len 100, rcvd 4

R1#u all
All possible debugging has been turned off

R1#traceroute 20.20.20.1

Type escape sequence to abort.
Tracing the route to 20.20.20.1

  1 131.108.1.2 16 msec 16 msec *
</pre>
<p>Is there something wrong with the configuration?</p>
<p>Here&#8217;s another clue. I remove the <code>ip policy route-map</code> from the <code>Ethernet0</code> and put <code>ip local policy route-map</code> globally.</p>
<pre>
R1#sh run
!
hostname R1
!
interface Ethernet0
 ip address 10.10.10.1 255.255.255.0
!
interface Serial0
 ip address 131.108.1.1 255.255.255.252
 no fair-queue
 clockrate 56000
!
interface Serial1
 ip address 131.108.1.5 255.255.255.252
 clockrate 56000
!
router bgp 1
 bgp log-neighbor-changes
 network 10.10.10.0 mask 255.255.255.0
 neighbor 131.108.1.2 remote-as 2
 neighbor 131.108.1.6 remote-as 2
!
<strong>ip local policy route-map FROM-10.10.10.1-TO-20.20.20.1</strong>
!
access-list 100 permit icmp host 10.10.10.1 host 20.20.20.1
route-map FROM-10.10.10.1-TO-20.20.20.1 permit 10
 match ip address 100
 set ip next-hop 131.108.1.6
!
end
</pre>
<pre>
R2#sh run
!
hostname R2
!
interface Ethernet0
 ip address 20.20.20.1 255.255.255.0
!
interface Serial0
 ip address 131.108.1.2 255.255.255.252
 no fair-queue
!
interface Serial1
 ip address 131.108.1.6 255.255.255.252
!
router bgp 2
 bgp log-neighbor-changes
 network 20.20.20.0 mask 255.255.255.0
 neighbor 131.108.1.1 remote-as 1
 neighbor 131.108.1.5 remote-as 1
!
<strong>ip local policy route-map FROM-20.20.20.1-TO-10.10.10.1</strong>
!
access-list 100 permit icmp host 20.20.20.1 host 10.10.10.1
route-map FROM-20.20.20.1-TO-10.10.10.1 permit 10
 match ip address 100
 set ip next-hop 131.108.1.4
!
end
</pre>
<p>Now the ICMP packet can be routed through R1E0-R1S1-R2S1-R2E0.</p>
<pre>
R1#debug ip policy
Policy routing debugging is on

R1#ping
Protocol [ip]:
Target IP address: 20.20.20.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.10.10.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.1, timeout is 2 seconds:
Packet sent with a source address of 10.10.10.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/52/52 ms

00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1, len 100, policy match
00:43:18: IP: route map FROM-10.10.10.1-TO-20.20.20.1, item 10, permit
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial1), len 100, policy routed
00:43:18: IP: local to Serial1 131.108.1.6
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1, len 100, policy match
00:43:18: IP: route map FROM-10.10.10.1-TO-20.20.20.1, item 10, permit
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial1), len 100, policy routed
00:43:18: IP: local to Serial1 131.108.1.6
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1, len 100, policy match
00:43:18: IP: route map FROM-10.10.10.1-TO-20.20.20.1, item 10, permit
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial1), len 100, policy routed
00:43:18: IP: local to Serial1 131.108.1.6
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1, len 100, policy match
00:43:18: IP: route map FROM-10.10.10.1-TO-20.20.20.1, item 10, permit
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial1), len 100, policy routed
00:43:18: IP: local to Serial1 131.108.1.6
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1, len 100, policy match
00:43:18: IP: route map FROM-10.10.10.1-TO-20.20.20.1, item 10, permit
00:43:18: IP: s=10.10.10.1 (local), d=20.20.20.1 (Serial1), len 100, policy routed
00:43:18: IP: local to Serial1 131.108.1.6

R1#u all
All possible debugging has been turned off

R1#debug ip packet
IP packet debugging is on

R1#ping
Protocol [ip]:
Target IP address: 20.20.20.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.10.10.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.1, timeout is 2 seconds:
Packet sent with a source address of 10.10.10.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/44/44 ms

00:43:49: IP: tableid=0, s=20.20.20.1 (Serial1), d=10.10.10.1 (Ethernet0), routed via RIB
00:43:49: IP: s=20.20.20.1 (Serial1), d=10.10.10.1, len 100, rcvd 4
00:43:49: IP: tableid=0, s=20.20.20.1 (Serial1), d=10.10.10.1 (Ethernet0), routed via RIB
00:43:49: IP: s=20.20.20.1 (Serial1), d=10.10.10.1, len 100, rcvd 4
00:43:49: IP: tableid=0, s=20.20.20.1 (Serial1), d=10.10.10.1 (Ethernet0), routed via RIB
00:43:49: IP: s=20.20.20.1 (Serial1), d=10.10.10.1, len 100, rcvd 4
00:43:49: IP: tableid=0, s=20.20.20.1 (Serial1), d=10.10.10.1 (Ethernet0), routed via RIB
00:43:49: IP: s=20.20.20.1 (Serial1), d=10.10.10.1, len 100, rcvd 4
00:43:50: IP: tableid=0, s=20.20.20.1 (Serial1), d=10.10.10.1 (Ethernet0), routed via RIB
00:43:50: IP: s=20.20.20.1 (Serial1), d=10.10.10.1, len 100, rcvd 4
00:43:52: IP: s=131.108.1.2 (Serial0), d=131.108.1.1, len 59, rcvd 0
00:43:52: IP: tableid=0, s=131.108.1.1 (local), d=131.108.1.2 (Serial0), routed via RIB
00:43:52: IP: s=131.108.1.2 (Serial0), d=131.108.1.1, len 40, rcvd 0
00:43:55: IP: tableid=0, s=131.108.1.5 (local), d=131.108.1.6 (Serial1), routed via RIB
00:43:55: IP: s=131.108.1.6 (Serial1), d=131.108.1.5, len 59, rcvd 0
00:43:55: IP: tableid=0, s=131.108.1.5 (local), d=131.108.1.6 (Serial1), routed via RIB
</pre>
<p>Why can&#8217;t I use <code>ip policy route-map</code> on the interface yet I have to use <code>ip LOCAL policy route-map</code> to do this?</p>
<p>Can somebody help me? All comments will be much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidsudjiman.info/2007/01/23/helpme-bgp-route-map-next-hop/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

