Re: how to connect two PC's with a cross-over ethernet cable?
On Sat, 2004-08-21 at 15:25, Paolo Alexis Falcone wrote:
[...]
> > But how can I save my current settings so I can quickly restore them?
>
> /etc/network/interfaces is your solution.
Thanks
But can you break it down for me please?
At the moment I have several files in /etc/networks (I have been messing
around with etherconf too much I'm afraid):
--- /etc/network/interfaces ---
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
--- EOF ---
[/etc/network/interfaces.1 and /etc/network/interfaces.3 are identical
to /etc/network/interfaces ]
--- /etc/network/interfaces.2 ---
### 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
netmask
broadcast
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
--- EOF ---
--- /etc/network/interfaces.4 ---
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet dhcp
### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
--- EOF ---
--- /etc/network/interfaces.pre-etherconf ---
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
--- EOF ---
[This obviously doesn't do much but I included it to provide as much
info as I could gather.]
I suppose I will have to create a file /etc/network/interfaces that
contains:
--- new /etc/network/interfaces --
auto lo eth0
iface lo inet loopback
iface eth0 inet static
192.168.0.1
255.255.255.0
iface ppp0 inet ppp
provider dsl-provider
--- EOF --
So I can call ifup eth0 for the "cross-over connection" and ifup ppp0
for the PPPoE connection I have configured already.
Does this look right?
TIA
--
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #349737 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 512MB RAM #
# 9:19pm up 14 days 11:09, 11 users, load average: 0.10, 0.04, 0.01 #
Reply to: