Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

route add example

Posted on 2010-09-15
5
944 Views
Last Modified: 2012-05-10
hi experts,

please give me ip address subnet and gateway examples for 2 vm machines for route add simulation.
i tried bad i have an error bad route and route addition failed.

route add ___ mask ______  _______

thanks
0
Comment
Question by:ragot
5 Comments
 
LVL 17

Expert Comment

by:Kvistofta
ID: 33681441
Example:

My VM 192.168.1.51 /24 has a default route to 192.168.1.1. However, my LAB network 192.168.2.0/24 is behind my router 192.168.1.99. So I add this to my windows host:

route add -p 192.168.2.0 mask 255.255.255.0 192.168.1.99

-p means persistent, that it will remain after reboot of the pc.

/Kvistofta
0
 
LVL 39

Expert Comment

by:Krzysztof Pytko
ID: 33681460
You can adjust above post or give us details then we will make an exact command for you :)
0
 
LVL 11

Assisted Solution

by:diprajbasu
diprajbasu earned 250 total points
ID: 33681467
you have to give source address(example:192.168.1.1) then subnet mask example:(255.255.255.0)then destination address (192.168.2.1) don't give subnet mask of the destination address

note:try to configure the same on the serial port(example: s0 or s1)

waiting for reply
0
 

Author Comment

by:ragot
ID: 33681493
diprajbasu : how about the gateway? is the the source or destination?

thanks to all who replied
0
 
LVL 17

Accepted Solution

by:
Kvistofta earned 250 total points
ID: 33681542
The gateway is the next-hop router. In my example: I need to reach the 192.168.2-network but I send all traffic destined for that network via the next-hop 192.168.1.99. The next hop must be on the same network as yourself (in my example: 192.168.1.x).

It is wrong and confusing to say that there is any source involved in this example. The source is your machines ip-address and it is never specified in the route-command.


/Kvistofta
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VM edit 2 37
Windows Services - Run a Program Grey Out 3 56
VPN Ports 8 30
domian network access 5 20
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question