[2326] in linux-net channel archive
routing packets from one network to another
daemon@ATHENA.MIT.EDU (Test)
Wed Apr 3 03:15:27 1996
Date: Tue, 2 Apr 1996 14:43:03 +0100
From: test@s3two.ie (Test)
To: linux-net@vger.rutgers.edu
Cc: test@s3two.ie
Hi all,
I'm just new to linux, so if you could bare with me on this
query. (running linux production 1.2.13)
I have 2 networks
Network A is Class C (sample network address 199.100.100.0)
Network B is Class B (sample network address 188.188.0.0 )
The kernel knows about the 2 network cards and there are NO conflictions
As the machine has 2 ethernet cards, I presume for routing purposes
there will have to 2 unique hosts entries for these in the /etc/hosts
file.
eg: hostname-if0
hostname-if1
Should there corresponding ip addresses be from the the same network
or one from each of them.
ie: 199.100.100.10 hostname-if0
199.100.100.11 hostname-if1
or
199.100.100.10 hostname-if0
188.188.200.20 hostname-if1
All interfaces are available with the ifconfig command and the gateway
setup has been performed as follows :
# ifconfig eth0 hostname-if0
# ifconfig eth1 hostname-if1
# route add 199.100.100.0
# route add 188.188.0.0
Can someone tell if what I'm doing is correct or not and is there
anything else I should be aware of, how to make use of that gateway
from another unix host.
I will summarise.
regards,
James.