mikku Posted February 21, 2005 Posted February 21, 2005 i want to assign different ip addresses to 2 network cardsone i am using for home networkingand other one for broadband interneti want to automatically assign the ip address to both cardsi have recently read on the forum that you can assign ip addresses on card basis by using somekind of inf information but i dont know from i can get this inf pertaining to a network cardmy problem is that i want to assign ip address 190.0.0.1to my home networking cardand ip address 10.224.1.1 and dns and gateway address to 2 different make network cardshow can i do thatFROM WHERE CAN I GET THE INF ID OF NETWORK CARDSfollowing is my networking portion of winnt.sif[Networking] InstallDefaultComponents=No[NetAdapters] Adapter1=params.Adapter1 Adapter2=params.Adapter2[params.Adapter1] InfID="from where can i get this inf id" ConnectionName="Internet"[params.Adapter2] InfID="from where can i get this inf id" ConnectionName="Home Networking"[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.Adapter2[params.MS_TCPIP.Adapter1] SpecificTo=Adapter1 DHCP=No IPAddress=10.224.1.193 SubnetMask=255.255.255.0 DefaultGateway=10.224.1.1 DNSServerSearchOrder=202.144.13.50,202.144.10.50,202.144.13.59 WINS=No NetBIOSOptions=0[params.MS_TCPIP.Adapter2] SpecificTo=Adapter2 DHCP=No IPAddress=190.0.0.1 SubnetMask=255.255.255.0 WINS=No NetBIOSOptions=0
duomenox Posted April 6, 2005 Posted April 6, 2005 (edited) I found an easy way to find th PNPID on a computer already running Windows.Download and install this FreeWare (Sharware) file which collects info for backing up drivers. Collect the info, maximize the screen and find the hardware you want to get the ID for. Then look under the Device IDs field and that should be the info you need for the INFID option in the unattend file.You can also disect the INF file if you have a copy of it. Since all my drivers are included with Windows I did not know which INF to open.Hope this helps.(The attached file is an executable, please run a virus check before running it)Well, on second thought...Well it will not let me upload the file, it is only 900K or so...goto www.zhangduo.comclick on freeware at the very bottom of the page and then click to download "my drivers".Hope that helps some.... Edited April 6, 2005 by duomenox
duomenox Posted April 6, 2005 Posted April 6, 2005 More To Add,Add this as an enviroment variableDEVMGR_SHOW_DETAILS = 1Then open device manager, open the properties of your network card, click on the new details tab, select harware ids from the drop down box then a list of PNPIDs should populate the box below it.I used the second id listed and it seems to work well.That should be better than installing a sharware program :-)Enjoy.
I_Broke_My_MHZ Posted April 6, 2005 Posted April 6, 2005 There is an easier way. Have a batch file run at first startup containing the following command:@netsh interface ip set address name="Local Area Connection" source=static addr=192.168.1.104 mask=255.255.255.0 gateway=192.168.1.1 gwmetric=1@netsh interface ip set dns name = "Wired Connection" source = static addr = xxx.xxx.xxx.xxx@netsh interface ip add dns name = "Wired Connection" addr = xxx.xxx.xxx.xxx index=1@ECHO Process Completed. Static IP address 192.168.1.104 issued to Local Area Connection.You can have seperate commands for each "Local Area Connection". If you want to enable DHCP, use this@netsh interface ip set address "Local Area Connection 2" dhcp@netsh interface ip set dns "Local Area Connection 2" dhcp@ECHO Process Completed. DHCP Enabled on Local Area Connection 2.
duomenox Posted April 7, 2005 Posted April 7, 2005 I will try to use that script on my next CD... looks promising, thanks for the post.Here is the KB Article at MS that makes more sense of the INFID optionINFID KB ArticleThis is some info from that site that may be the anser you are looking for.Using the Plug and Play ID StringThis method suffices when two network adapters are of a different type or from a different manufacturer, because they have different Plug and Play IDs. The Plug and Play ID string can be found by installing the adapters in one of the computers that will be deployed, and then following these steps: 1. Right-click My Computer, and then click Manage. 2. Double-click System Tools, double-click System Information, double-click Components, double-click Network, and then click the Adapter folder. A report is generated describing the name of the adapters installed, followed by the "Adapter Type." 3. For each physical network adapter installed, record the Plug and Play ID string displayed in the "Adapter Type" field. Or, you can use the The Netset tool to list the Plug and Play ID under the Network Adapters heading. Once you have gathered this information, enter it in the unattended answer file section noted below.Sorry for the numerous posts, but I just wanted to add the info I have been comming across today.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now