Re: A newbie question about networks.
From: Enkidu (enkidu.com_at_com.cliffp.com)
Date: Wed, 04 May 2005 21:48:09 +1200
Tom Wiley wrote:
> I picked up a copy of Knoppix 3.4 (being given out as a Windows rescue
> disk) at an AntiSpam siminar a couple of months ago, without really
> knowing what it was and loaded it onto an old machine. After playing with
> it for something to do during lunches, I really began to get into it.
> To make the story short, I really like it. After downloading version 3.8
> I have installed it as a dual boot on my home machine and it is a blast.
> From lots of surfing, I know that Knoppix is a distribution of Debian so I
> gathered all the Debian books and tutorials that I could find. Here is a
> question that I can't get resolved yet because for some reason this
> version doesn't match any book or article.
> When I boot Knoppix, it sets up my ethernet card via DHCP and I can surf
> without a problem. But as a member of the support staff, I need to use a
> static IP so as to bypass the surf control censor. So I go to
> /etc/network/ to get the interfaces file to add a static member and --oops
> - there is nothing in the interfaces file but an auto lo statement.
> Nothing about a ethernet card or DHCP or whatever. And if I do an "ifdown
> eth0" it tells me that there is no eth0 to down.
> When I build a proper interfaces file with a static ip for the eth0 in
> /etc/network, then ifup and ifdown work and surf's up. It works fine, I
> am just trying to get the answer for my own learning.
> So, I think my question is, what is taking the place of the interfaces
> file in the default installation and where is it?
Well, I don't know how Knoppix does it, but you can set up
the ethernet interface from the command line using
"ifconfig". Typing "ifconfig" by itself will show you your
current set up.
Presumably there's some script somewhere that ifconfig's
your ethernet card.
BTW ifup and ifdown use ifconfig I think.
-- Barzoomian the Martian - http://barzoomian.blogspot.com