Scapy Server Unreachable error with TRex GUI 4.4

582 views
Skip to first unread message

Praveen Rai

unread,
Aug 5, 2018, 2:54:35 PM8/5/18
to TRex Traffic Generator
Hello Experts,

I am trying my hand on TRex Docker version 2.41. everything works fine till I used Console. but whenever I try to use TRex Gui I am facing Scapy server unreachable error, due to this I am not able to use TRex GUI advance mode. Normal mode works fine.

I set up my docker image as per documentation available on the website. Port mapping for GUI also done properly. the node also reachable from DUT to TRex getting this error don't know why.


-Praveen

Praveen Rai

unread,
Aug 5, 2018, 3:29:21 PM8/5/18
to TRex Traffic Generator
LOG For Reference:--

hanoh haim

unread,
Aug 6, 2018, 1:40:39 AM8/6/18
to Praveen Rai, TRex Traffic Generator
Check firewall configuration 

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/cbe20839-bb3b-4a6c-858f-8c14e311b2e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Yaroslav Brustinov

unread,
Aug 6, 2018, 2:30:17 AM8/6/18
to Praveen Rai, TRex Traffic Generator
Hi,

  1. Which command are you using to run TRex?
  2. Which command are you using to run docker? Are you doing port forwarding for all 3 needed ports?

Thanks,
Yaroslav.


--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

Praveen Rai

unread,
Aug 6, 2018, 9:53:37 AM8/6/18
to TRex Traffic Generator
Thanks, Hanoh for the suggestion. I tried with stopped firewall service in windows.apart from this there is no firewall or antivirus app running on the machine still getting same issue.

-Praveen

Praveen Rai

unread,
Aug 6, 2018, 10:02:45 AM8/6/18
to TRex Traffic Generator
Hi Yaroslav.

I am using ./t-rex-64 -i to start TRex in interactive mode on docker container. I did forwarding as given in TRex Docker Manual.

"docker run --rm -it --privileged --cap-add=ALL -p 4500:4500 -p 4501:4501 -p 4507:4507 trexcisco/trex:latest"  

-Praveen


On Monday, 6 August 2018 12:00:17 UTC+5:30, y.brustinov wrote:
Hi,

  1. Which command are you using to run TRex?
  2. Which command are you using to run docker? Are you doing port forwarding for all 3 needed ports?

Thanks,
Yaroslav.

On Sun, Aug 5, 2018 at 10:29 PM, Praveen Rai <raipra...@gmail.com> wrote:
LOG For Reference:--



On Monday, 6 August 2018 00:24:35 UTC+5:30, Praveen Rai wrote:
Hello Experts,

I am trying my hand on TRex Docker version 2.41. everything works fine till I used Console. but whenever I try to use TRex Gui I am facing Scapy server unreachable error, due to this I am not able to use TRex GUI advance mode. Normal mode works fine.

I set up my docker image as per documentation available on the website. Port mapping for GUI also done properly. the node also reachable from DUT to TRex getting this error don't know why.


-Praveen

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

Yaroslav Brustinov

unread,
Aug 6, 2018, 10:16:12 AM8/6/18
to Praveen Rai, TRex Traffic Generator
Hi,

Could you run this as root from inside docker?
netstat -nltp

Also, could you verify that docker with TRex & scapy server is actually 192.168.10.2?
For example, while connected to server from GUI, shutdown the server inside docker to see if GUI disconnects.

Thanks,
Yaroslav.

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

Praveen Rai

unread,
Aug 6, 2018, 11:07:36 AM8/6/18
to TRex Traffic Generator
Hi,

thanks for the response.

here is output 

[root@TRex v2.41]# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:4507            0.0.0.0:*               LISTEN      229/python      

-Praveen

Praveen Rai

unread,
Aug 7, 2018, 12:20:13 AM8/7/18
to TRex Traffic Generator
Hi Yaroslav,

I shared output any help to fix this issue.

Yaroslav Brustinov

unread,
Aug 7, 2018, 1:59:40 AM8/7/18
to Praveen Rai, TRex Traffic Generator
Hi,

Could you verify what I wrote in second part of mail?

Thanks,
Yaroslav.

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

hanoh haim

unread,
Aug 7, 2018, 4:46:45 AM8/7/18
to Yaroslav Brustinov, Praveen Rai, TRex Traffic Generator

I've verified that GUI 4.4.0 and latest docker images work together with no issue 



try to check the open ports, 4501/4507/4500 should be opened in the server 
the command in the  manual works

Hanoh




For more options, visit https://groups.google.com/d/optout.



--

Anton Kiselev

unread,
Aug 7, 2018, 5:37:23 AM8/7/18
to hanoh haim, y.bru...@gmail.com, raipra...@gmail.com, TRex Traffic Generator
Hi Praveen,

make sure you're connecting to the correct IP as Yaroslav suggested. stop the container and ensure trex also stopped working.
If 192.168.10.2 is a VM make sure you also have port forwarding there for 4507 port(scapy).

Other than that here are some hints to test:
you can do tcpdump from the container to see if the connection goes to the container:

sudo docker exec -i -t my_trex_container tcpdump -i eth0 -e -n -l port 4507

also you can try to manually connect to that TCP port with any telnet/terminal or simple nc/netcat tool.
you won't see any prompt or output(that's a zmq port), but the TCP connection itself should be fine.

nc -v  192.168.10.2 4507
...
Connection to aastha.cisco.com port 4507 [tcp/*] succeeded!


Thanks,
Anton

вт, 7 авг. 2018 г. в 15:46, hanoh haim <hhaim...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.



--
Hanoh
Sent from my iPhone

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.

rmohamm...@gmail.com

unread,
Jul 2, 2019, 3:48:59 PM7/2/19
to TRex Traffic Generator
I am posting my question in middle of existing conversation since it is related same query. I am also unable to open GUI connection to Trex server.

I applied these commands as well on Trex server.
firewall-cmd --zone=public --add-port=4500/tcp
firewall-cmd --zone=public --add-port=4501/tcp
firewall-cmd --zone=public --add-port=4507/tcp
Still getting no response from server.

Any suggestions ?

Reply all
Reply to author
Forward
0 new messages