I'm having problems trying to get routing working on a dual homed server. Here is some ASCII art of my network:
I've created this routing rule on the broadband router:
I have a Windows XP computer with an IP address of 192.168.1.52. I can reach the 10.0.0.x network with it. Here is the output from tracert:
The dual homed computer can reach both networks and the internet with no problem. My issue is with the 10.0.0.2 computer. It can ping my broadband router (192.168.1.1), but nothing else. I can't figure out why the dual honed computer will forward packets to 192.168.1.1 but nowhere else.
Here is the output from netstat -nr from 10.0.0.2:
Here is the output from 10.0.0.2 when I try to traceroute to my XP machine (192.168.1.52):
It appears that the packets are making it to the dual homed computer but not being forwarded from there.
I have gateway_enable="YES" in the dual homed computer's /etc/rc.conf file. I also confirmed that it is enabled:
Does anyone know what is missing from this configuration? I've pasted some additional information below, not sure if it is needed.
Thanks in advance for your help.
Here is the output of netstat -nr on my dual homed computer:
Here is the corresponding netstat -nr from the same computer:
Code:
************
* Internet *
************
|
|
**************** ******************* *********************
* 192.168.1.51 *----* 192.168.1.1 *--- * 192.168.1.52 (XP) *
* * * Broadband Router* *********************
* * *******************
* FreeBSD 7.2 *
* * ********** **********************
* 10.0.0.1 *----* switch *--- * 10.0.0.2 (FreeBSD) *
**************** ********** **********************
I've created this routing rule on the broadband router:
Code:
Destination: 10.0.0.0
Gateway: 192.168.1.51
Netmask: 255.255.255.0
I have a Windows XP computer with an IP address of 192.168.1.52. I can reach the 10.0.0.x network with it. Here is the output from tracert:
Code:
C:\>tracert -d 10.0.0.2
Tracing route to 10.0.0.2 over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 192.168.1.1
2 <1 ms <1 ms <1 ms 192.168.1.51
3 <1 ms <1 ms <1 ms 10.0.0.2
Trace complete.
The dual homed computer can reach both networks and the internet with no problem. My issue is with the 10.0.0.2 computer. It can ping my broadband router (192.168.1.1), but nothing else. I can't figure out why the dual honed computer will forward packets to 192.168.1.1 but nowhere else.
Here is the output from netstat -nr from 10.0.0.2:
Code:
Destination Gateway Flags Refs Use Netif Expire
default 10.0.0.1 UGS 0 14 re0
10.0.0.0/24 link#1 UC 0 0 re0
10.0.0.1 00:02:e3:03:59:d4 UHLW 1 14 re0 1197
127.0.0.1 127.0.0.1 UH 0 0 lo0
Here is the output from 10.0.0.2 when I try to traceroute to my XP machine (192.168.1.52):
Code:
# traceroute -n 192.168.1.52
traceroute to 192.168.1.52 (192.168.1.52), 64 hops max, 52 byte packets
1 10.0.0.1 0.177 ms 0.122 ms 0.146 ms
2 * * *
^C
I have gateway_enable="YES" in the dual homed computer's /etc/rc.conf file. I also confirmed that it is enabled:
Code:
# sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 1
Does anyone know what is missing from this configuration? I've pasted some additional information below, not sure if it is needed.
Thanks in advance for your help.
Here is the output of netstat -nr on my dual homed computer:
Code:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGS 0 0 em0
10.0.0.0/24 link#2 UC 0 0 sis0
10.0.0.255 ff:ff:ff:ff:ff:ff UHLWb 1 63 sis0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.0.0/16 link#1 UC 0 0 em0
192.168.1.1 00:18:01:74:fa:d8 UHLW 1 75 em0 1158
192.168.1.50 link#1 UHLW 1 1 em0
192.168.1.52 00:1c:c0:2a:92:e8 UHLW 2 1071 em0 1177
192.168.255.255 ff:ff:ff:ff:ff:ff UHLWb 1 63 em0
Here is the corresponding netstat -nr from the same computer:
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:1c:c0:a5:97:98
inet 192.168.1.51 netmask 0xffff0000 broadcast 192.168.255.255
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:02:e3:03:59:d4
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:90:27:3c:7a:8e
ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
lladdr 0.90.27.0.2.3c.7a.8e.a.2.ff.fe.0.0.0.0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000