Solved

route add example

Posted on 2010-09-15
5
946 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
[X]
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
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:DIPRAJ
DIPRAJ 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

726 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