SSH to a host in a VRF

Unanswered Question
Oct 1st, 2009

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 /vrf word

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Thu, 10/01/2009 - 20:41

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

thomaslthorne Fri, 10/02/2009 - 08:43

Would this be the correct syntax?

ssh -l user -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.

Joe Clarke Fri, 10/02/2009 - 08:52

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

ssh -l user -vrf NAME

Where NAME is the name of the VRF.

thomaslthorne Fri, 10/02/2009 - 09:04

I get the following error:

router#ssh -l user -vrf name


% Invalid input detected at '^' marker.

Joe Clarke Fri, 10/02/2009 - 09:06

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.

thomaslthorne Fri, 10/02/2009 - 09:47

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

jesseramos Tue, 11/24/2009 - 13:21


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?



Joe Clarke Tue, 11/24/2009 - 13:28

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


This Discussion