Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

primary ip?

Status
Not open for further replies.

cjkenworthy

Programmer
Sep 13, 2002
237
GB
I have a server "web01" with two network cards:

card1 ip: 192.168.1.5
card2 ip: 192.168.1.6

(both statically assigned on win2000 server)

when clients in the domain ping web01 they get the ip address of card2. I don't want this, I want web01 to be assigned to 192.168.1.5 and all requests to web01 get there on that card. A webserver then lisitens to it on port 80, so when clients type it automatically goes to 192.168.1.5, NEVER 192.168.1.6. - how do I do this?

(I'd like to keep 192.168.1.6 for web01 - as I will be using it for external requests only).

Our domain is NT4, with an NT 4 PDC.

It seems to alternate between the two ip addresses at the moment when a request comes in to - randomly picking one of the two ip addresses.

cheers.
 
Post an ipconfig /all from the machine. Do you have a WINS server on your network? And do you have the WINS entry defined for one or both NICs?

What is happening is that your clients are pinging web01, and the name is being resolved to 192.168.1.6, so you need to check your methods of name resolution (including WINS, DNS, local hosts and lmhosts files).
 
(The IP configuration is below)

There is a WINS server (on the NT4 PDC) There are entries for the WEB01, for both addresses 192.168.1.5 and 192.168.1.6. I deleted the entry for 192.168.1.6, and I then disabled the NIC card with this address on WEB01 - to hide it from the WINS server.

I guess when i renable it, the WINS will find it again and place the mapping back in (don't want that!). I just want the name WEB01 (e.g. to the web server) to point only to 192.168.1.5.

Cheers...

Windows 2000 IP Configuration

Ethernet adapter Internal NIC:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254

Ethernet adapter External NIC:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.6
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
 
If you remove the WINS entry for your second NIC, it shouldn't register with WINS, and you can leave it enabled.
 
Cheers.

I guessed it would be something like that, so I changed the WINS properties for NIC #2 and removed all entries in the WINS server. I re-enabled the network card and now it seems to have fixed it.

My aim was to control which traffic came through on which NIC. I have a webserver (with two sites) listening in on each different IP address, and responding accordingly.

Thanks again.
 
All client requests for web01 are sent to the WINS server for resolution. The WINS server has two addresses registered for web01--5 and 6. The PC client will alternate between the two addresses each time it communicates with web01.

You cannot control this unless you manually manipulate the WINS database. As long as the server registers both NIC addresses, the client will get both of the addresses. You must go into the WINS server and delete the WINS registration for the address you do not want being given out. You can delete only the service portion of the wins entries, or you can delete everything registered under that address.

Hope this helps.

bob

I know what I know and that's all I know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top