Hello Darryl,
> >Different physical network interfaces on your linux server should
> >not be on the same network addressing scheme (192.168.1.x/24).
> >
> >Use something like 192.168.2.x in the eth0 side of your network.
>
> Else subnet the address range.
Yeah, lets go subnetting in a situation where it is totally unnecessary and
probably more confusing than telling him to use two different networks and set
some routes :-/.
Assuming the situation is as follows the following routes need to be set. If
all is well they should be set automatically on stock RedHat systems, so you
should have nothing to do except change IP's. The default route is only set if
you set GATEWAY=192.168.1.254 in ifcfg.eth1. (Note that this is just an
elaborate example of what Michael and Gordon already said.)
The talk about an ISP gateway is a bonus, and should be ignored at first.
(ISP gateway 200.201.202.1)
(|)
DSL modem 192.168.1.254
| 192.168.1.x/255.255.255.0 network
eth1 192.168.1.10
linux router
eth0 192.168.2.1
|
lan 192.168.2.x/255.255.255.0
route add -host 192.168.1.10 eth1
route add -net 192.168.1.0/24 gw 192.168.1.10
route add default gw 192.168.1.254
route add -host 192.168.2.1 eth0
route add -net 192.168.2.0/24 gw 192.168.2.1
As said, all these routes should have been set automatically, so this is for
educational purposes only :).
Maybe your ISP wants all traffic to be routed via its gateway. Assuming your
ISP's gateway is 200.201.202.1 and the netmask is 255.255.255.0 you should
replace
route add default gw 192.168.1.254
with
route add -net 200.201.202.0/24 gw 192.168.1.10 # traffic to ISP's network
goes directly
or
route add -host 200.201.202.1 gw 192.168.1.10 # also traffic to ISP's network
goes via gateway
and
route add default gw 200.201.202.1 [eth1]
If you set GATEWAY=200.201.202.1 in ifcfg.eth1 you might just have to add the
route to the ISP's network or gateway to your startup scripts. Make sure all
other routes are set.
Bye,
Leonard.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list