Re: configuration of a linux router
On Sun, Mar 02, 2008 at 02:40:22PM -0700, peasthope@shaw.ca wrote:
> My LAN has a Debian router, joule, and two subordinate
> machines, curie and heaviside. The three connect to an
> old Linksys 10Base-T hub. joule connects to a
> cable modem through a second NIC and runs
> ipmasq.
>
> Currently I want to add a third NIC to joule,
> remove the hub and connect each of curie and heaviside
> to a NIC in joule using a crossover cable.
> All appears OK except that curie and heaviside fail to
> communicate with each other.
Now you will have three networks. The first, from joule to the cable
modem, a second from joule to curie, and a third from joule to
heaviside.
>
> The output of cat /etc/network/interfaces
> and netstat -r follow.
>
> Thanks for any ideas, ... Peter E.
>
> joule:~# cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> auto lo eth0 eth1 eth2
> # The loopback network interface
> iface lo inet loopback
>
> # The primary network interface
> iface eth0 inet dhcp
> #iface eth0 inet static
>
> # The interface to curie
> iface eth1 inet static
> address 172.23.4.1, is curie 172.23.4.2?
> netmask 255.255.255.0
> up route add -host 172.23.4.4 dev $IFACE
> down route del -host 172.23.4.4 dev $IFACE
You shouldn't have to add routes like this.
>
> # The interface to heaviside
> iface eth2 inet static
> address 172.23.4.1
change this to 172.23.5.1, and change heaviside's to 172.23.5.2
> netmask 255.255.255.0
> up route add -host 172.23.4.3 dev $IFACE
> down route del -host 172.23.4.3 dev $IFACE
You shouldn't have to add routes like this
>
> joule:~# netstat -r
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> heaviside * 255.255.255.255 UH 0 0 0 eth2
> curie * 255.255.255.255 UH 0 0 0 eth1
> 172.23.4.0 * 255.255.255.0 U 0 0 0 eth1
> 172.23.4.0 * 255.255.255.0 U 0 0 0 eth2
> 24.108.32.0 * 255.255.252.0 U 0 0 0 eth0
> default 24.108.32.1 0.0.0.0 UG 0 0 0 eth0
>
>
The problem is that you have two separate network segments but haven't
made that clear to the system. Joule is triple-homed and so needs three
IPs. /etc/hosts will have to reflect this too appropriatly on all three
boxes.
Doug.
Reply to: