Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

SSH to a host in a VRF

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
Cisco Employee

Re: SSH to a host in a VRF

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

New Member

Re: SSH to a host in a VRF

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.

Cisco Employee

Re: SSH to a host in a VRF

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.

New Member

Re: SSH to a host in a VRF

I get the following error:

router#ssh -l user -vrf name 192.168.1.5

^

% Invalid input detected at '^' marker.

Cisco Employee

Re: SSH to a host in a VRF

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.

New Member

Re: SSH to a host in a VRF

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

New Member

Re: SSH to a host in a VRF

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

Cisco Employee

Re: SSH to a host in a VRF

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

New Member

Re: SSH to a host in a VRF

Ok, thanks.

19668
Views
0
Helpful
9
Replies