How to get access to web pages on both LANs? How to prevent a need for ipconfig /release and then ip

  • Thread starter Thread starter Dmitry
  • Start date Start date
D

Dmitry

Hello Dear Gurus!
How to prevent a need for ipconfig /release *É and then ipconfig /renew *É?
The *É is a name of my internal NIC, connected to my internal LAN. I need to
run the commands to get access to internet through my external LAN after
connecting to the external LAN through my second USB NIC. I loose access to
web pages on my internal LAN after the commands. How to prevent loosing the
access?
 
Dmitry said:
Hello Dear Gurus!
How to prevent a need for ipconfig /release *É and then ipconfig /renew *É?
The *É is a name of my internal NIC, connected to my internal LAN. I need to
run the commands to get access to internet through my external LAN after
connecting to the external LAN through my second USB NIC. I loose access to
web pages on my internal LAN after the commands. How to prevent loosing the
access?

Before anyone can answer your question you need to explain
your configuration in detail, e.g.
- Why do you have two network adapters?
- What is your IP address structure?
- What plays the role of a DHCP server?
- What does this "external" LAN consist of?
 
Thanks Pegasus for replying.
I have two network adapters to get access to internal LAN computers and
intranet web pages and to Internet through the external LAN.
IP address structure:
C:\Documents and Settings\*>ipconfig
îÁÓÔÒÏÊËÁ ÐÒÏÔÏËÏÌÁ IP ÄÌÑ Windows 2000
áÄÁÐÔÅÒ Ethernet ðÏÄËÌÀÞÅÎÉÅ ÐÏ ÌÏËÁÌØÎÏÊ ÓÅÔÉ:
DNS ÓÕÆÆÉËÓ ÜÔÏÇÏ ÐÏÄËÌÀÞÅÎÉÑ . . : *.*.com
IP-ÁÄÒÅÓ . . . . . . . . . . . . : 172.31.140.185
íÁÓËÁ ÐÏÄÓÅÔÉ . . . . . . . . . . : 255.255.252.0
ïÓÎÏ×ÎÏÊ ÛÌÀÚ . . . . . . . . . . : 172.31.140.1
áÄÁÐÔÅÒ Ethernet ðÏÄËÌÀÞÅÎÉÅ ÐÏ ÌÏËÁÌØÎÏÊ ÓÅÔÉ 3:
DNS ÓÕÆÆÉËÓ ÜÔÏÇÏ ÐÏÄËÌÀÞÅÎÉÑ . . : *.*.com
IP-ÁÄÒÅÓ . . . . . . . . . . . . : 172.31.144.153
íÁÓËÁ ÐÏÄÓÅÔÉ . . . . . . . . . . : 255.255.252.0
ïÓÎÏ×ÎÏÊ ÛÌÀÚ . . . . . . . . . . : 172.31.144.1
How to know What plays the role of a DHCP server?
This "external" LAN consist of computers connected to the "external" LAN. I
get access to internet through it.
 
Thanks Pegasus for replying.
I have two network adapters to get access to internal LAN computers and
intranet web pages and to Internet through the external LAN.
IP address structure:
C:\Documents and Settings\*>ipconfig
Configutation of IP protocol for Windows 2000
Adapter Ethernet ðÏÄËÌÀÞÅÎÉÅ ÐÏ ÌÏËÁÌØÎÏÊ ÓÅÔÉ:
DNS suffix of this connection . . : *.*.com
IP-address . . . . . . . . . . . . : 172.31.140.185
Subnet mask . . . . . . . . . . : 255.255.252.0
Default gateway . . . . . . . . . . : 172.31.140.1
Adapter Ethernet ðÏÄËÌÀÞÅÎÉÅ ÐÏ ÌÏËÁÌØÎÏÊ ÓÅÔÉ 3:
DNS suffix of this connection . . : *.*.com
IP-address . . . . . . . . . . . . : 172.31.144.153
Subnet mask . . . . . . . . . . : 255.255.252.0
Default gateway . . . . . . . . . . : 172.31.144.1
How to know What plays the role of a DHCP server?
This "external" LAN consist of computers connected to the "external" LAN. I
get access to internet through it.
 
How to make Windows 2000 Pro download certain web site through one gateway
and others through another gateway?
 
Try giving the network adapter connected to your external
network a fixed IP address, a fixed default gateway and
a fixed DNS address. The gateway & DSN addresses must
most likely point at the router you use on the external network
to connect to your ISP.
 
Thanks Pegasus for your reply!
What a fixed IP address, a fixed default gateway and a fixed DNS address
should I give? Will not fixed addresses cause any problem in any of the
LANs?
How to make IE use 172.31.140.1 Default gateway for an internal web site and
172.31.144.1 Default gateway for internet web sites?
 
You must talk to your network administrator. He will
give you a fixed IP address.
 
There is no any network administrator anymore yet. How to make Windows 2000
use 172.31.144.1 Default gateway for every resource except one web site?
 
I'm sorry but I get the impression that your network setup
is far from basic and that resolving your problem is beyond
the scope of exchanging a few newsgroup messages. I recommend
that you obtain the services of a network administrator and get
him to look at your two networks, their connection to the
Internet, the configuration of the DHCP server, the configuration
of your PC's two network adapters, your firewall settings and
the reason why you maintain two networks. This is not a trivial
issue and I am not in a position to resolve in this forum.
 
The internal LAN does not have an internet connection. The configuration of
my PC's two network adapters is automatic: IP and DNS-server addresses are
got automatically. DHCP is enabled in both NIC options. There is no any
firewall settings in my computer. I maintain two networks to prevent people
from the Internet see resources in my internal LAN through other computers
in my external LAN.
 
You cannot have a 'default' gateway for some web sites and a different
'default' gateway for others. You have described these gateways in two
conflicting ways, so assuming that 172.31.140.1 is the gateway to your
internal site:

1. Open a command prompt and configure a static route:

route -p add <IPaddressofInternalWebSite> mask 255.255.255.255 172.31.140.1

2. Probably this will work for you given the behavior you describe, but
this behavior may not remain consistent. The better way to do it is to
eliminate 172.31.140.1 as a default gateway and configure static routes to
all the networks you want to reach through 172.31.140.1.

3. Also, if you connect to your internal web site by name, make sure that
you are able to resolve that name when the external adapter is connected.
If the name does not resolve correctly, use a hosts file.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 
Thanks Doug Sherman.
How to eliminate 172.31.140.1 as a default gateway?
What do you mean by "all the networks" in "all the networks you want to
reach through 172.31.140.1"? I use
Adapter Ethernet ðÏÄËÌÀÞÅÎÉÅ ÐÏ ÌÏËÁÌØÎÏÊ ÓÅÔÉ:
DNS suffix of this connection . . : *.*.com
IP-address . . . . . . . . . . . . : 172.31.140.185
Subnet mask . . . . . . . . . . : 255.255.252.0
Default gateway . . . . . . . . . . : 172.31.140.1
to connect to a printer, hundreds of computers in the internal LAN and the
internal website. Should I configure a static route to every computer and
printer in the internal LAN?
 
This is the first time you have mentioned needing to reach anything other
than one or a few web servers. The example I gave you was for a route to a
specific machine. However, you can also configure a static route to an
entire network. For example, if 172.31.140.1 provides a gateway to a
192.168.1.0/24 network and a 10.0.0.0/8 network, you would enter the
following commands:

route -p add 192.168.1.0 mask 255.255.255.0 172.31.140.1
route -p add 10.0.0.0 mask 255.0.0.0 172.31.140.1

Doing this would allow you to reach all machines/devices on those networks.
In order to eliminate the default gateway, you would have to statically
configure TCP/IP on the 172.31.140.185 adapter. Currently, it appears that
connecting your 172.31.144.153 adapter results in 172.31.144.1 becoming the
preferred gateway - as long as this behavior continues you can leave the
configuration as is and simply add the necessary static routes. When you
try to send a packet to a machine on a remote network, Windows first looks
to the static routes. If no route is configured for the remote network (or
the specific machine), then Windows sends the packet to the preferred
default gateway.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 
Thanks Doug Sherman for your explanation.
What does /24 and /8 mean in the names of networks?
I get access to internet after "ipconfig /release *É" after connecting my
172.31.144.153 adapter, not right after connecting it. Therefore, I think
that ipconfig /release *É results in 172.31.144.1 becoming the preferred
gateway, not connecting my 172.31.144.153 adapter. I also get access to
internet instantly if I connect my 172.31.144.153 adapter when my system is
shutdown.
How to statically configure TCP/IP on the 172.31.140.185 adapter?
How to know names of networks to resources and computers of which I need
access?
 
Thanks.
I need access to //nameofsite internal web site. What IP address should I
add in the "route -p add IPaddress mask 255.255.255.0 172.31.140.1" command?
How to prevent the need for "ipconfig /release *É" and "ipconfig /renew *É"
to make 172.31.144.1 my default gateway and retain access to internal LAN
computers?
 
I got to know the IP address of the //nameofinternalsite by "ipconfig
/release usbadaptername" and "ping //nameofinternalsite". Then I run
"ipconfig /release usbadaptername" to regain access to the internet. Now I
have access to all resources of both networks.
How to prevent the need for "ipconfig /release internalAdapterName" to make
172.31.144.1 my default gateway after reconnecting the USB NIC for the
Internet access?
 
Right click My Network Places and select Properties. Right click the Local
Area Connection for your internal adapter and select Properties. Click on
TCP/IP and click the Properties button. Select Use the following IP address
and enter:

IP address: 172.31.140.185
Subnet mask: 255.255.252.0
Default gateway: leave blank

You did not mention any DNS server, so I don't know whether you need to
configure a primary DNS IP.

Doug Sherman
MCSE, MCSA, MCP+I, MVP
 
Thanks Doug Sherman for your directions!
Will not setting fixed IP addresses cause a problem in any of the two LANs?
How to know if my network configuration has a DNS server or needs a primary
DNS IP?
I mistyped in my previous message, I had to type: I got to know the IP
address of the //nameofinternalsite by "ipconfig /release usbadaptername"
and "ping //nameofinternalsite". Then I run "ipconfig /renew
usbadaptername", "ipconfig /release internalAdapter" and "ipconfig /renew
internalAdapter" to regain access to the internet.
 
Use the IP address as part of the URL. Another words, for the inside
computer that holds you one page that you want to see, and the interior IP
address of the computer is 192.168.0.1 (assuming your page is index.html and
your serving computer uses that as the default): http://192.168.0.1 or
http://192.168.0.1/index.html (to be more specific).

Just thought of something else: You could also use your hosts file. Do a
search for hosts and read the description of how it works at the top.
Should be easy to understand. Works great!

Robert
 
Back
Top