doctor069
asked on
vmware with freebsd as a router
Hi-
I am trying to setup a lab in VMware.
I have 2 windows servers on VMnet2:
172.22.1.10
172.22.1.11
Another Windows server on VMnet3:
172.22.2.10
And a freebsd system setup for routing with 3 nic's:
192.168.0.196 - my home network
172.22.1.1 - on VMnet2
172.22.2.1 - on VMnet3
On the FreeBSD router I can ping:
172.22.1.10 - VMnet2
172.22.1.11 - VMnet2
192.168.0.1 - Bridged - Home network
74.125.226.5 - Google - Through Home network - Bridged
On the FreeBSD router I can NOT ping:
172.22.2.10 - VMnet2
On the VMnet2 Windows Servers I can ping:
172.22.1.1 - Freebsd Router - VMnet2
172.22.2.1 - Freebsd Router - VMnet3
On the VMnet2 Windows Servers I can NOT ping:
172.22.2.10 - Windows Server - VMnet3
192.168.0.1 - Bridged - Home network
On the VMnet3 Windows Server I can ping:
172.22.1.10 - Windows Server - VMnet2
172.22.1.11 - Windows Server - VMnet2
172.22.1.1 - Freebsd Router - VMnet2
172.22.2.1 - Freebsd Router - VMnet3
On the VMnet3 Windows Server I can NOT ping:
192.168.0.1 - Bridged - Home network
I think it has to do with my freebsd config (see below)
rc.cong------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -------
hostname="router"
#LAN 0
ifconfig_em0="inet 192.168.0.196 netmask 255.255.255.0"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
### LAN 1
ifconfig_em1="inet 172.22.1.1 netmask 255.255.255.0"
### LAN 2
ifconfig_em2="inet 172.22.2.1 netmask 255.255.255.0"
### Default Route
defaultrouter="192.168.0.1 "
ipnat_enable="YES"
gateway_enable="YES"
ipnat.rules--------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
map tun0 172.22.0.0/16 -> 0.0.0.0/32 portmap tcp/udp 40000:65000
map tun0 172.22.0.0/16 -> 0.0.0.0/32
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------
Am I missing something?
Thanks in advance
I am trying to setup a lab in VMware.
I have 2 windows servers on VMnet2:
172.22.1.10
172.22.1.11
Another Windows server on VMnet3:
172.22.2.10
And a freebsd system setup for routing with 3 nic's:
192.168.0.196 - my home network
172.22.1.1 - on VMnet2
172.22.2.1 - on VMnet3
On the FreeBSD router I can ping:
172.22.1.10 - VMnet2
172.22.1.11 - VMnet2
192.168.0.1 - Bridged - Home network
74.125.226.5 - Google - Through Home network - Bridged
On the FreeBSD router I can NOT ping:
172.22.2.10 - VMnet2
On the VMnet2 Windows Servers I can ping:
172.22.1.1 - Freebsd Router - VMnet2
172.22.2.1 - Freebsd Router - VMnet3
On the VMnet2 Windows Servers I can NOT ping:
172.22.2.10 - Windows Server - VMnet3
192.168.0.1 - Bridged - Home network
On the VMnet3 Windows Server I can ping:
172.22.1.10 - Windows Server - VMnet2
172.22.1.11 - Windows Server - VMnet2
172.22.1.1 - Freebsd Router - VMnet2
172.22.2.1 - Freebsd Router - VMnet3
On the VMnet3 Windows Server I can NOT ping:
192.168.0.1 - Bridged - Home network
I think it has to do with my freebsd config (see below)
rc.cong-------------------
hostname="router"
#LAN 0
ifconfig_em0="inet 192.168.0.196 netmask 255.255.255.0"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
### LAN 1
ifconfig_em1="inet 172.22.1.1 netmask 255.255.255.0"
### LAN 2
ifconfig_em2="inet 172.22.2.1 netmask 255.255.255.0"
### Default Route
defaultrouter="192.168.0.1
ipnat_enable="YES"
gateway_enable="YES"
ipnat.rules---------------
map tun0 172.22.0.0/16 -> 0.0.0.0/32 portmap tcp/udp 40000:65000
map tun0 172.22.0.0/16 -> 0.0.0.0/32
--------------------------
Am I missing something?
Thanks in advance
will you please run tracert (instead of ping) to the addresses and see if that gives you any ideas as to where the hangup is, where the traffic stops--that should give us a clue as where to look for the problem.
Please add networking/Routing as a category tho this question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No user comments helped
There are few free ones available.