1834639 Members
2941 Online
110069 Solutions
New Discussion

Re: adding a route

 
Chris M. Siegel
New Member

adding a route

I have a device which is not on my subnet and I would like to temporarily access it from my workstation. My workstation ip is 192.168.1.18 with a subnet of 255.255.255.0 and the IP address that I wish to access is 10.9.103.10 with a subnet mask od 255.255.0.0.

What would be the syntax for the route add command. You assistance would be appreciated.

Chris
Adding a route
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: adding a route

Chris,

You need to know some router through which you can reach this device. Then you need to use that router in the route add statement.

route add 10.9.103.10 some_router 1

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: adding a route

Hi,

route add net netmask gateway ip adress followed by 1

route add 10.9.103.10 netmask 255.255.0.0 gateway or (router Address) 1

Good Luck
-USA..
Good Luck..
rick jones
Honored Contributor

Re: adding a route

if your temporary access needs to persist past a reboot of your workstation, you will likely want to put the releavant route infoormation into the /etc/rc.config/d/netconf file
there is no rest for the wicked yet the virtuous have no pillows
Eugen Cocalea
Respected Contributor

Re: adding a route

Hi,

you can add a route until the next reboot with 'route' command:

route add 10.9.103.10 netmask 255.255.0.0 1

(man route, man routing)

or, to make it past the reboot, put the route in the /etc/rc.config.d/netconf

E.
To Live Is To Learn