Route ADD command

T

Tony R

Hi all,

I am new to this and have not been able to figure this out. I hope I am
posting to the right group. I have a W2K server with an IP of 192.168.16.2.
I have another server that was added with an IP of 192.168.1.5. They are
both plugged into the same switch. How do I use the Route ADD command to
ping from 192.168.16.2 and get a response from 192.168.1.5 without changing
the IP of the second server to be on the same subnet of the first?

Thanks
 
R

Robert L [MS-MVP]

you need a router to connect to two subnets or if the switch can setup VLAN.

--
For more and other information, go to http://www.ChicagoTech.net

Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.

Robert Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
 
B

Bill Grant

As Robert said, that isn't what the route command is for. If the
machines are in different IP subnets, they can only communicate through a
router (ie a device with an interface in each subnet). Is there any real
reason for these machines to be in different subnets?
 
T

Tony R

Thanks guys,

You've cleared the subnet issue up for me. I guess I am not understanding
what the ROUTE command is for.

Signed
Unwilling but only available person to be administrator.
 
G

Guest

Thanks in advance for your help.

I have two PCs behind two firewalls. I was able to set up a port forwarding
on firewall 2 and this way I set up
a PPP session from PC1 to PC2. (both running Windows 2000 professional).

PC1 PPP client
IP=10.2.153.254
PPP IP = 10.2.176.2

PC2 PPP server
IP = 192.168.2.100
PPP IP=10.2.176.1

I can ping from PC1 to PC2 by "ping 10.2.176.1". I need to access hosts
in the subnet 10.2.153.x from PC2 but I can't added the route on PC2

route add 10.2.153.0 mask 255.255.255.0 10.2.176.1
I got error message:
The route addition failed: The parameter is incorrect.

I am really confused.
 
B

Bill Grant

That isn't how the routing works. A PPP client can't be used as a router
for the subnet behind it. The client sets up a default route to the server,
but the server only sets up a host route back to the client through the PPP
link. It is a simple client-server setup. So a client can see the LAN behind
the server, but you cannot see machines in the subnet behind the client from
the server end.

If you look at the routing table at the "server" end (PC2), you will see
that it has only a host route back to the client. It will not send traffic
for the subnet behind it, just the PPP client.
 
G

Guest

Thanks Bill for your reply!

I have set up the PPP client as a router (opened the registry and enabled ip
router
option). When I ping from a host on PPP client side (its IP=10.2.153.100)
through PPP client PC, via PPP server PC and go to a host in PPP server PC's
LAN (more, precisely, the PC whose IP address is 10.2.175.16). My ethereal
on the PC(10.2.175.16) tells me that the ICMP request from 10.2.153.100 has
arrived.

My problem is that I can't use "route add ..." command to add the desired
route so
that PPP server PC can route the ICMP reply packets to PPP client who will
then route it to the right host.

Is there any work around? undocumented feature etc? I really need to make
this work. Any suggestions are appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top