Posted on November 13, 2015 1:59 am
 |  Asked by Chen Hsien
Print Friendly, PDF & Email

I have multiple VRFs defined on my Arista switch and it is participating in routing. How can I test TCP connectivity from Arista switch to a server in specific vrf ? Take for an example, i have 3 VRFs: TRUST, UNTRUST and DMZ. In TRUST vrf, i have VLAN106. On VLAN106, i would like to connect to a web server from my Arista switch but i could not see any option for vrf with the telnet command. I tried this but I got this error:

Arista01(s1)#telnet 80 /source-interface Vlan106
Trying… Cannot assign requested address
No connection.
Escape character is ‘off’.
SetSockOpt: Bad file descriptor
sleep(5) from telnet, after select
sleep(5) from telnet, after select … is the IP address assigned on Vlan106.

Marked as spam
Posted by Vikram
Answered on November 13, 2015 2:23 am

Hi, please use the command routing-context <vrfname> to switch to the VRF and then issue the telnet or ssh command.


switch.20:10:08#sh vrf   
   Vrf        RD        Protocols       State          Interfaces  
---------- --------- --------------- ------------- ----------- 
   MGMT       1:1       ipv4           no routing    Management1             

switch.20:10:11#routing-context vrf MGMT

switch.20:15:23(vrf:MGMT)# ping
PING ( 72(100) bytes of data.
80 bytes from icmp_req=1 ttl=255 time=0.436 ms
80 bytes from icmp_req=2 ttl=255 time=0.139 ms
80 bytes from icmp_req=3 ttl=255 time=0.124 ms
80 bytes from icmp_req=4 ttl=255 time=0.125 ms
80 bytes from icmp_req=5 ttl=255 time=0.113 ms

--- ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 1ms

switch.20:15:25(vrf:MGMT)# telnet 443
Connected to
Escape character is 'off'.

Thank you !

(Chen Hsien at November 13, 2015 5:11 am)

Post your Answer

You must be logged in to post an answer.