Thread View: comp.os.linux.networking
2 messages
2 total messages
Started by Bin Zhou
Mon, 16 Oct 2000 05:33
broadcast of ifconfig on Linux
Author: Bin Zhou
Date: Mon, 16 Oct 2000 05:33
Date: Mon, 16 Oct 2000 05:33
16 lines
1790 bytes
1790 bytes
hello there, Im using Debian GUN/Linux 2.2--with 2.2.16 kernel. It seems to me that, the /sbin/ifconfig command(version 1.39) performs strange. If I set all IP,MASK and broadcast values, everything go OK, but if I only set IP and MASK, not set the broadcast, the default broadcast is determinded by the class of the IP, not the correct value(IP | ^MASK). ex. the broadcast of 172.31.0.1/255.255.255.0 is set to 172.31.255.255, not the 172.31.0.255. Is this the specification or a bug? thank you zhoubin@no.spam.circle.to.no.spam
Re: broadcast of ifconfig on Linux
Author: patrick Lottier
Date: Mon, 16 Oct 2000 00:00
Date: Mon, 16 Oct 2000 00:00
27 lines
1797 bytes
1797 bytes
You're on a class B network, so the default netmask is 255.255.0.0, and it's logical: the default broadcast is based on the default netmask. So, you *must* manually set broadcast if you want to use a sub-net. patrick Lottier System Administrator plottier@qc-ns.com http://www.qc-ns.com Bin Zhou wrote: > hello there, > > Im using Debian GUN/Linux 2.2--with 2.2.16 kernel. It seems to me that, the > /sbin/ifconfig command(version 1.39) performs strange. If I set all IP,MASK > and > broadcast values, everything go OK, but if I only set IP and MASK, not set > the > broadcast, the default broadcast is determinded by the class of the IP, > not the correct value(IP | ^MASK). ex. the broadcast of > 172.31.0.1/255.255.255.0 > is set to 172.31.255.255, not the 172.31.0.255. Is this the specification or > a bug? > > thank you > > zhoubin@no.spam.circle.to.no.spam
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads