Link to home
Start Free TrialLog in
Avatar of daly29
daly29Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Routing ina virtual PC

Hi

I have set up a virtual PC for testing purposes have given it a different subnet address from the Host system

The Virtual PC is a server and I dont want it to be on the same subnet as my host system.

I do however want to contact the host LAN to map a drive - get internet access ocassionaly and so on.

I tried to set up a VPN which failed on error 800

I was wondering if anyone could suggest a means to do this please, ie would a static route work.

The host system is in on a 192.168.0 range

And the Virtual system which will become a small test network is on 192.168.5  range

Could anyone help please

Thanks
Avatar of jfer0x01
jfer0x01
Flag of United States of America image

Hello,

Do you have Windows servers at both subnets?

If so,setup a RRAS on both ends, and configure default gateways to each other on both ends

http://foss.aueb.gr/images/7/74/Intro_to_net.pdf

see slide 8

Although it's a Linux network example, the routing you desire is the same

All you pretty much need is a Routing application service in between both ends

Jfer
You can probably even get away with just

route -p ADD 192.168.5.1 MASK 255.255.0.0 192.168.0.1

and vice-versa at other end

route -p ADD 192.168.0.1 MASK 255.255.0.0 192.168.5.1
Avatar of daly29

ASKER

Thanks for that

I will have a go at that when I am in the office on Monday

Will keep you updated

thanks Again
Any progress?
Avatar of daly29

ASKER

Thanks for your message The Guy I am working on this with is off sick this week so I will hopefully get a chance to test it on Monday, I will keep you informed of how this goes

Thank you once again
Sure Thing
Avatar of daly29

ASKER

Hi tried the route add way which I prefer to do. I am getting bad mask errors  - what I want is to route from server machine which has ip 192.168.5.5 to the other subnet to get to the internet and the file server. the gateway on that subnet is 192.168.0.2 and the fileserver is 192.168.0.5

As you may gather routing is not my strongest point

Thank you
try these, replace the gateway ip with the ip of the router you have that divides the network

the second ip block is the gateway device ip, modify it if .5.1 is not the ip of the device that routes on that lan

route add 192.168.5.0 MASK 255.255.255.0 192.168.0.2 metric 1
route add 192.168.0.0 MASK 255.255.255.0 192.168.5.1 metric 1

ASKER CERTIFIED SOLUTION
Avatar of jfer0x01
jfer0x01
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Any advancements?
Avatar of daly29

ASKER

Thank you for your help we decided against linking the networks but I really appreciate the imput and help with routing from you