cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
338
Views
0
Helpful
1
Replies

traceroute

grunky
Level 1
Level 1

I have a 7206vxr router connected w/ two BGP peers.

I'd like to do a traceroute BUT put a condition on it. Say -

traceroute <route_ip> <exit via bgp peer x>

If this is possible w/ changing any BGP parameters (meds or ASN path lengths) or implementing any policy based routing that would be great - however I'm not sure thats possible.

Doing a

traceroute ?

and

traceroute x.x.x.x ?

Doesn't look like this is possible.

1 Reply 1

Harold Ritter
Cisco Employee
Cisco Employee

You can use Loose Source Routing to achieve this. It allows you to specify a mandatory hop that has to be traversed by the traceroute. Here's how you can do it:

r4#traceroute

Protocol [ip]:

Target IP address: 10.10.10.1

Source address: 192.168.14.4

Numeric display [n]: y

Timeout in seconds [3]:

Probe count [3]:

Minimum Time to Live [1]:

Maximum Time to Live [30]:

Port Number [33434]:

Loose, Strict, Record, Timestamp, Verbose[none]: L

Source route: 192.168.23.1

Loose, Strict, Record, Timestamp, Verbose[LV]:

Type escape sequence to abort.

Tracing the route to 10.10.10.1

So in you case, you could specify the nexh-hop address for the GW you want the packet to use.

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México