Guest Darren Posted October 23, 2007 Posted October 23, 2007 Hi We currently have machines (mostly winxp and linux) setup using static ip addresses, manually configured on each computer. We now want to implement DHCP and use reservations for all the PCs. However, we want to use the IP addresses they are already on (we can see these in DNS). What we need is a list of these IP addresses along with machine name and MAC address so that we can put them into the dhcp reservations, either manually or via some sort of import/export utility. Does anyone know an easy way around this ? arp -a seems a bit unreliable and doesn't give us machine name. thanks
Guest Pegasus \(MVP\) Posted October 23, 2007 Posted October 23, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? "Darren" <googlegroups@dazzas.co.uk> wrote in message news:1193128223.124753.300910@z24g2000prh.googlegroups.com... > Hi > > We currently have machines (mostly winxp and linux) setup using static > ip addresses, manually configured on each computer. > > We now want to implement DHCP and use reservations for all the PCs. > However, we want to use the IP addresses they are already on (we can > see these in DNS). > > What we need is a list of these IP addresses along with machine name > and MAC address so that we can put them into the dhcp reservations, > either manually or via some sort of import/export utility. > > Does anyone know an easy way around this ? > > arp -a seems a bit unreliable and doesn't give us machine name. > > thanks > I am puzzled as to why you would want to introduce DHCP while at the same time keeping your existing addresses. This appears to defy the purpose of DHCP. An easy way to get all MAC addresses is by getting your PCs to report them while running the logon script. You could do it by inserting this single long line into the logon scipt: if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" %%* in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt
Guest Jason W Martin Posted October 23, 2007 Posted October 23, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHC Re: How to get a list of all MAC addresses on LAN and put into DHC You can use a utility to scan your network like Angry IP Scanner: http://www.angryziber.com/ipscan/. Select options menu to choose the column for MAC address, I don't believe it's displayed by default. If Windows Firewall prevents some addresses from being displayed, go to the plug-in page http://www.angryziber.com/ipscan/plugins/ and download the MAC address via ARP. IP Scanner lets you export your results too. Hope this helps. -- Thanks, Jason W. Martin TRIa Technology "Pegasus (MVP)" wrote: > > "Darren" <googlegroups@dazzas.co.uk> wrote in message > news:1193128223.124753.300910@z24g2000prh.googlegroups.com... > > Hi > > > > We currently have machines (mostly winxp and linux) setup using static > > ip addresses, manually configured on each computer. > > > > We now want to implement DHCP and use reservations for all the PCs. > > However, we want to use the IP addresses they are already on (we can > > see these in DNS). > > > > What we need is a list of these IP addresses along with machine name > > and MAC address so that we can put them into the dhcp reservations, > > either manually or via some sort of import/export utility. > > > > Does anyone know an easy way around this ? > > > > arp -a seems a bit unreliable and doesn't give us machine name. > > > > thanks > > > > I am puzzled as to why you would want to introduce DHCP while at > the same time keeping your existing addresses. This appears to defy > the purpose of DHCP. > > An easy way to get all MAC addresses is by getting your PCs to > report them while running the logon script. You could do it by > inserting this single long line into the logon scipt: > > if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" %%* > in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% > %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt > > >
Guest Darren Posted October 23, 2007 Posted October 23, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? On 23 Oct, 11:15, "Pegasus \(MVP\)" <I....@fly.com> wrote: > "Darren" <googlegro...@dazzas.co.uk> wrote in message > > news:1193128223.124753.300910@z24g2000prh.googlegroups.com... > > > > > > > Hi > > > We currently have machines (mostly winxp and linux) setup using static > > ip addresses, manually configured on each computer. > > > We now want to implement DHCP and use reservations for all the PCs. > > However, we want to use the IP addresses they are already on (we can > > see these in DNS). > > > What we need is a list of these IP addresses along with machine name > > and MAC address so that we can put them into the dhcp reservations, > > either manually or via some sort of import/export utility. > > > Does anyone know an easy way around this ? > > > arp -a seems a bit unreliable and doesn't give us machine name. > > > thanks > > I am puzzled as to why you would want to introduce DHCP while at > the same time keeping your existing addresses. This appears to defy > the purpose of DHCP. Erm, it seems sensible to implement DHCP so we can assign IP addresses to our computers through 1 central place. We want to keep IP addresses already in use because people have mappings to each others machines, e.g. G: mapped to \\192.168.2.55 Therefore .55 cannot change > An easy way to get all MAC addresses is by getting your PCs to > report them while running the logon script. You could do it by > inserting this single long line into the logon scipt: > > if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" %%* > in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% > %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt- Hide quoted text - i tried this but get syntax errors
Guest Pegasus \(MVP\) Posted October 23, 2007 Posted October 23, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? "Darren" <googlegroups@dazzas.co.uk> wrote in message news:1193148220.083140.45730@i38g2000prf.googlegroups.com... > On 23 Oct, 11:15, "Pegasus \(MVP\)" <I....@fly.com> wrote: >> "Darren" <googlegro...@dazzas.co.uk> wrote in message >> >> news:1193128223.124753.300910@z24g2000prh.googlegroups.com... >> >> >> >> >> >> > Hi >> >> > We currently have machines (mostly winxp and linux) setup using static >> > ip addresses, manually configured on each computer. >> >> > We now want to implement DHCP and use reservations for all the PCs. >> > However, we want to use the IP addresses they are already on (we can >> > see these in DNS). >> >> > What we need is a list of these IP addresses along with machine name >> > and MAC address so that we can put them into the dhcp reservations, >> > either manually or via some sort of import/export utility. >> >> > Does anyone know an easy way around this ? >> >> > arp -a seems a bit unreliable and doesn't give us machine name. >> >> > thanks >> >> I am puzzled as to why you would want to introduce DHCP while at >> the same time keeping your existing addresses. This appears to defy >> the purpose of DHCP. > > Erm, it seems sensible to implement DHCP so we can assign IP addresses > to our computers through 1 central place. > > We want to keep IP addresses already in use because people have > mappings to each others machines, e.g. G: mapped to \\192.168.2.55 > Therefore .55 cannot change > > > >> An easy way to get all MAC addresses is by getting your PCs to >> report them while running the logon script. You could do it by >> inserting this single long line into the logon scipt: >> >> if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" >> %%* >> in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% >> %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt- Hide >> quoted text - > > i tried this but get syntax errors > > That's probably because you did not unwrap the line. It is really one long line, believe it or not!
Guest David Posted October 23, 2007 Posted October 23, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? What a nightmare of a network!?! Why don't you look into using DNS and WINS for name resolution. Few issues at start but far better. "Pegasus (MVP)" <I.can@fly.com> wrote in message news:eXLhEeYFIHA.1388@TK2MSFTNGP05.phx.gbl... > > "Darren" <googlegroups@dazzas.co.uk> wrote in message > news:1193148220.083140.45730@i38g2000prf.googlegroups.com... >> On 23 Oct, 11:15, "Pegasus \(MVP\)" <I....@fly.com> wrote: >>> "Darren" <googlegro...@dazzas.co.uk> wrote in message >>> >>> news:1193128223.124753.300910@z24g2000prh.googlegroups.com... >>> >>> >>> >>> >>> >>> > Hi >>> >>> > We currently have machines (mostly winxp and linux) setup using static >>> > ip addresses, manually configured on each computer. >>> >>> > We now want to implement DHCP and use reservations for all the PCs. >>> > However, we want to use the IP addresses they are already on (we can >>> > see these in DNS). >>> >>> > What we need is a list of these IP addresses along with machine name >>> > and MAC address so that we can put them into the dhcp reservations, >>> > either manually or via some sort of import/export utility. >>> >>> > Does anyone know an easy way around this ? >>> >>> > arp -a seems a bit unreliable and doesn't give us machine name. >>> >>> > thanks >>> >>> I am puzzled as to why you would want to introduce DHCP while at >>> the same time keeping your existing addresses. This appears to defy >>> the purpose of DHCP. >> >> Erm, it seems sensible to implement DHCP so we can assign IP addresses >> to our computers through 1 central place. >> >> We want to keep IP addresses already in use because people have >> mappings to each others machines, e.g. G: mapped to \\192.168.2.55 >> Therefore .55 cannot change >> >> >> >>> An easy way to get all MAC addresses is by getting your PCs to >>> report them while running the logon script. You could do it by >>> inserting this single long line into the logon scipt: >>> >>> if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" >>> %%* >>> in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% >>> %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt- Hide >>> quoted text - >> >> i tried this but get syntax errors >> >> > > That's probably because you did not unwrap the line. It is really > one long line, believe it or not! >
Guest Darren Posted October 24, 2007 Posted October 24, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? On 23 Oct, 11:15, "Pegasus \(MVP\)" <I....@fly.com> wrote: > "Darren" <googlegro...@dazzas.co.uk> wrote in message > > news:1193128223.124753.300910@z24g2000prh.googlegroups.com... > > > > > > > Hi > > > We currently have machines (mostly winxp and linux) setup using static > > ip addresses, manually configured on each computer. > > > We now want to implement DHCP and use reservations for all the PCs. > > However, we want to use the IP addresses they are already on (we can > > see these in DNS). > > > What we need is a list of these IP addresses along with machine name > > and MAC address so that we can put them into the dhcp reservations, > > either manually or via some sort of import/export utility. > > > Does anyone know an easy way around this ? > > > arp -a seems a bit unreliable and doesn't give us machine name. > > > thanks > > I am puzzled as to why you would want to introduce DHCP while at > the same time keeping your existing addresses. This appears to defy > the purpose of DHCP. > > An easy way to get all MAC addresses is by getting your PCs to > report them while running the logon script. You could do it by > inserting this single long line into the logon scipt: > > if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" %%* > in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% > %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt- Hide quoted text - > > - Show quoted text - Error I'm getting is Line 1 Char 14 Error Expected 'Then' Code 800A03F9
Guest Pegasus \(MVP\) Posted October 24, 2007 Posted October 24, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? "Darren" <googlegroups@dazzas.co.uk> wrote in message news:1193222009.669065.44860@y27g2000pre.googlegroups.com... > On 23 Oct, 11:15, "Pegasus \(MVP\)" <I....@fly.com> wrote: >> "Darren" <googlegro...@dazzas.co.uk> wrote in message >> >> news:1193128223.124753.300910@z24g2000prh.googlegroups.com... >> >> >> >> >> >> > Hi >> >> > We currently have machines (mostly winxp and linux) setup using static >> > ip addresses, manually configured on each computer. >> >> > We now want to implement DHCP and use reservations for all the PCs. >> > However, we want to use the IP addresses they are already on (we can >> > see these in DNS). >> >> > What we need is a list of these IP addresses along with machine name >> > and MAC address so that we can put them into the dhcp reservations, >> > either manually or via some sort of import/export utility. >> >> > Does anyone know an easy way around this ? >> >> > arp -a seems a bit unreliable and doesn't give us machine name. >> >> > thanks >> >> I am puzzled as to why you would want to introduce DHCP while at >> the same time keeping your existing addresses. This appears to defy >> the purpose of DHCP. >> >> An easy way to get all MAC addresses is by getting your PCs to >> report them while running the logon script. You could do it by >> inserting this single long line into the logon scipt: >> >> if not exist \\YourServer\SomeShare\%ComputerName%.txt for /F "tokens=*" >> %%* >> in ('ipconfig /all ^| find /i "address"') do echo %date% %time:~0,5% >> %ComputerName% %%* >> \\YourServer\SomeShare\%ComputerName%.txt- Hide >> quoted text - >> >> - Show quoted text - > > Error I'm getting is > > Line 1 > Char 14 > Error Expected 'Then' > Code 800A03F9 > The program I gave you is a batch file. You must put it into a file whose extension is ".bat". It appears that you put my code into a VB Script file that has a ".vbs" extension. This won't work - batch language is radically different from script language. I can see these options for you: a) Use a batch file instead of a VB Script for your logon process. b) Invoke my batch file from within your VB Script. c) Design a script solution for your problem. If you need assistance with options b) or c) then you should repost your question in a scripting newsgroup.
Guest Leythos Posted October 24, 2007 Posted October 24, 2007 Re: How to get a list of all MAC addresses on LAN and put into DHCP Reservations? In article <#bNLTcjFIHA.4228@TK2MSFTNGP02.phx.gbl>, I.can@fly.com says... [snip] Why not just look in the DHCP table and get the MAC from there? Enable DHCP on the computers, reboot them, look at the DHCP table on the server, it will show the MAC and you can enter it into the reservation. -- Leythos - Igitur qui desiderat pacem, praeparet bellum. - Calling an illegal alien an "undocumented worker" is like calling a drug dealer an "unlicensed pharmacist" spam999free@rrohio.com (remove 999 for proper email address)
Recommended Posts