Peter Matulis <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>. ..
> On 20 Dec 2003 15:54:24 -0800, (E-Mail Removed) (Sentiniate)
> wrote:
>
> >i am trying to build up a home lan
> >
> > INTERNET
> > |
> > |
> > 0 Modem 56K
> > |
> > _____ pc A = firewall + qpopper
> > eth0| |eth1 pc's B and C = client
> > |-----| A |-----|
> > eth0| |_____| |eth0
> > ----- -----
> > | | | |
> > | B | | C |
> > |_____| |_____|
> >
> >A = debian woody + 2.4.23 eth0=192.168.0.1 nm 255.255.255.0 , eth1=192.168.1.1
> >B = mandrake 9.2 + 2.4.21 eth0=192.168.0.2
> >C = debian sarge + 2.6.0 eth0=192.168.1.2
>
> [...]
>
> >by this configuration i am able to ping (and ssh) eachother A<->B and A<->C
> >but not B<->C
[...]
> If B can access the internet then evidently you have routing enabled.
i changed a lot of configurations and now i cannot recollect which one
allowed me to go to internet by pc B
>
> For any further testing make sure firewall is deactivated.
yes it is
[...]
i can still ping (and do ssh) A<->B A<->C i cannot ping B towards C
and back
i can use internet only from pc A (this after many changes in the
configurations, formerly i could go to internet from pc B too but i
cannot recollect what was the conf i used)
configuration of pc A (debian woody while connected in dialup to my
isp)
topolino:~# less /etc/network/interfaces
# The loopback interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
topolino:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
62.94.14.1 0.0.0.0 255.255.255.255 UH 0 0
0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
0.0.0.0 62.94.14.1 0.0.0.0 UG 0 0
0 ppp0
if it is not connected to my isp i get fron netstat -nr :
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0
0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
configuration of pc B (mandrake 9.2)
[aldo@paperoga aldo]$ less
/etc/netprofile/profiles/default/files/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes
[root@paperoga root]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 eth0
configuration of pc C (debian sarge):
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
up route add default gw 192.168.1.1
down route del default gw 192.168.1.1
paperino:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0
eth0
this configurations obviously are not correct, what should i change?
many thanks for your patience and help
aldo