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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple IP addresses on Win2K prof.

Status
Not open for further replies.

DeadEye

Technical User
Jul 7, 2001
17
CA
I have a need to have multiple IP addresses available on my system to work with a piece of software.
I have a DHCP address for my LAN connection, a DHCP address for the VPN *virtual* interface to get back to the Company LAN across the *wilds* of the internet and I have the MS-Loopback adapter loaded so that I can simulate a number of applications at different IP addresses.
Just FYI -
LAN DHCP NIC = 10.1.1.1
VPN Virtual NIC = 192.1.1.1
Local-Area_connection ( Loopback ) 172.16.1.1 - 172.16.1.99
( can have up to 99 virtual application like Virtual WEB hosting... )

The Problem:
When I boot the system associates the LAN interface and the IP it gets using DHCP with my-hostname.network.com
If I load(enable) the VPN software OR the LoopBack adapter
If I ping myself I get the *new* IP as my-hostname.network.com

With UNIX you have configuration files where you can specify
NETWORK-INTERFACE = Hostname
Hostname = IP-Address

Is there any way to do this in Microsoft land...
 
Try creating a hosts file in \winnt\system32\drivers\etc\ just be sure to not have a file extension.

Good luck!

pansophic
pansophic
 
As far as I know, you can not multi-home a NIC that is pulling it's IP address from a DHCP server. Get a static IP address from your IT people and configure that as your primary IP address (don't forget DNS and WINS). You can hit the advance button after you config the first IP and add additional IP address'.

You did not mention which VPN you are using but your VPN should be fine the way it is. Generally, VPN's establish a connection with a server that they "know", authenticate and get an IP address compatible for the network you are joining. It does not replace the actual IP address of your NIC but when the VPN is up, you will not be able to communicate using the other IP addresses you have configured in tcp/ip properties. Setting a static IP address for a VPN (if allowed) is configured in the VPN software not in the TCP/IP configuration. I doubt that your VPN will accept more than 1 ip address, but you might want to ask your sys admin for the VPN.

Hope that helps
 
It was a two part answer -
You where right "pansophic (MIS)" I have to name the IP's I am going to be using in the etc/hosts file to get them to resolve properly by name
The next part was to go into "Network and Dial-up connections" and select "Advanced Settings" under the "Advanced menu " and change the order of the adapters listed.

Yes You can have multiple IP's in conduction with the VPN use,
the system decides where to go based on the routing information .
The corporate NET is NOT a Internet advertised IP address, so I use the VNP -Virtual adapter to get to networks A, B, C, B, E, and the LAN-Ethernet to get to default 0.0.0.0 and others I ( it ) has learned...

The Issues I was having was because the VPN adapter was First in the list...
Some software I used had bound to the Local_Area_Adapter IP ( bogus one ) because it was up first when I boot,
The others ( DHCP , VPN ) took over the system name when they would come up and the VPN connection would win in the END because it was at the to position the list... so it answered first ?
Some software tried to find "hostname1" and it was now being services by IP 444.444.444.4 and the server the client was looking for was NOT bound to that IP, so I would get NO connection. ;(
Now the VPN adapter is at the end of the list and in conduction with using etc/hosts everybody has a name that sticks, and we lived happily ever after ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top