<br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 8:27 AM, Martin Grim <span dir="ltr"><<a href="mailto:W.M.Grim@sron.nl">W.M.Grim@sron.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> Can you send me your NTP server config (/etc/ntp.conf) and<br>
> your target's network config?<br>
<br>
</div>Below my configuration for BSD:<br>
<br>
#define DEFAULT_IP_ADDR "192.168.0.80"<br>
#define DEFAULT_IP_NETMASK "255.255.255.0"<br>
#define DEFAULT_IP_GATEWAY "192.168.0.1"<br>
#define DEFAULT_TCP_PORT 5001<br>
#define DEFAULT_NTP_SERVER "172.16.150.35"<br>
<br>
// 172.16.150.25 is the SRON NTP server<br></blockquote><div><br></div><div><br></div><div>As I understand things here, your target ("leon") is directly connected to your linux box? And, this linux box has (at least) two network interfaces, on 192.168.0.xx and 172.16.xx.xx ?</div>
<div><br></div><div>Unless you are doing NAT on the linux box between the 192.168 and 172.16 networks, I don't see how "leon" could reach the 172.16.xx.xx subnet.</div><div><br></div><div>You could change DEFAULT_NTP_SERVER to 192.168.0.1 on your target, and add the following to your ntp.conf (then restart the NTP daemon):</div>
<div> restrict 192.168.0.80 mask 255.255.255.0 nomodify notrap</div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br>
</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br></span></div>-- dc<br><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
// Ethernet<br>
static struct rtems_bsdnet_ifconfig gNetdriverConfig = {<br>
(char*)RTEMS_BSP_NETWORK_DRIVER_NAME, // name<br>
RTEMS_BSP_NETWORK_DRIVER_ATTACH, // attach<br>
NULL,<br>
(char *)DEFAULT_IP_ADDR, // ip_address<br>
(char *)DEFAULT_IP_NETMASK, // ip_netmask<br>
};<br>
<br>
// Network configuration<br>
struct rtems_bsdnet_config rtems_bsdnet_config = {<br>
&gNetdriverConfig, // ifconfig<br>
NULL, // bootp<br>
THREAD_NORMAL_PRIO, // network_task_priority<br>
128*1024, // mbuf_bytecount */<br>
256*1024, // mbuf_cluster_bytecount */<br>
(char *)"leon", // hostname<br>
(char *)"localnet", // domainname<br>
(char *)DEFAULT_IP_GATEWAY, // gateway<br>
NULL, // log host<br>
{NULL, }, // Name server(s)<br>
{ (char*)DEFAULT_NTP_SERVER, },<br>
};<br>
<br>
<br>
My target is connected to a Linux PC with the following in /etc/ntp.conf. To keep things a bit short, I removed all comments form ntp.conf.<br>
<br>
driftfile /var/lib/ntp/ntp.drift<br>
statsdir /var/log/ntpstats/<br>
<br>
statistics loopstats peerstats clockstats<br>
filegen loopstats file loopstats type day enable<br>
filegen peerstats file peerstats type day enable<br>
filegen clockstats file clockstats type day enable<br>
server <a href="http://ntp.sron.nl" target="_blank">ntp.sron.nl</a><br>
server 127.127.1.0<br>
fudge 127.127.1.0 stratum 13<br>
restrict default kod notrap nomodify nopeer noquery<br>
restrict 127.0.0.1 nomodify<br>
<br>
<br>
Any help on my misconfiguration is greatly appriciated!<br>
<div><div></div><div class="h5"><br>
Regards,<br>
<br>
Martin<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
<br>
ir. W.M. Grim<br>
SRON Netherlands Institute for Space Research<br>
Sorbonnelaan 2<br>
3584 CA Utrecht, The Netherlands<br>
<a href="http://www.sron.nl" target="_blank">www.sron.nl</a><br>
<br>
<br>
</div></div></blockquote></div><br>