I have a small problem with routing... maybe.... maybe not.
I have two machines; one is my work machine with one NIC and the other is a server/gateway with two NICS; one connecting to the work machine and the other NIC which has IJFirewall and connects to a modem which has the Internet line.
The work machine has the IP address 192.168.0.1 and the server has 192.168.0.2 for the LAN and 192.168.2.9 for the line to the modem.
The modem's IP address is 192.168.2.1
I have had this setup working fine for years. But there is one nagging problem; I cannot CMD ping *.*.2.1 from the work machine nor any other outside address either using the domain name or the IP address for a destination.
Now get this; PMPing has no problem pinging anywhere -inside or outside- on the work machine. The cmd ping will work fine for anything on the LAN, just not outside.
The server has no issues pinging anything in anyway or to anywhere.
I am not sure that it is relevant in this case, but the following is the setup.cmd for the work machine, and after that, for the server;
inetcfg -s all
route -fh
arp -f
ifconfig lo 127.0.0.1
ifconfig lan0 192.168.0.1 netmask 255.255.255.0 metric 0 mtu 1500
REM ifconfig lan0
REM ifconfig lan1
REM ifconfig lan2
REM ifconfig lan3
REM ifconfig lan4
REM ifconfig lan5
REM ifconfig lan6
REM ifconfig lan7
REM ifconfig sl0
route add default 192.168.0.2 -hopcount 0
route add net 192.168 192.168.0.2 -hopcount 0
ipgate off
Server setup.cmd:
inetcfg -s all
route -fh
arp -f
ifconfig lo 127.0.0.1
ifconfig lan0 192.168.2.9 netmask 255.255.255.0 metric 0 mtu 1500
ifconfig lan1 192.168.0.2 netmask 255.255.255.0 mtu 1500
REM ifconfig lan2 metric 1 mtu 1500
REM ifconfig lan3 metric 1 mtu 1500
REM ifconfig lan4 metric 1 mtu 1500
REM ifconfig lan5 metric 1 mtu 1500
REM ifconfig lan6 metric 1 mtu 1500
REM ifconfig lan7 metric 1 mtu 1500
REM ifconfig sl0
route add default 192.168.2.1 -hopcount 0
route add -net 192.168 192.168.2.1 -hopcount 0
ipgate on
Simple enough, yet not so simple.