LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   /etc/network/interfaces broadcast problem (https://www.linuxquestions.org/questions/linux-networking-3/etc-network-interfaces-broadcast-problem-174694/)

nafai_anlashok 04-26-2004 09:19 AM

/etc/network/interfaces broadcast problem
 
I'm using Debian to run a dhcpd server and it's not showing the correct information. This is what the interfaces file looks like:

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet static
address 192.168.10.27
gateway 192.168.10.4
netmask 255.255.0.0

But when I do a ifconfig I get the following:

eth0 Link encap:Ethernet HWaddr 00:01:02:CA:F1:15
inet addr:192.168.10.27 Bcast:192.168.10.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:122619 errors:0 dropped:0 overruns:0 frame:0
TX packets:4985 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:11596387 (11.0 MiB) TX bytes:958794 (936.3 KiB)
Interrupt:9 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1268 (1.2 KiB) TX bytes:1268 (1.2 KiB)

Notice on the second line that the Bcst:192.168.10.255 is not right. I thought it should be 192.168.255.255? Thanks.

ToeShot 04-26-2004 12:53 PM

almost looks like it takes a defalt mask for the class network your in. Try editing your ifcfg0 file and add the line

BROADCAST=0.0.255.255

RHELL 04-26-2004 08:32 PM

You have a class B netmask for a class C network, so it looks like it's being ignored.
The broadcast address for your class C private network 192.168.10.0 is as it should be: 192.168.10.255.


All times are GMT -5. The time now is 11:26 PM.