Solved

Windows 2000 Broadcast Address

Posted on 2003-10-29
10
272 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
ID: 9646490
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
ID: 9650266
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
ID: 9651072
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Author Comment

by:rabi9634
ID: 9651787
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
ID: 9652724
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
 
LVL 1

Author Comment

by:rabi9634
ID: 9652976
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
ID: 9653403
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
ID: 9658312
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
ID: 9658633
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
ID: 9659469
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

810 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