Solved

Windows 2000 Broadcast Address

Posted on 2003-10-29
10
271 Views
Last Modified: 2010-03-19
We are currently tweaking the security in our organization (as the previous IT managers have been rather incompetant).  The company has unix and windows computers.  

The current IT manager wants to be able to sit at a Unix machine, type in the command "ping -b 192.9.70.255" and be able to grep out the IP address for each Windows 2000 machine on our network.  In other words, he wants all of the Windows machines on our network (mostly 2000) to respond to a ping to the broadcast address.

Does anyone have any input for me?

Thanks in advance,
Chris
0
Comment
Question by:rabi9634
  • 5
  • 4
10 Comments
 
LVL 35

Expert Comment

by:Bembi
Comment Utility
the ping command addresses a single machine. If you want to have a list of all W2K clients, have a look at your WINS or if installed DNS server (as I assume that you have one for the W2K clients) and export this list.
0
 
LVL 1

Author Comment

by:rabi9634
Comment Utility
I think I should rephrase this a bit..

I want to be able to sit at a UNIX machine that is on the company domain, and type in the command:

ping -b 192.9.70.255

And have ALL existing machines on the network respond.  Currently, there are some Windows machines that do not respond to this command.. ie, if you were to type

ping -b 192.9.70.255 | grep 115

The IP address 192.9.72.115 would not be listed.    

What do I need to change on the Windows machine w/ the IP address 192.9.70.115 so that when I type in the command:

ping -b 192.9.70.255 | grep 115
 
there will be an entry returned to show that the address is responsive.



0
 
LVL 35

Expert Comment

by:Bembi
Comment Utility
I'm not quite sure what your intension is, but try to ping first the target machine directly. Either the system responds or not. If the system responds, this is not a windows issue. If not, it may be that either the default broadcast address on this machine has changed or there is a router or firewall between the computers which will not route broadcast / ICMP traffic.

To check the broadcast address on the W2K machine, type

route print

at command promt. Within the routing table, you can also see the unicast and broadcast addresses.

Note: neither the switch -b nor the grep command is supported by W2K machines, but this should have nothing to do with that.

0
 
LVL 1

Author Comment

by:rabi9634
Comment Utility
That's actually touching on the problem..

If you type "ping -b 192.9.70.255 | grep 192.9.70.215", nothing comes up.  However, simply entering the command "ping 192.9.70.215" will generate a response.  

I'm trying to make it so that the .215 IP address will respond to the ping -b command.

(I'm acting solely on the boss's wishes)
0
 
LVL 35

Expert Comment

by:Bembi
Comment Utility
That means, your ping reaches the target system and the systems responds. In general there is only the possibility to respond or not to respond as only an empty package comes back as Acknowledgement. Everything else is handled by your source system.

Try the following: Shut down all machines execpting yours and the system, which makes trouble. If your send send a

ping -b 192.9.70.255

I am quite sure, that the system will respond.

Another idea, have a look at the network setting of this client, TCP-IP Properties - Enhanced, there is a setting NetBios over IP, which should allways be enabled. Additionally, compare the setting on working and not working systems. But as the client responds to direct ping, i guess this is not the option.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Author Comment

by:rabi9634
Comment Utility
That's not a feasable option.. i'm in a big company.. shutting down everything just isn't gonna happen.

My thing is, if you type in the ping -b command to the broadcast address, some windows machines will reply, and some will not.  I am looking to change whatever settings I need to change so that ALL windows machines will reply to a ping to the broadcast address.

0
 
LVL 35

Expert Comment

by:Bembi
Comment Utility
I am quite sure, dependend on the number of clients, you address with your ping, that the problem is not the response of the clients, as you can see, the client respond to a dedicated ping, I think that the lack is an overlay of multible responses, so that the sending host mmay be not able to handle all the responses at a time. If I make a broadcast ping to my network, I get no response from any W2K computer, only from switches and printers. Have a look if the responding clients have a different service pack.
0
 
LVL 1

Author Comment

by:rabi9634
Comment Utility
Ok, speaking with some Unix gurus.. this came up.

What I am trying to do in Windows would be achieved by the following in Unix:

ifconfig eth0 192.9.70.255

where eth0 is the adapter name and 192.9.70.255 is the broadcast address.  All I want to do is set the broadcast address on the Windows machines so that when you type in

ping -b 192.9.70.255

from a Unix console on the same network as the windows pcs, there will be responses from the windows pcs.  
0
 
LVL 35

Expert Comment

by:Bembi
Comment Utility
Type at the DOS promt (windows)

route print

you should see there a route like

192.9.70.255 ...
and
255.255.255.255 ...

The x.255 is the default broadcast address of windows as long it is not changed. If your route print shows something else, you have to change it back to the prefered value (as any clients within a network should have the same)

The Settings for the broadcast address can be changed at

W2K and above:
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<ID of Adapter>
UseZeroBroadcasts = 0/1
0: uses 0 Mask (=0) as Broadcast address
1: uses 1 Mask (=255) as Broadcast address

or you can use DHCP to set the broadcast address
0
 

Accepted Solution

by:
louis_gonz earned 200 total points
Comment Utility
I have a response to this question.  
1)  I believe an entry of all 1's or all 0's in the registry is not the answer rabi9634 is looking for
     setting the entry to all 1's or all 0's means that when you issue this from the command line:
     ping 255.255.255.255
         or
     ping 0.0.0.0
    all windows clients with the respective registry entry will reply to that as their broadcast address.
   after you issue the above mentioned ping, you can follow by issuing:
    arp -a  
   and this will show you a list of all hosts/clients that responded to their broadcast setting.  So in conclusion, I believe that rabi9634 is looking for the IP address in binary to use as the registry entry, so that those hosts/clients will repsond to that network's CORRECT IP broadcast address.  This is how it works in networking, be it UNIX or Windows or MAC's the CORRECT IP broadcast address for un subnetted class C address is:
x.y.z.255  or x.y.z.11111111  
where:
x = is the binary rep of the first octet
y = is the binary rep of the second  octet
z = is the binary rep of the third octet....
So it should be the case that:
11000000.00001001.01000110.11111111 should be the correct setting for the IP broadcast address in the IP network:  192.9.70.0
try this and see what happens when you issue the ping -b from your machine!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I eventually solved a perplexing problem setting up telnet for a new switch.  I installed a new Cisco WS-03560X-24P switch connected to an existing Cisco 4506 running a WS-X4013-10GE Sup II-Plus. After configuring vlans and trunking,  I could no…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now