ping from vxsim to host linux machine

VxWorks

    Next

  • 1. high resolution timer of 0.125 ms
    hi, all Now i'm working with a problem to get a high resolution timer of 0.125ms. I've found that the sysAuxClk can generate 8192 interrupts per second. But when i use sysAuxClkRateSet to set the timer to 4096, my board can not bear it and the operation speed comes low down. so, does anybody know how to get a high resolution timer instead of use interrupts. is it timerstamp? pls give me a clue. tks in advance. C.R
  • 2. Writing PCM Driver
    Hi, I want to know the details to write a PCM driver on VxWorks. The processor is Intel XScale. How does one access the PCM driver from the application ? Is it similar to tty driver ? and also what are ioctls that need to be supported ? Regards Akshay
  • 3. Time stamp doubt
    Dear fellow vxworkers, 1)Can anyone let me know whats time stamp exactly and what should i do if i need time stamping in my application. 2) what special drivers are reqd for the same incase i want to use it? 3)How its different from the normal system clock? 4)can the system clock be utilised for generating time stamp? 5)If yes then why we need a sp. driver for time stamp? sorry if this query is quite premature.It will be helpful if some one makes me understand now so that i can avoid such querys in future. expecting all ur replies and advanced thanks for the same, regards, s.subbarayan

ping from vxsim to host linux machine

Postby Akshatha » Sat, 06 Jun 2009 21:49:36 GMT

Hi All,

I'm using VxSim and i'm currently using the userland application (the
terminal) to communicate with the VxSim. I'm trying to 'ping" from the
VxSim to the local linux host IP. It fails to connect saying, "no
answer from host". However, Ping from host to the VxSim works perfect.
I can ping the tap0 interface from the VxSim (Sim creates this tap0
interface during launch to communicate with a userland application)

My question is, "How to make the Simulator ping/communicate to the
local host IP (not the loopback interface)? " .


i thought of bridging the tap0 and eth0 interface so that packets from
tap0 goes to eth0 and hence i can ping from sim to host. Is this
correct? but once briding the entire system is hanged!!

Please can you let me know what do i need to check or do i need to add
some bridge to make ping work from vxsim to host.

Thanks in Advance..

Re: ping from vxsim to host linux machine

Postby Thike » Thu, 11 Jun 2009 23:42:11 GMT

It should be done using IP forwarding

On Linux hosts, run the following with root permissions:
$ # echo "1" > /proc/sys/net/ipv4/ip_forward
or, edit /etc/sysconfig/network and add the following line:
FORWARD_IPV4=yes
Then, restart the host.

For more informations, refer Wind River VxWorks Simulator's Users
Guide (Section: Accessing the VxWorks Simulator from a Remote Host)

Its me,
Thike

Re: ping from vxsim to host linux machine

Postby Akshatha » Fri, 12 Jun 2009 20:29:24 GMT




Hi Thike,
I had done that. The problem is ping from host to sim works fine but
sim to host doesnt work.

so  i launched daemon,sim in the same subnet as host and then ping
works fine.
Referred from vxsim manual "Running the Vxworks Simulator on the Local
Network
".

i just followed these steps:

changes vxsimnetd.conf file  line

#    SUBNET_ADDRESS      = "192.168.200.0";

to
    SUBNET_ADDRESS       = "ur host subnet";
    ex: my host ip is 199.30.19.218 so  SUBNET_ADDRESS=199.30.19.0
Now launch daemon with new config as

./vxsimnet start

3)launch vxsim with ip starting with smaew subnet as host
as SIM_IP=192.168.200.  to  SIM_IP=<host subnet>  Ex:199.30.19.  if my
host ip is 199.30.19.218.

 i dint have to do any bridging here..

ok i had to remove "-a" from file as below:

On the Linux box, as root:
 cd /etc/xinetd.d
 vi gccftp
 Change the "server_args" line; remove the "-a" option.

 Restart xinetd.
 You can do it with the GUI or by running "/etc/init.d/xinetd
restart".




But i had a query here, instead of doing all thsi there is one more
way to do as mentioned in the manual,
1)Indicate that you can reach the 1host subnet 199.30.19..0 subnet
through the host interface 192.168.200.254
-> routec "add -net 199.30.19.0/24 192.168.200.254"

2)on every remote host, indicate that host 199.30.19.218 is the
gateway to reach the 192.168.200.0 network:

route add -net 192.168.200.0 netmask 255.255.255.192  gw 199.30.19.218



but i cannot ping with these steps. Am i missing something here:
hers the route show from my sim and linux host:

Note: my host ip:199.30.19.218 SIM ip: 192.168.200.1
in sim:
-> mRouteShow
Destination/Pfx    Gateway         Flags    RefCnt Use     Proto Tos I/
f

10.0.0.0/30        10.0.0.1        2000101  0      0           2   0
simnet4
47.0.0.0/8         192.168.200.254 2010003  0      0           1   0
simnet0
127.0.0.1          127.0.0.1       2200005  0      2           2   0
lo0
169.254.0.0/24     169.254.0.15    2000101  1      0           2   0
ipEnd0
169.254.1.0/27     169.254.1.15    2000101  0      0           2   0
ipEnd1
192.168.200.0/24   192.168.200.1   2000101  2      0           2   0
simnet0
199.30.19.0/24     192.168.200.254 2010803  0      2           1   0
simnet0
value = 0 = 0x0
->

in linux:
=========
[akshath@akshath-]$ /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref
Use Iface
192.168.200.0   akshath-OME     255.255.255.192 UG    0      0
0 eth0
192.168.200.0   *               255.255.255.192 U     0      0
0 eth0
199.30.19.192   *               255.255.255.192 U     0      0
0 eth0
192.168.200.0   *               255.255.255.0   U     0      0
0 tap0
169.254.0.0     *               255.255.0.0     U     0      0
0 eth0
default         199.30.19.193   0.0.0.0         UG    0      0
0 eth0


Thanks,

Re: ping from vxsim to host linux machine

Postby Akshatha » Tue, 23 Jun 2009 20:52:02 GMT

n Jun 11, 4:29m, Akshatha < XXXX@XXXXX.COM > wrote:
> >o
> SUBNET_ADDRESS = "ur host s>bnet";
> ex: my host ip is 199.30.19.218 so UBNET_ADDRESS=19>.30.19.0
> Now launch daemon with new >on>ig as
>
> ./vxsim>et>start
>
> 3)launch vxsim with ip starting with smaew subne> as host
> as SIM_IP=192.168.200. lt;o IM_IP=<>ost subnet> x:199.30.1>. f my
> host ip is 199.3>.1>.218.
>
> dint have to do any bridgi>g >ere..
>
> ok i had to remove "-a" from file >s >elow:
>
> On the Linux box,>as root:
> d /etc>xinetd.d
> gt;i gccftp
> hange the "server_args" line; remove the "-a> o>tion.
>
> estar> xinetd.
> ou can do it with the GUI or by running "/etc/init>d/xinetd
> >es>art".
>
> But i had a query here, instead of doing all thsi there is>one more
> way to do as mentioned in th> manual,
> 1)Indicate that you can reach the 1host subnet 199.30.19.>0 subnet
> through the host interface 192.16>.2>0.254
> -> routec "add -net 199.30.19.0/24 192.168>20>.254"
>
> 2)on every remote host, indicate that host 199.30.19.2>8 is the
> gateway to reach the 192.168.200.0>ne>work:
>
> route add -net 192.168.200.0 netmask 255.255.255.192 w 199.>0.>9.218
>
> but i cannot ping with these steps. Am i missing someth>ng here:
> hers the route show from my sim and li>ux>host:
>
> Note: my host ip:199.30.19.218 SIM ip: 192.>68.200.1
> -> m>outeShow
> Destination/Pfx ateway Flags efCnt Use>>ro>o Tos I/
> f
>
> 10.0.0.0/30 0.0.0.1 gt;000101 gt; 2 0
> simnet4
> 47.0.0.0/8 >92.168.200>254 2010003 1 0
> simnet0
> 1>7.0.0.> 27.0.0.1 2200005 2 gt;0
> lo0 >> 169.254.0.0/24 169.254.0.15 000101 > 2 > 0
> ipEnd0
> 169.254.1.0/27 169.254.1.15 000101 >0 gt;2 0
> ipEnd1
> 192.168.200.0/24 192.168.200.1>2000101 >2 gt;2 > 0> >>simnet0
> 1>9.30.19.0/24>192.168.200.254 2010803 gt; 1 0
> simn>t0
> value = 0 = 0x0
> ->
>
> in linux:
> ========= >> [akshath@a>shath-]$ /sbin/route
> Kernel IP routing table
> Destin>tion >ateway Genmask Flags Metric Ref
> U>e Iface
> 0 eth0
> 192.168.200.0 * 255.2>5.255.192>U 0
> 0 eth0
> 199.30.19.192 * gt;gt;255.255.255.192 U 0
> 0 eth0
> 192.168>200.0 *>> 255.255.255.0 U 0
> 0 tap0
> 169.254.0.0 * 255.255.0.0 U 0
> 0 eth0
> default 199.30.19.193 0.0.0.0 UG


Hi All,
Is there any other way to connect to host from vxsim without having
to do any settings as root (As described in vxsim simulator user guide
section 6.4.1 and 6.4.2)

Similar Threads:

1.Strange network problems - pings to host are fine, pings from host fail

Sorry for the long post - I've tried to outline the symptoms of my 
problem, and what I've tried to fix it.


I'm having some networking problems with a PC running an old version of 
Red Hat (kernel 2.2).  The PC came with a machine we have bought 
second-hand - as far as I know, everything was working before the 
machine was moved to our company.

To keep things simple, we have the Red Hat machine connected to a 
Windows XP machine that came with it, with only a simple switch in 
between.  Each machine is set up with a fixed IP address on the same 
network.

 From the XP machine, I can ping the Red Hat machine reliably and 
quickly.  From the Red Hat machine, pings to the XP machine /generally/ 
fail - typically there are about 80%-90% failures.  Those pings that 
don't fail, are fast (reply time about 1 ms).  On the XP machine, it's 
easy to see the packet counters showing packets in and replies out.  On 
the Red Hat machine, ifconfig shows similar packet rx and tx counts, and 
zero error counts.

arping to the XP machine from the Red Hat machine is reliable and fast.

When we try a browser on the XP machine and address the web server on 
the Red Hat host, there is generally a long pause (perhaps minutes), 
then suddenly the page appears.

We have tried using another Linux box in place of the original XP 
machine, with the same results from the Red Hat system.

We have tried replacing the cables and switch, with no effect - given 
that arpings are working perfectly it's hard to see how it could be a 
hardware problem.

I'm not very familiar with Red Hat or a 2.2 kernel (my experience is 
mostly with Debian and related distros, and with 2.4 and 2.6 kernels). 
But "ipchains -L" shows no firewalling (everything accepted), "ifconfig" 
and "route -n" have the expected setup, and I could not stop anything 
unexpected with "sysctrl".

One of my colleagues will try a different network card this evening.


Any ideas or tips would be much appreciated.  We've tried pretty much 
every sensible idea we can think of, so I'm ready to listen to any crazy 
or unlikely tricks.

mvh.,

David

2.My Solaris 2.8 machine resolves remote host names differently than my other UNIX machines

Hi,
   I'm having a problem with my Solaris 2.8 machine resolving the host
names of my AIX and Linux RH9 machines.  My AIX is named "mike" and
the Linux is named "justin".  Their domain is "innovativesystems.net".
 Our DNS server is a Windows NT machine called "main1_nt".
   I'm testing with the gethostbyaddr program found at this address:

ftp://gandalf.cc.purdue.edu/pub/amanda/gethostbyaddr.c

   When I run it on my Solaris machine and feed it the IP address of
my Linux machine, the output tells me the name of my Linux machine is
"justin.main1_nt".  Why does it tack on the host name of my DNS
server?  How can I stop that?  When I run that program on any other
UNIX machine here, the name of my Linux machine shows up as "justin".
   I'm also having problems with the host name of my AIX machine when
I call gethostbyaddr from the Solaris machine.  The output indicates
that the name of the AIX machine is "mike2.innovativesystems.net" and
that it has an alias of "mike.innnovativesystems.net".  In this case,
I suspect this has something to do with caching because the AIX
machine used to be called "mike2", but in March of this year we
changed the name to "mike".  All other machines (AIX, HP, Linux,
DYNIX)see it as "mike".
   The host name conflict between the Solaris and Linux machines is
causing me problems because I'm trying to use my Linux machine as an
Amanda server with the Solaris machine as an Amanda client.  The host
name of "justin.main1_nt" not matching the host name of "justin"
causes the backup to be aborted.
   Any help is appreciated, and if I can answer any questions to make
this more clear, please don't hesitate to ask.

Thanks,
Jeff

e-mail -  XXXX@XXXXX.COM 

3.Running VxSim on Linux Using Wine?

Just curious.  Has anyone been tried to run VxSim on top of Linux using
WINE?  Does it work or does it crash and burn?

TIA.

-Dave

4.Linux host PC(ipv6) can't ping with embedded board(ipv6) with ping6

Hi, all

I have a problem about ping with ipv6.
I want to ping between the host PC(ipv6) and the embedded board(ipv6).

The host PC is 2.4.26 kernel, vmware machine.
The embedded board is 2.4.18-rmk7-pxa1-xhyper255 kernel, Xscale board.

When the embedded board ping to the host PC, ping worked well.
But when the host PC ping to the embedded board, ping didn't work well.
The host PC sent a icmp packet(solicitation) to the embedded board, but
the embedded board didn't send a icmp packet(advertisement).
 
I don't know what is worng.
please advise me.

5.Cannot ping Linux machine from Win XP and vice versa

Hello everyone,

I am Linux newbie, just entering into the vast Linux democracy. 

I have a Linux box (SUSE 7.0 Personal) that I have freshly installed
and I also have a Windows XP box. I am trying to ping the Linux box
from WinXP and the WinXP from Linux but neither of them seems to work.
I know that the hardware is good because the lights on the hub blink
whenever either one sends a ping message out. On the Linux side, I ran
tcpdump and I saw that the Linux box was sending out ARP messages
asking for the location of the IP. But it was not receiving any
messages whatsoever from the WinXP box. What settings do I have to
configure to get it to work?

WinXP 
IP address: 10.1.1.73
Subnet mask: 255.255.255.0

Linux (verified it with ifconfig - eth0)
IP address: 10.1.1.70
Subnet mask: 255.255.255.0

On the Linux box I can ping it's own ip address (10.1.1.70) and also
the loopback (127.0.0.1). The same with WinXP box; I can ping it's own
ip address and loopback.

Please help.

Thanking you all,

Zefram Cochrane
----------------
To boldly go where noone has gone before...

6. Problem solved - still cannot ping Linux machine from Win XP and vice versa

7. Ping Problems On Two-Machine Linux Network

8. installed etheral - still cannot ping Linux machine from Win XP and vice versa



Return to VxWorks

 

Who is online

Users browsing this forum: No registered users and 33 guest