Howard Cai wrote:
The related commands and outputs and questions are below.
Thanks for the list's lots helps.
It would be greatly appreciated if you could help me to clarify the
followings.
Regards,
Howard
============ Detailed trace and questions =================
[EMAIL PROTECTED] sbin]# ./rtifconfig rteth0 up 192.168.1.103 netmask
255.255.255.0
[EMAIL PROTECTED] sbin]# ./rtifconfig -a
rteth0 Medium: Ethernet Hardware address: 00:20:78:1C:AF:97
IP address: 192.168.1.103 Broadcast address: 192.168.1.255
UP BROADCAST RUNNING MTU: 1500
rtlo Medium: Local Loopback
LOOPBACK MTU: 1500
[EMAIL PROTECTED] sbin]# ./rtping 192.168.1.103
Real-time PING 192.168.1.103 56(84) bytes of data.
ioctl: No route to host
[EMAIL PROTECTED] sbin]# ./rtroute
Host Routing Table
Hash Destination HW Address Device
3F 192.168.1.255 FF:FF:FF:FF:FF:FF rteth0
Try the same under linux: ifconfig lo down (i.e. no loopback is
available, just like in the example above). You will also fail to ping
yourself.
Network Routing Table
Hash Destination Mask Gateway
[EMAIL PROTECTED] sbin]# ./rtping 192.168.1.1
Real-time PING 192.168.1.1 56(84) bytes of data.
ioctl: No route to host
[EMAIL PROTECTED] sbin]# lsmod
Module Size Used by Not tainted
rtcap 12768 0 (unused)
loopback-rt 1580 1
tulip-rt 36404 2
rtnet 58696 0 [rtcap loopback-rt tulip-rt]
rtai_rtdm 13044 0 [rtnet]
rtai_sem 12160 0 [tulip-rt rtnet]
rtai_ksched 43509 0 [rtcap tulip-rt rtnet rtai_rtdm rtai_sem]
rtai_hal 39552 1 [rtcap loopback-rt tulip-rt rtnet rtai_rtdm
rtai_sem rtai_ksched]
crc32 3592 0
[EMAIL PROTECTED] sbin]# ./rtroute solicit 192.168.1.103 dev rteth0
[EMAIL PROTECTED] sbin]# ./rtroute solicit 192.168.1.1 dev rteth0
[EMAIL PROTECTED] sbin]# ./rtroute
Host Routing Table
Hash Destination HW Address Device
01 192.168.1.1 00:0F:66:36:E2:90 rteth0
3F 192.168.1.255 FF:FF:FF:FF:FF:FF rteth0
Network Routing Table
Hash Destination Mask Gateway
[EMAIL PROTECTED] sbin]# ./rtping 192.168.1.103
Real-time PING 192.168.1.103 56(84) bytes of data.
ioctl: No route to host
???????????????? Why this is not successful ?????????
[EMAIL PROTECTED] sbin]# ./rtping 192.168.1.1
Real-time PING 192.168.1.1 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 time=0.0 us
64 bytes from 192.168.1.1: icmp_seq=2 time=0.0 us
64 bytes from 192.168.1.1: icmp_seq=3 time=0.0 us
64 bytes from 192.168.1.1: icmp_seq=4 time=0.0 us
64 bytes from 192.168.1.1: icmp_seq=5 time=0.0 us
??????? This is successful after I added the route for 192.168.1.1 ????
???????
See README.routing: no ping without the destination ip being resolved,
either explicitly or via RTcfg.
Can anybody help to clarify and solve this for me.
now I do the following:
[EMAIL PROTECTED] sbin]# ./rtifconfig rtlo up 127.0.0.1
[EMAIL PROTECTED] sbin]# ./rtping 192.168.1.103
Real-time PING 192.168.1.103 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 time=0.0 us
???? Why this rtping is coming back from 127.0.0.1 instead of 192.168.1.103
???
Internal side effect, nothing to worry about. You are pinging yourself,
thus the loopback device replies.
1. Then I do ifconfig up rteth0, rteth0-mac and rtlo.
2. ping 192.168.1.103 and 192.168.1.1
3. ping failed - network is not reachable.
????? What is the problem with Linux regular ping ?????
????? Do I have to configure the route for linux interface etc ????
????? If the ping would work in linux space in above situation ????
These interfaces are read-only, they can just be used with capturing
tools and mirror incoming and outgoing real-time traffic on the
respective interfaces.
HTH,
Jan
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users