Hans Vogelsberger:
> Some weeks ago I bought an AMD64 X2 which now I must connect to
> the internet, using my old Pentium 4 as router to the dynamic
> address I receive from my cable provider whenever I boot. Having
> used Testing since it came up in Potato times, I never needed and
> never acquired networking knowledge. Debian did all that for me,
:)
> OLD:
> ====
> # The loopback interface
> auto lo
> iface lo inet loopback
> # The first network card
> up sysctl -w net.ipv4.ip_forward=1
This looks suspicious to me. Which entry does that line belong to? Have
you tried running it manually? You may try putting it into
/etc/sysctl.conf (but I am not sure whether sarge already reads this
file).
> auto eth0
> iface eth0 inet dhcp
> address 192.168.1.2
> netmask 255.255.255.0
> inet_route add default gw 192.168.1.0/24
> up iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0\
> -j MASQUERADE
> #*# Shouldn't these two lines be enough to guarantee
> dhcp access for BOTH computers ??? #*#
This looks weird. If eth0 is card connected to the internet (or modem)
you don't need to set any addresses or routes by hand. Additionally, I
would put that iptables line in another script and put it in
/etc/network/if-pre-up.d/.
J.
--
I want to look younger than my friends so I will fight ageing as long as
I can.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
Attachment:
signature.asc
Description: Digital signature