What happens if once the system is up and running, you manually run
&quot;ifconfig eth0 <a href="http://137.158.27.158">137.158.27.158</a> netmask <a href="http://255.255.254.0">255.255.254.0</a>&quot;?&nbsp; If that
misbehaves again once the system is up, I would look into the parsing
used by ifconfig.&nbsp; If it works, I would say look elsewhere.<br>
<br>
<br><br><div><span class="gmail_quote">On 12/9/05, <b class="gmail_sendername">Robert Gordon</b> &lt;<a href="mailto:gordon@sedsystems.ca">gordon@sedsystems.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to setup networking with a non-standard netmask to configure<br>a subnet with 512 addresses.<br><br>ifconfig eth0 <a href="http://137.158.27.158">137.158.27.158</a> netmask <a href="http://255.255.254.0">255.255.254.0
</a><br><br>But after the command runs, checking the config shows:<br><br># ifconfig eth0<br>eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Ethernet&nbsp;&nbsp;HWaddr 00:09:F7:FF:FF:E9<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
inet addr:<a href="http://137.158.27.158">137.158.27.158</a>&nbsp;&nbsp;Bcast:<a href="http://137.158.255.255">137.158.255.255</a>
Mask:<a href="http://255.255.0.0">255.255.0.0</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
UP BROADCAST RUNNING MULTICAST&nbsp;&nbsp;MTU:1500&nbsp;&nbsp;Metric:1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collisions:0 txqueuelen:100
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX bytes:0 (0.0 B)&nbsp;&nbsp;TX bytes:0 (0.0 B)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Interrupt:39<br><br>The netmask does not match the value from command.<br>Once the OS finishes booting, if I perform:<br><br>#ifconfig eth0 netmask <a href="http://255.255.254.0">
255.255.254.0</a><br>#ifconfig eth0<br>eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Ethernet&nbsp;&nbsp;HWaddr 00:09:F7:FF:FF:E9<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet addr:<a href="http://137.158.27.158">137.158.27.158</a>&nbsp;&nbsp;Bcast:<a href="http://137.158.255.255">137.158.255.255
</a><br>Mask:<a href="http://255.255.254.0">255.255.254.0</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
UP BROADCAST RUNNING MULTICAST&nbsp;&nbsp;MTU:1500&nbsp;&nbsp;Metric:1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collisions:0 txqueuelen:100
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX bytes:0 (0.0 B)&nbsp;&nbsp;TX bytes:0 (0.0 B)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Interrupt:39<br><br>Now the correct netmask is set. This is running on a cirrus-linux kernel<br>(2.4.21) with busybox 1.00&nbsp;&nbsp;The ifconfig command is run from the startup
<br>/etc/rc.sysinit script.<br><br>The only bug I can find that may be related is 251 but that relates to<br>the broadcast address not being recalculated (which is also wrong here).<br><br>Any suggestions on what may be causing this, or should I be looking
<br>deeper in the cirrus-linux network stack?<br><br>Rob<br><br><br>_______________________________________________<br>busybox mailing list<br><a href="mailto:busybox@busybox.net">busybox@busybox.net</a><br><a href="http://busybox.net/cgi-bin/mailman/listinfo/busybox">
http://busybox.net/cgi-bin/mailman/listinfo/busybox</a><br></blockquote></div><br>