Networking Forums

Networking Forums > Computer Networking > Windows Networking > netsh script to hard-code IP address

Reply
Thread Tools Display Modes

netsh script to hard-code IP address

 
 
Spin
Guest
Posts: n/a

 
      05-09-2008, 04:18 AM
Gurus,

Does anyone know a netsh script which would change a DHCP-configured NIC
into a hard-coded one which uses a static IP, class C mask, DG of
192.168.1.1 and DNS server of 192.168.1.10?

--
Spin

 
Reply With Quote
 
 
 
 
Masterplan
Guest
Posts: n/a

 
      05-09-2008, 08:42 AM
Hi Spin,

You can use:
netsh interface ip set address name=”Local Area Connection” static
192.168.0.26 255.255.255.0 192.168.1.1
netsh interface ip set dns “Local Area Connection” static 192.168.1.10
primary

Have a nice day!

"Spin" wrote:

> Gurus,
>
> Does anyone know a netsh script which would change a DHCP-configured NIC
> into a hard-coded one which uses a static IP, class C mask, DG of
> 192.168.1.1 and DNS server of 192.168.1.10?
>
> --
> Spin
>
>

 
Reply With Quote
 
Spin
Guest
Posts: n/a

 
      05-11-2008, 12:11 PM
"Masterplan" <(E-Mail Removed).> wrote in message
news:C2C9F58E-A6F3-457F-8F3A-(E-Mail Removed)...
> Hi Spin,
>
> You can use:
> netsh interface ip set address name=”Local Area Connection” static
> 192.168.0.26 255.255.255.0 192.168.1.1
> netsh interface ip set dns “Local Area Connection” static 192.168.1.10
> primary


Worked!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring DHCP with a NETSH Script Gis Bun Windows Networking 0 04-30-2008 05:28 PM
script for checking own ip address Marcio Cordero Linux Networking 5 11-04-2005 12:19 AM
I am in need of a netsh script that will disable the "Local Area Connection" interface then re-enable that same interface. Spin Windows Networking 3 11-03-2005 12:58 AM
How hard it is port VxWorks code to Linux? santa19992000@yahoo.com Linux Networking 3 08-20-2005 11:48 AM
Hard-code AP list in XP? Jacob Lane, MCP Wireless Networks 3 01-22-2005 05:38 AM



1 2 3 4 5 6 7 8 9 10 11