How to remotely set the IP, using only Data Link Layer?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
25 views
On the Debian machine. Such machines in the subnet can be multiple, they differ only in a MAC. The network interface may not be configured or is configured incorrectly.
Need a way (preferably under Windows) to do the following:
1) "scan" a subnet to determine which Maki correspond to these machines.
2) on the selected machine with the specified MAC to set IP, subnet and gateway (DHCP will not do, the engineer should come one time with a laptop, configure all the machines and leave. After that the car will operate autonomously even after a reboot).
Ie actually need to be able remote configuration interface using only Data Link Layer.
It is assumed (without it not even do) that the cars constantly worked any services listening to the network.

(question from the user gadub, which lacks the karma)
by | 25 views

4 Answers

0 like 0 dislike
If the network interface is configured to address, but the interface is enabled, the addresses will be from the APIPA range, en.wikipedia.org/wiki/APIPA#IPv4
Accordingly it is only necessary to scan 255 hosts from the 254 networks, for a total of 64770.
The easiest way to scan under win* — SoftPerfect Network Scanner www.softperfect.com/products/networkscanner/
by
0 like 0 dislike
Use DHCP on the laptop for the initial distribution of addresses and a simple script, which itself will prescribe issued addresses statically. If you have all of these cars have ssh with authorization on the prescribed key and the desired key, the script can be run with a laptop and he will do everything himself, and in the worst case, you will have to log on each machine with its password.
by
0 like 0 dislike
1) to scan the network is quiet — turn off arp on a network interface. In this case, you, knowing the Mac will be able to register it in the arp table and only work with them.
2) Try to send the broadcast and listen to the answers (tcpdump/wireshark)
3) If the network interface is not configured at all (i.e. ifconfig eth0 0.0.0.0) that methods to get him there, because all the software management wants the ip. Address.
4) How to do it from under vindov — frankly don't know. Especially the part associated with the ARP off. Better than Linux.
by
0 like 0 dislike
And, by the way, DHCP under win* it is possible to run third-party, ie, run the batch file (the same "large button for the engineer") the DHCP server, then in a pre-known range scan the network. Voila.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,043 users