VMware Communities
adino
Contributor
Contributor

Is it possible to configure a static route on VMnet8?

Hello all,

I have a virtual network of 2 WinServer 2003 computers set up. One of them is serving as a RRAS server, and it has 2 interfaces: one on the virtual network (which I configured as a 192.168.10.0 network), the other is connected to VMnet8 (NAT) and which is on the 192.168.116.x network. The NAT network i.e. VMnet8 has the default gateway on 192.168.116.2.

When I try pinging 192.168.116.2 from 192.168.116.141, which is the IP address of the RRAS server vNIC, I get replies correctly. But when I try to ping 192.168.116.2 from 192.168.10.2, which is the IP address of the second server2003 computer, I get "Request timed out". I ran packet capture and saw that 192.168.116.2 is doing an ARP broadcast trying to obtain the hardware address of 192.168.10.2 but isn't getting any replies.

I guess its because 192.168.116.2 (VMnet8) does not have a route leading to the 192.168.10.0 network. So the question is: possible to configure a static route leading to 192.168.10.0 network on VMnet8?

adino.

0 Kudos
12 Replies
chadwickking
Expert
Expert

If you are wanting the servers to remain on seperate networks then you would have to set up a vm with nics on each vmnet and then you could use it as a bridge between the two different networks so your VM's could talk to each other. At this moment there isnt a way to do that without using something as a bridge. You are right about why traffic will not pass through to the gateway from that subnet.






Cheers,

Chad King

VCP-410 | Server+

Twitter: http://twitter.com/cwjking

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Cheers, Chad King VCP4 Twitter: http://twitter.com/cwjking | virtualnoob.wordpress.com If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
adino
Contributor
Contributor

Hello Chad,

I do want the servers to remain on separate networks, but I think I'm already using the RRAS server to do what you just said. I do have a custom network (vmnet2) set up and both servers are connected to it. VMnet2 is on the 192.168.10.0 network and the 1st server has 192.168.10.2 as its IP address. I thought the RRAS server (192.168.10.3) would enable packets destined for the 192.168.10.0 network get there successfully since it has a route to that network on it. Funny thing is when I ping 192.168.116.141 which is the IP address of the second vNIC on the RRAS server from 192.168.10.2, I get replies correctly.

Check out the text file for what the entire set up looks like. (Sorry if it looks crappy... Smiley Wink

0 Kudos
chadwickking
Expert
Expert

I am sorry your 1st and 3rd replies have me confused first it couldn't ping

1st "But when I try to ping 192.168.116.2 from 192.168.10.2, which is the IP

address of the second server2003 computer, I get "Request timed out"."

2nd "Funny thing is when I ping 192.168.116.141 which is the IP address of

the second vNIC on the RRAS server from 192.168.10.2, I get replies

correctly."

Anyways - maybe I am confused myself - you can add/remove routes and windows by using the route command - type "route print" to see your routing on the windows servers. Check the windows server trying to hit the RRAS server and see if it has the right routing.

no bridging is more simple because you are "sharing" an internet connection.

bridge

http://technet.microsoft.com/en-us/library/cc783728(WS.10).aspx

example:

http://technet.microsoft.com/en-us/library/cc781097(WS.10).aspx

routing:

http://technet.microsoft.com/en-us/library/cc781568(WS.10).aspx

Cheers,

Chad King

VCP-410 | Server+

Twitter:

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Cheers, Chad King VCP4 Twitter: http://twitter.com/cwjking | virtualnoob.wordpress.com If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
adino
Contributor
Contributor

Hello Chad,

Sorry about the mixup but I don't think I'm confused. Since a picture is worth a thousand words, I have attached a picture showing the exact situation of things and what I'm trying to do.

I hope this will be clear.

Thanks for the help.

adino.

0 Kudos
continuum
Immortal
Immortal

your picture is not showing what you have in reality.

What appears as NAT-device in your picture

----------- [ NAT-device ] -----------

should appear like this

--------[ virtual nic of the host - vmnet8 ]  ----- NAT-service------- [ physical nic of the host ] --------






_________________________

VMX-parameters- WS FAQ -[ MOAcd|http://sanbarrow.com/moa241.html] - VMDK-Handbook


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
chadwickking
Expert
Expert

Please do a route print of RRAS server and an "Ipconfig /all" and post it here if you dont mind. The RRAS server isn't doing routing correctly - that would make sense seeing how the RRAS has a nic on both "switches" so to speak. The server1 can only ping the 1 server because it is on the same subnet. That would explain your problem. Is the RRAS server the gateway on server 1? Remember this server would need a "routed" path as well. If you can do an ipconfig of that server that would help as well.

Cheers,

Chad King

VCP-410 | Server+

Twitter:

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Cheers, Chad King VCP4 Twitter: http://twitter.com/cwjking | virtualnoob.wordpress.com If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
adino
Contributor
Contributor

@ continuum - Thanks for the info. Noted!

@ Chad - Hello. I've attached the route print and ipconfig /all of the RRAS server. The ipconfig of Server1 is also attached. Yes, you are right, the RRAS server is the gateway of Server1, and what do you mean by a "routed" path and which server should have it? Serve1 or RRAS?

0 Kudos
chadwickking
Expert
Expert

On the RRAS server can you check on the NIC properties for the one connected to the .10 network on properties tab > Advanced Tab > ICS is checked "it shows it is on the ipconfig just double checking" > Allow others is checked > Networking connection > Use the VMext network you are connection through or in your case connection 1 - not 2. try ping test...

Second option disable all firewalls as well and try it.

Another way to do this as stated before is to create a bridge - you could make two connections one each subnet with the nics on the appropriate vmnet connections then right click the connections and do bridge connections...

Cheers,

Chad King

VCP-410 | Server+

Twitter:

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Cheers, Chad King VCP4 Twitter: http://twitter.com/cwjking | virtualnoob.wordpress.com If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
adino
Contributor
Contributor

Hi Chad,

It isn't possible to turn on ICS for a server that has Routing and Remote Access service turned on, and this server has RRAS turned on. What I think can be done is for me to configure some routes on the RRAS. I can't seem to see how the routing table in incorrect, incomplete maybe, but not incorrect. Any ideas?

adino.

0 Kudos
adino
Contributor
Contributor

Well guys,

Thanks a lot for all the help. I've gotten it to work, and my private clients can now access the internet. Especially Chad, thanks so much.

Ciao!

0 Kudos
chadwickking
Expert
Expert

Hi Adino - I am so sorry I was out this weekend!!! I am so glad to see it is resolved! What fixed the problem? If you would post it that would help others a lot!

Congrats on getting it done!

Cheers,

Chad King

VCP-410 | Server+

Twitter:

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

Cheers, Chad King VCP4 Twitter: http://twitter.com/cwjking | virtualnoob.wordpress.com If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
adino
Contributor
Contributor

Hello Chad,

Hope you had a swell weekend? Sorry I left an incomplete message

behind. I'll write the full solution once I get my internet access

back - my payment's due and I'm sending this from my mobile.

The issue was really a problem with my config of the RRAS server. In

the end, I had to settle for a NAT behind a NAT, i.e. I made the RRAS

server act as a NAT router, while, at the same time, it was a client

to VMnet8 (VMware NAT service). Complex? Maybe, but it solved my

problem so...

Thanks again,

adino.

0 Kudos