Posted on November 13, 2015 1:59 am
 |  Asked by Chen Hsien
 |  3577 views
Tags:
RESOLVED
0
0
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 10.1.1.80 80 /source-interface Vlan106
Trying 10.1.1.80…
10.1.1.2: 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 …

10.1.1.2 is the IP address assigned on Vlan106.

Marked as spam
1
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.

Example


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 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 72(100) bytes of data.
80 bytes from 10.10.10.1: icmp_req=1 ttl=255 time=0.436 ms
80 bytes from 10.10.10.1: icmp_req=2 ttl=255 time=0.139 ms
80 bytes from 10.10.10.1: icmp_req=3 ttl=255 time=0.124 ms
80 bytes from 10.10.10.1: icmp_req=4 ttl=255 time=0.125 ms
80 bytes from 10.10.10.1: icmp_req=5 ttl=255 time=0.113 ms

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

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

Thank you !

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

Post your Answer

You must be logged in to post an answer.