What happens if once the system is up and running, you manually run
"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>"? If that
misbehaves again once the system is up, I would look into the parsing
used by ifconfig. 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> <<a href="mailto:gordon@sedsystems.ca">gordon@sedsystems.ca</a>> 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 Link encap:Ethernet HWaddr 00:09:F7:FF:FF:E9<br>
inet addr:<a href="http://137.158.27.158">137.158.27.158</a> 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>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:100
<br> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br> 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 Link encap:Ethernet HWaddr 00:09:F7:FF:FF:E9<br> inet addr:<a href="http://137.158.27.158">137.158.27.158</a> 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>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:100
<br> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br> 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 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>