PDA

View Full Version : Which file to edit for configuring LAN



leenux
12-02-2004, 09:29 PM
Hi,
I have installed Knoppix to my Hard Drive. Since knoppix is based on Debian I followed the methods used to configure a LAN on Debian described on this O' Reilly web-page http://www.oreilly.com/catalog/debian/chapter/book/ch10_02.html.

It works perfectly when I use the "ifconfig" and the "route" commands. However I'd like to know which configuration file to add these commands to so that my LAN connection is configured at start-up. The file /etc/init.d/network is missing on Knoppix and has the file /etc/init.d/networking in its place. However adding the "ifconfig" and the "route" commands with the requisite arguments at the end of that file didn't help.

Thanks.

ghaze
12-02-2004, 11:33 PM
/etc/network/interfaces
man interfaces
An example with eth0 brought up automatically at boot,
using dhcp

-------------------------------------------------------------
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
------------------------------------------------------------
wireless-no auto for either wlan0 or eth0
use ifup and ifdown

------------------------------------------------------------
auto lo
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid youressid
wireless_channel 6
wireless_enc on
wireless_key XX:XX:XX:XX:XX

------------------------------------------------------------

leenux
12-04-2004, 09:18 PM
Thanks a lot :) . It worked perfectly and I learned something new.

killerclown
12-06-2004, 02:53 PM
Hey ghaze !
What if I want af fixed IP-address ?
I am getting tired of haveing til reconfigure my NIC every time I boot :)

/KillerClown

ghaze
12-07-2004, 01:11 AM
What if I want a fixed IP-address ?


It's in the manual page
man interfaces

supercleanse
12-08-2004, 04:49 AM
I'm remastering a CD and it doesn't seem to ever run the /etc/network/interfaces file (my hard drive installation works perfectly) when I boot the cd. How do I get the CD to actually bring up the network properly (I'm actually trying to bring up a wireless interface)? I even tried to put a link to /etc/init.d/networking in the rc*.d directories but that doesn't work at all. Does KNOPPIX (when booted from the CD) even run through the rc* directories?