In article <(E-Mail Removed) >, kernel.lover
wrote:
> I have 2 questions in setting routing table
>1)What should be the Ideal configuration for my RH9 linux machine with
>2 network interfaces
>eth0:10.0.0.100
>eth1:192.168.1.100
Your question doesn't make sense. How the interfaces are configured depends
on what the networks look like.
>2) I set my routing table as
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use Iface
>192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
>172.16.1.0 10.0.2.100 255.255.255.0 UG 0 0 0 eth0
>10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
>127.0.0.0 * 255.0.0.0 U 0 0 0 lo
>default 192.168.1.100 0.0.0.0 UG 0 0 0 eth1
OK, that looks acceptable, assuming the addresses are appropriate for the
networks and routers.
>wheras 10.0.2.10 is another router made on RH9.
Where does 10.0.2.10 lead?
>I want to know how to set default to 10.0.0.100 as main network
This part makes sense. Look in the following places:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/route-eth0
/etc/sysconfig/network-scripts/route-eth1
In one of those files, you are setting 'GATEWAY' and 'GATEWAYDEV' or you
are setting a route using <mumble> as a gateway on eth<mumble>
>connecting 10.0.0.100 and 10.0.2.10 (Router1 and Router 2 resp.)?
This is not understandable. 10.0.0.100 is some host on your 10.0.0.0/8
network apparently on eth0, and 10.0.2.10 is some other host on the same
network. They should both be directly reachable through the eth0 basic
route
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
right there. Nothing special is needed. For further details, see the
"Linux Network Administrator's Guide" at
http://tldp.org/guides.html.
Note that the 'network-guide' or it's successor the 'nag2' might be
installed on your system, perhaps in /usr/share/doc/.
Old guy