How does one set up a linux box as a router? do i need to use ipchains + port
forwarding? I've got a box w/2 nics, have ip'd them properly and set up the
proper (?) routes. a box on either side of the router can ping both cards in
the router and the router can ping both boxes, but a box on one side of the
router cannot get through the router to the other.
box a 1.3.5.9<---> router((1.3.5.1-eth0)(2.4.6.1-eth1)) <--->box b 2.4.6.8
netmasks are all configured alike - 255.255.255.0
my routes are:
route add -net 1.3.5.0 dev eth0 --- all traffic to 1.3.5.0 net use eth0
route add -net 2.4.6.0 dev eth1 --- all traffic to 2.4.6.0 net use eth1
and do show in the rouing table
a ping from 1.3.5.x to 2.4.6.x fails
i commented out the gateway line in /etc/sysconfig/network expecting
my routes to handle traffic.
This is a lab setup + so there are none of the intricacies you might find in
a production situation + the router's linux install is just a clean server install
of rh7.2 Patrick Novak
pat.novak@po.state.ct.us
forwarding? I've got a box w/2 nics, have ip'd them properly and set up the
proper (?) routes. a box on either side of the router can ping both cards in
the router and the router can ping both boxes, but a box on one side of the
router cannot get through the router to the other.
box a 1.3.5.9<---> router((1.3.5.1-eth0)(2.4.6.1-eth1)) <--->box b 2.4.6.8
netmasks are all configured alike - 255.255.255.0
my routes are:
route add -net 1.3.5.0 dev eth0 --- all traffic to 1.3.5.0 net use eth0
route add -net 2.4.6.0 dev eth1 --- all traffic to 2.4.6.0 net use eth1
and do show in the rouing table
a ping from 1.3.5.x to 2.4.6.x fails
i commented out the gateway line in /etc/sysconfig/network expecting
my routes to handle traffic.
This is a lab setup + so there are none of the intricacies you might find in
a production situation + the router's linux install is just a clean server install
of rh7.2 Patrick Novak
pat.novak@po.state.ct.us