LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-26-2004, 09:19 AM   #1
nafai_anlashok
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian Testing
Posts: 1

Rep: Reputation: 0
/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.
 
Old 04-26-2004, 12:53 PM   #2
ToeShot
Member
 
Registered: Nov 2001
Location: Near Chicago
Distribution: FC5, Solaris 10, WinXP
Posts: 152

Rep: Reputation: 30
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
 
Old 04-26-2004, 08:32 PM   #3
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
broadcast computer name on network? vdemuth Linux - Networking 5 11-10-2005 03:39 PM
blocking Network Broadcast using IPtables ! stakhous Linux - Security 3 01-18-2005 02:16 PM
Network interfaces assignment problem Perdido Linux - Networking 5 04-24-2004 03:25 PM
problem with network interfaces during boot time kylnas Linux - Hardware 3 08-15-2003 07:32 AM
how to broadcast tv over an ip network? andrewlkho Linux - General 5 08-10-2003 09:46 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration