This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
how does ecos build its routing tables?
- From: Lambrecht Jürgen <J dot Lambrecht at TELEVIC dot com>
- To: ecos <ecos-discuss at ecos dot sourceware dot org>
- Cc: Deroo Stijn <S dot Deroo at TELEVIC dot com>
- Date: Tue, 16 Oct 2012 16:53:31 +0200
- Subject: [ECOS] how does ecos build its routing tables?
Hello,
We cannot set our routing tables correct!
We use the freeBSD network stack.
We configure it with a fixed IP adress (172.24.0.0/13) with netmask
255.248.0.0.
But always in the routing table the netmaskk 255.255.0.0 is present??
How is this possible?
Here the result of a print of the routing tables (I use functions that
you can find back on the ecos mailing list):
-----------------------------------------------------------------
Televic telnet shell. Welcome.
$> ifconfig
Routing tables
Destination Gateway Mask Flags Interface
127.0.0.0 127.0.0.1 255.0.0.0 UG lo0
127.0.0.1 127.0.0.1 UH lo0
172.24.0.0 172.24.0.0 255.255.0.0 U eth0
Interface statistics
eth0 IP: 172.24.0.11, Broadcast: 172.31.255.255, Netmask: 255.248.0.0
UP BROADCAST RUNNING MULTICAST MTU: 1500, Metric: 0
Rx - Packets: 44, Bytes: 3660, Tx - Packets: 23, Bytes: 2090
lo0 IP: 127.0.0.1, Broadcast: 127.0.0.1, Netmask: 255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU: 16384, Metric: 0
Rx - Packets: 0, Bytes: 0, Tx - Packets: 0, Bytes: 0
-----------------------------------------------------------------
Our RedBoot uses the 255.255.0.0 netmask, could that explain it?
And when we add the correct route and then delete the wrong route, our
network connection goes away - a ping fails..
Any help is appreciated!
Kind regards,
Jürgen
-
Jürgen Lambrecht
R&D Associate
Tel: +32 (0)51 303045 Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss