[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Semi-simple Routing Question
- From: Harry Putnam <reader newsguy com>
- To: redhat-list redhat com
- Subject: Re: Semi-simple Routing Question
- Date: Tue Jul 9 19:46:12 2002
Adrian Hunt <ahunt7616 yahoo com> writes:
> Without even addressing the firewall aspect at this
> point, I'm simply trying to take one machine with 2
> network interfaces (192.168.1.1 and 192.168.2.1) and
> convince it to route IP traffice such that 192.168.2.X
> can ping, telnet to, print to, etc. 192.168.1.X.
> I've echo'd 1 > /proc/sys/net/ipv4/ip_forward, and
> hoping for a miracle I installed 'routed' and started
> it to no avail. All the firewall tables are
> completely flushed. All machines have 192.168.x.1 set
> as their default route, x being whichever subnet
> they're attached to and configured properly on. The
> routing box can see/ping all the desktops on both
> networks, and vice-versa. I simply can't get traffic
> from one desktop to another.
You provided no diagnostics what ever.
ouput of netstat -nr would be usefull here.
But probabley wouldn't show the one critical gateway, in my
experience.
I think you need two gateways for the machine with 2 nics
cat /etc/sysconfig/network-scripts/ifcfg-eth0 should look something
like:
(Please note that my setup is on 192.168.0.X and 192.168.1.X
so adjust accordingly)
The important thing to note here is that each has a gateway set to
its own subnet. Where the gateway is what is at the other end of the
respective wires
USERCTL='no'
NETMASK='255.255.255.0'
BOOTPROTO='none'
HWADDR='00:03:47:fa:4b:13'
DEVICE='eth0'
IPADDR='192.168.0.7'
GATEWAY='192.168.0.1'
TYPE='Ethernet'
ONBOOT='yes'
NETWORK='192.168.0.0'
BROADCAST='192.168.0.255'
Cat /etc/sysconfig/network-scripts/ifcfg-eth1:
USERCTL='no'
NETMASK='255.255.255.0'
BOOTPROTO='none'
HWADDR='00:04:75:9b:e5:0d'
DEVICE='eth1'
IPADDR='192.168.1.5'
GATEWAY='192.168.1.1'
TYPE='Ethernet'
ONBOOT='yes'
NETWORK='192.168.1.0'
BROADCAST='192.168.1.255'
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]