SOLVED: How to configure /etc/network/interfaces WAS: how to connect two PC's with a cross-over ethernet cable?
On Sun, 2004-08-22 at 19:44, John Floren wrote:
[...]
> > If pon doesn't look at /etc/network/interfaces can't I just edit my
> > /etc/network/interfaces to:
> > --- start ---
> > auto lo eth0
> >
> > iface lo inet loopback
> >
> > iface eth0 inet static
> > 192.168.3.1
> > 255.255.255.0
> > --- EOF ---
> >
> > and use pon to activate the DSL (dialup) connection when the laptop is
> > connected to the modem and ifup eth0 when the laptop is connected to the
> > desktop (with the crossover cable)?
[...]
I just tested this and it appears to work!
My /etc/network/interfaces now looks like:
--- start ---
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.3.1
netmask 255.255.255.0
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
--- EOF ---
After using yast to set up the IP address of my desktop to 192.168.3.2
that side of the network was started automatically.
Then I used ifup eth0 on the laptop and (after shutting down shorewall
with 'shorewall clear') I was able to ping from both machines!
Next I pointed my browser on the desktop to 192.168.3.1 and I was able
to use the php interfaces to my MySQL databases!
Also using ssh from the desktop to the laptop works! (Off course now I
have to learn how to use tools like ssh, but I'm very happy to be this
far!
Now I'm going to bring my lan down and reconfigure my desktop so I can
transmit this message...
Well everything seems to be working, I still have a few questions
though, but I'll do some more reading/testing before I start a new
thread about them!
Thanks very much to all who helped to figure this out.
Bram
--
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #349737 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 512MB RAM #
# 8:53pm up 15 days 10:43, 9 users, load average: 0.01, 0.05, 0.07 #
Reply to: