Jump to content

Ip Not Assigned To Network Cards


Recommended Posts

i want to assign different ip addresses to 2 network cards

one i am using for home networking

and other one for broadband internet

i want to automatically assign the ip address to both cards

i 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 card

my problem is that i want to assign

ip address 190.0.0.1

to my home networking card

and ip address 10.224.1.1 and dns and gateway address to

2 different make network cards

how can i do that

FROM WHERE CAN I GET THE INF ID OF NETWORK CARDS

following 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

Link to comment
Share on other sites

  • 1 month later...

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.com

click on freeware at the very bottom of the page and then click to download "my drivers".

Hope that helps some....

Edited by duomenox
Link to comment
Share on other sites

More To Add,

Add this as an enviroment variable

DEVMGR_SHOW_DETAILS = 1

Then 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 option

INFID KB Article

This is some info from that site that may be the anser you are looking for.

Using the Plug and Play ID String

This 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.

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...