Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route forwarding

Status
Not open for further replies.

trader88888

IS-IT--Management
Jul 28, 2009
2
CA
I have a linux box with this IP:
174.142.75.214
255.255.255.224
174.142.75.193

Windows Box
174.142.82.19
255.255.255.248
174.142.75.192


Im trying to add a route from my windows box, to the linux box as thats where it can access the internet.

But I go into the windows box and type "route ADD 174.142.75.0 netmask 255.255.255.224 174.142.75.193" and i get the error "route: bad gateway address netmask"

Im trying to figure out what command i enter to make this route?
 
what is the default gateway of the windows box? how is 174.142.82.19 going to get to the 174.142.75.0 network? how are these devices segmented?
 
Are you running different subnets?
I noticed that you have 255.255.255.224 and 255.255.255.248

Is the your ISP on a different NIC than on the linux box?

What are you trying to accomplish? Do you want to use the linux box as a gateway/firewall? and have the windows boxes behind the linux box?


[root@netwatch ~]# yum remove windows
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: windows
No Packages marked for removal

OH YEAH!
 
My windows box is sitting on a linux box as a VM ... and in order to get internet access i got to route it to my linux box which has ipforwarding already turned on ...

just not sure why i get this error or if im entering the data wrong
 
How is your VM setup bridged or NAT?

[root@netwatch ~]# yum remove windows
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: windows
No Packages marked for removal

OH YEAH!
 
route add 174.142.75.0 mask 255.255.255.224 174.142.75.193

They are not in the same subnet...but it's "mask", not "netmask"...

/



tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top