in reply to Re: How can I get current IP,DNS,MAC,GW under XP?
in thread How can I get current IP,DNS,MAC,GW under XP?
For example, c:>ipconfig/all
Now, I'm using a wireless network, so I hope the perl script will Automatically get the following:Windows IP Configuration Host Name . . . . . . . . . . . . : perl Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter VMware Network Adapter VMnet8: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : VMware Virtual Ethernet Ad +apter for VMnet8 Physical Address. . . . . . . . . : 00-50-56-C0-11-08 Dhcp Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.227.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : Ethernet adapter VMware Network Adapter VMnet1: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : VMware Virtual Ethernet Ad +apter for VMnet1 Physical Address. . . . . . . . . : 00-50-56-C0-11-01 Dhcp Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.138.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : Ethernet adapter 无线网络连接: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Broadcom 802.11b/g WLAN Physical Address. . . . . . . . . : 00-1A-73-2A-E6-BC Dhcp Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP Address. . . . . . . . . . . . : 192.168.0.103 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.0.1 DHCP Server . . . . . . . . . . . : 192.168.0.1 DNS Servers . . . . . . . . . . . : 192.168.0.1 Lease Obtained. . . . . . . . . . : 2008年11月20日 23:35:02 Lease Expires . . . . . . . . . . : 2008年11月27日 23:35:02 Ethernet adapter 本地连接: Media State . . . . . . . . . . . : Media disconnected Description . . . . . . . . . . . : Broadcom NetLink (TM) Giga +bit Ethernet Physical Address. . . . . . . . . : 00-17-A4-DD-F3-26
Poor English skills, understanding.Physical Address. . . . . . . . . : 00-1A-73-2A-E6-BC IP Address. . . . . . . . . . . . : 192.168.0.103 Default Gateway . . . . . . . . . : 192.168.0.1 DHCP Server . . . . . . . . . . . : 192.168.0.1 DNS Servers . . . . . . . . . . . : 192.168.0.1
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How can I get current IP,DNS,MAC,GW under XP?
by bingos (Vicar) on Nov 21, 2008 at 12:14 UTC | |
by perllee (Novice) on Nov 23, 2008 at 09:37 UTC |