is it possibel to give another next hop in for advertised bgp

From: Mustafa Yadav <mustafa.yadav_at_gmail.com>
Date: Sun, 2 May 2010 13:48:53 +0300

hi all,

I want to know via a route-map changing next-hop works or not.As you see
below for 136.1.129.0 I want to send next hop as 136.1.245.2 to R5.In R5
I am getting below error.In the error it says denied to the not connected
next hop but as you see in the routing table actually it is directly
connected.Can someone commnt on this?

Rack1R1#sh route-map prepend
route-map prepend, permit, sequence 10
  Match clauses:
    ip address prefix-lists: 1
  Set clauses:
    as-path prepend 100 100 100 100
  Policy routing matches: 0 packets, 0 bytes
*route-map prepend, permit, sequence 15
  Match clauses:
    ip address prefix-lists: 2
  Set clauses:
    ip next-hop 136.1.245.2
* Policy routing matches: 0 packets, 0 bytes
route-map prepend, permit, sequence 20
  Match clauses:
  Set clauses:
  Policy routing matches: 0 packets, 0 bytes

*ip prefix-list 2: 1 entries
   seq 15 permit 136.1.29.0/24*
Rack1R1#

*R5 ERROR*
**
**Mar 1 04:15:33.134: BGP(0): 136.1.15.1 rcv UPDATE w/ attr: nexthop
136.1.245.2, origin i, originator 0.0.0.0, path 100 300, community ,
extended community
*Mar 1 04:15:33.142: BGP(0): 136.1.15.1 rcv UPDATE about 136.1.29.0/24 --
DENIED due to: non-connected NEXTHOP;*
**
Rack1R5# SH IP route
Codes: C - connected, S - static, 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
       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
     136.1.0.0/16 is variably subnetted, 12 subnets, 2 masks
O 136.1.245.4/32 [110/64] via 136.1.245.4, 02:40:54, Serial0/0.245
*C 136.1.245.0/24 is directly connected, Serial0/0.245
O 136.1.245.2/32 [110/64] via 136.1.245.2, 02:40:54, Serial0/0.245
*C 136.1.15.0/24 is directly connected, Serial0/0.15
O 136.1.15.1/32 [110/64] via 136.1.15.1, 02:40:54, Serial0/0.15
B 136.1.3.0/24 [20/0] via 136.1.245.2, 00:20:45
O IA 136.1.4.0/24 [110/65] via 136.1.245.4, 02:40:54, Serial0/0.245
B 136.1.29.0/24 [20/0] via 136.1.245.2, 00:20:45
C 136.1.45.4/32 is directly connected, Serial0/1
C 136.1.45.0/24 is directly connected, Serial0/1
O IA 136.1.44.0/24 [110/65] via 136.1.245.4, 02:40:54, Serial0/0.245
C 136.1.57.0/24 is directly connected, FastEthernet0/1
O E2 212.18.1.0/24 [110/20] via 136.1.15.1, 02:40:55, Serial0/0.15
 --More--

Blogs and organic groups at http://www.ccie.net
Received on Sun May 02 2010 - 13:48:53 ART

This archive was generated by hypermail 2.2.0 : Tue Jun 01 2010 - 07:09:52 ART