Jump to content

Using static IP address in unattended cd


Recommended Posts

Hi again,

I am unsure if this had been asked before but I would like to know if there is a possible common way for me to create a way that could implement static ip addressing for an unattended xp boot cd? I wanna assign addressing like 192.168.0.x... ip numbering if ever the cd will be used on a machine with multiple LAN cards. Thanks. :)

Link to comment
Share on other sites


thanks, i've tried reading through the help file but i find the steps a bit complicated. i was wondering if what files are required for me to edit, and what entries do i need to put into.

thanks in advanced, i hope you could bear with me, im really new at this.

Link to comment
Share on other sites

Hi,

I wanna assign addressing like 192.168.0.x... ip numbering if ever the cd will be used on a machine with multiple LAN cards. Thanks. :)

Did you looking for something like this :

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1

[params.Adapter1]
   INFID=*

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]
   DNS=No
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=No
   IPAddress=192.168.1.120
   SubnetMask=255.255.255.0
   DefaultGateway=192.168.1.254
   DNSServerSearchOrder=192.168.1.254
   WINS=No
   NetBIOSOptions=0

For multible Networkcards you need to use the same settings with *.Adapter2 and so on.

You have to add these Lines to your winnt.sif

Hope it helps.

Burger

Link to comment
Share on other sites

@Burger, thanks very much for the pointers, will try to apply those on my unattended compilation. :)

@Bâshrat the Sneaky, as much as i love using DHCP, i like the practice of having it disabled by default (including the service). i am planning on using this on different PCs and some of them have multiple network cards... i would like to implement an unattended cd that can automatically assign static ip addressing for each PCs.

Link to comment
Share on other sites

[Proxy]
   Proxy_Enable=0
   Use_Same_Proxy=1

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1
   Adapter2=params.Adapter2

[params.Adapter1]
   INFID=*

[params.Adapter2]
   INFID=*

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]
   DNS=No
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1
   AdapterSections=params.MS_TCPIP.Adapter2

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=No
   WINS=No
   NetBIOSOptions=0
   IPAddress=192.168.0.1
   SubnetMask=255.255.255.0
   DefaultGateway=192.168.0.1

[params.MS_TCPIP.Adapter2]
   SpecificTo=Adapter2
   DHCP=No
   WINS=No
   NetBIOSOptions=0
   IPAddress=192.168.0.2
   SubnetMask=255.255.255.0
   DefaultGateway=192.168.0.2

i have this but it never works, my 1st lancard is a simple realtek card and Xp install him automatically but wont give the static ip i have filled in. my 2nd lancard is a 3com onboard gigabitcard, who needs to first install intel INF and then the 3com driver but i dont have found out how to install 3com driver unattend....

so do someone know why my first lancard wont get a static IP? and how to unattend install 3com? and give him also a static IP?

why static IP? my computer is freeze one minute after booting, he search a dhcp server but there it is not. when give static IP i solve the freeze....

Link to comment
Share on other sites

@SolidasRock

If your second card isn't installed during setup, why bother configuring both ?

Besides, ref.chm says

You must list each adapter present in the computer as an entry = value pair. Only one network adapter is configured during Sysprep, even if the Sysprep.inf file specifies configuration of multiple cards.

And you have another thing going against you:

If you are using InfID = * in both cards, you aren't telling setup anything useful, I think it goes like "InfID = *PNP030b", but then again, you should reread the "[params.adapter instance]" section on the help file.

Disclaimer:

My windows computer as only 1 adapter, so have all the workstations I did unatended or sysprep.

Link to comment
Share on other sites

I guess in this case, you should use the pnp id to identify the cards.

I use this program "Unknown Devices" at this page to get pnpid for Windows PE.

From what i gather in documentation, in this case it should suffice the InfID parameter, with the right string, because unlike the PCI locatin it is unique.

Let us know if you figure this out.

Link to comment
Share on other sites

although in my case, i won't mind if ip assignment will ever be mixed-up. i just wanna experience the speedier bootup times that disabled-DHCP provides.

@Burger:

i would also like to know, should i place all these under winnt.sif?

Did you looking for something like this :

[Networking]
  InstallDefaultComponents=No

[NetAdapters]
  Adapter1=params.Adapter1

...

For multible Networkcards you need to use the same settings with *.Adapter2 and so on.

You have to add these Lines to your winnt.sif

Hope it helps.

Burger

also, for target PCs with multiple LAN cards, will i only duplicate entries that have the adapter1 and change them all to adapter2? thanks. :)

would it be also possible instead for me to simply enter a range for the pre-set manual IP settings for the detected LAN cards, rather than declare each detected LAN cards?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...