Linux(rh) machine acting as router config with a t1 line, two NIC. The IP adress of our external router(cisco) is 202.202.202.1 . From the firewall I can ping anything internal and external,from the client i can ping 192.168.1.1 and 202.202.202.80 but nothing beyond that, here is the set up:
-------------------------------------
Linux machine:
----
NIC card 1 to external: eth0 202.202.202.80
NIC card 2 to internal: eth1 192.168.1.1
-------------------------------------
ifcfg-eth0 file:
----
DEVICE=eth0
IPADDR=202.202.202.80
NETMASK=255.255.255.0
NETWORK=202.202.202.0
BROADCAST=202.202.202.255
GATEWAY=202.202.202.1
ONBOOT=yes
-------------------------------------
ifcfg-eth1 file:
----
DEVICE=eth1
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=202.202.202.80
ONBOOT=yes
-------------------------------------
route table:
----
dest | gateway | mask | device
192.168.1.0 | 0.0.0.0 | 255.255.255.0 | eth1
202.202.202.0 | 0.0.0.0 | 255.255.255.0 | eth0
0.0.0.0 | 202.202.202.1 | 255.255.255.0 | eth0
-------------------------------------
Client(windows 2000):
----
ip=192.168.1.5
mask=255.255.255.0
gateway=192.168.1.1
-------------------------------------
-------------------------------------
Linux machine:
----
NIC card 1 to external: eth0 202.202.202.80
NIC card 2 to internal: eth1 192.168.1.1
-------------------------------------
ifcfg-eth0 file:
----
DEVICE=eth0
IPADDR=202.202.202.80
NETMASK=255.255.255.0
NETWORK=202.202.202.0
BROADCAST=202.202.202.255
GATEWAY=202.202.202.1
ONBOOT=yes
-------------------------------------
ifcfg-eth1 file:
----
DEVICE=eth1
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY=202.202.202.80
ONBOOT=yes
-------------------------------------
route table:
----
dest | gateway | mask | device
192.168.1.0 | 0.0.0.0 | 255.255.255.0 | eth1
202.202.202.0 | 0.0.0.0 | 255.255.255.0 | eth0
0.0.0.0 | 202.202.202.1 | 255.255.255.0 | eth0
-------------------------------------
Client(windows 2000):
----
ip=192.168.1.5
mask=255.255.255.0
gateway=192.168.1.1
-------------------------------------