cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
47205
Views
0
Helpful
9
Replies

SSH to a host in a VRF

thomaslthorne
Level 1
Level 1

I have a 3825 running c3825-advipservicesk9-mz.124-13b.bin. I have multiple VRFs defined on it. Is there a way to ssh from the router to a host inside a VRF similar to:

telnet 192.168.1.5 /vrf word

9 Replies 9

Joe Clarke
Cisco Employee
Cisco Employee

As of 12.4(20)T, the ssh command supports a -vrf option. It has not been merged into other trains.

Would this be the correct syntax?

ssh -l user 192.168.1.5 -vrf

When I do this, it gives me the error:

% Destination unreachable; gateway or host down

However, I can ping inside the VRF and get a reply.

You're missing the actual VRF name. The syntax would be:

ssh -l user -vrf NAME 192.168.1.5

Where NAME is the name of the VRF.

I get the following error:

router#ssh -l user -vrf name 192.168.1.5

^

% Invalid input detected at '^' marker.

Unless you're running 12.4(20)T or higher, you don't have this command. I had assumed you upgraded, but if you're still on 12.4(13b), then you will not be able to use SSH with VRF support.

Thanks for heads up, I will give this a try in the lab. This will certainly help if I can make it work.

jclarke,

We're trying to do the same thing except with a 6509-E running 12.2(33)SXH4.  Is there an IOS for the 6509-E that will allow us to SSH through a VRF?

Thanks,

Jesse

I do not see a version of CatIOS which supports this command.  I only see that it was integrated into 12.4(20)T.

Ok, thanks.

Review Cisco Networking for a $25 gift card