08-19-2023
01:47 AM
- last edited on
08-20-2023
11:30 PM
by
Translator
Hi,
I am working with a very simple topology made up by two routers: A running XR and B running XE. Routers A and B are directly connected using the
172.16.0.0/31
network.
IP ending in .0 is configured on Router A, IP ending in .1 is configured on B. I can SSH from Router A to B just fine, but trying to SSH from router B into router A doesn't work and I get a message that the remote host refused the connection.
As soon as I remove the VRF configuration under the interface on router A though, router B can SSH into it. So it got me wondering whether is normal behavior for a router to refuse connections made to an interface belonging to a VRF but couldn't find any documentation about this.
Can anyone weigh in on this?
Thank you
Solved! Go to Solution.
08-19-2023 03:10 AM
Hello @ThomasD86
On Router A, IOS xr, add
ssh server v2 ssh server vrf SSHTEST
08-19-2023 02:06 AM
You mean to say both the router configured VRF or only 1 Router in VRF other not in VRF ?
If the Interface belong to VRF, you also need to have source of interface VRF and also routing in place to reach.
For good understand you running LAB, just enable DEBUG so you will see what is happening when the packet arrive to the router.
Also good to post the config you have in the Router - also config should be VRF aware all the time (when you having VRF)
below example guide you :
08-19-2023
02:16 AM
- last edited on
08-20-2023
11:32 PM
by
Translator
Hi Balaji,
yes only Router A interface is in the VRF:
interface BVI3
vrf SSHTEST
ipv4 address 172.16.0.1 255.255.255.248
On router B:
interface BDI3
ip address 172.16.0.2 255.255.255.248
What I see is this, from router A:
ssh vrf SSHTEST 172.16.0.2
works fine
from router B:
ssh 172.16.0.1
connection refused by remote host
If I remove the vrf from the interface on router A, SSH works
08-19-2023 03:10 AM
Hello @ThomasD86
On Router A, IOS xr, add
ssh server v2 ssh server vrf SSHTEST
08-19-2023 03:14 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide