A well known problem/bug. Read this post:
http://www.knoppix.net/forum/viewtop...hlight=network
Guys,
I posted this query yesterday on the LAPTOPS forum but over night thought I had better post it here on the Networking forum...
Here's the deal - I'm using a Gateway M500 laptop with an HDD installation of Knoppix v-3.6 and the 2.6.7 kernel. So far I have been successful with setting things up, including the wireless (Orinoco/Lucent). However, the wireless is the problem...
I have a small LAN laid out here in my home and I use a static IP on ALL of the systems on the LAN. When I configured the networking here in Knoppix v-3.6 I DID set it to use a static IP. All was well until I rebooted - when I checked the IP after a reboot, it shows it using a DHCP defined IP and NOT the statically set IP I defined.
OK, now for my observations...
On bootups I can see a line saying that /etc/network/ifstate is being 'cleaned'. All lines displayed afterwards that deal with the networking says that the NIC/WiFi (eth2) is no configured and so it fails to load the config I had setup. I have looked in /var/log for a log containing the text displayed during bootups to no avail. And since I'm barely above a novice, I don't understand all that is being said in the displayed text.
Now for my temporary fix...
After login, I open konsole, run 'vi /etc/network/ifstate' and add 'eth2=eth2'. Next, I run 'ifdown eth2' to take the wireless down, then I run 'ifup eth2' to bring the wireless back up. Doing this will always use my original configuration which uses the static IP.
After I do this, all is well once again - until I reboot! Then '/etc/network/ifstate' will be 'cleaned' once more and the wireless will revert back to using DHCP.
Guys, any suggestions on how to correct this? It would be nice to have it reboot and still be using the static IP...
Thanks...
P.S. I did find a post suggesting that the NIC's config info be added to the /etc/init.d/networking script, I tried this with the exact same results...
A well known problem/bug. Read this post:
http://www.knoppix.net/forum/viewtop...hlight=network
Shah
Thanks for the info - but it took me nowhere! I followed your instructions on your refererence post to the letter but the wireless (eth2) is still brought up in DHCP mode - I need it to be in STATIC mode.
FYI - Knoppix says that I have three networking devices, eth0 is the firewire, eth1 is the NIC (Realtek), and eth2 is the wireless (Orinoco/Lucent). I do not have eth0 or eth1 configured. I did at one time but Knoppix brought all three up on bootup, even tho' I use 'no' in the 'onboot = ' line of the config files for eth0 and eth1. You see, I use the wireless network device only.
I have a question for you shah, what would cause 'eth2=eth2' to be removed from /etc/network/ifstate on a boot up? Every time I boot up I see errors saying eth2 is not configured. On login I can add the line,as I stated in my original post. When I do add this line, ifup and ifdown commands begin to work. If I do not add 'eth2=eth2' to the /etc/network/ifstate script, ifup and ifdown will produce a 'device not configured' error message, the same message I see on boot ups. So I can't help but wonder if this script, /etc/network/ifstate, has some bearing on the problem?
This is all guess work on my part but I have to wonder, why is 'eth2=eth2' being removed from /etc/network/ifstate???
Mike
ifup and ipfdown is limited in their capabilities of configuring network interface. That's why we use ifconfig.
It is crucial for you to edit your /etc/network/interfaces to set your eth to use static or dynamic ip because ifup read from this file. It is better to set everything in /etc/network/interfaces rather then using ifstate.In some cases, the state maintained by ifup and ifdown in /etc/network/ifstate might be inconsistent with the actual state of the interfaces
Shah,
Thanks for letting me know the value of /etc/network/ifstate. Here is the contents of my /etc/network/interfaces script:
<beginning of script>
# /etc/network/interfaces -- configuration file for ifup, ifdown
# The loopback interface
# automatically added when upgrading
auto lo eth2
iface lo inet loopback
iface eth2 inet static
address 192.168.1.210
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
<end of script>
As you can see, eth2 is already set to use a static IP.
Shah, I have another guess (the only word that applies here) - could Knoppix be looking for a hardwired connection for it's networking device, and not finding one, goes off on a bender and thus gets the network devices configs confused? eth0 and eth1 are NOT configured and things got worse when they were configured...
Another thing, I have enabled syslogd but I cannot find the boot up screen dump! I have looked in /var/log/kern.log, syslog, lastlog, messages, lastlog, faillog, dmesg, etc, etc, etc and still haven't been able to find the boot up error messgaes. I went through them again yesterday and search for any 'failed', 'error' etc and came up with empty as far as the NICs are concerned, and yet I can see 'device not configured' concerning the wireless (eth2).
Shah, I have been chasing this little problem since v-3.4 and still haven't figured it out. Since I'm barely above a noobee, I don't think I ever will. But I will keep on trying to figure it out with the help of people like you. Thanks again...
Mike
eth0 and eth1 will always detected by knoppix, that's the way knoppix are, especially when you did a knoppix or beginners hdd install style.
The heart of knoppix is it's hardware detection script ( knoppix-autoconfig ). Eventhough eth0 and eth1 is detected, it will not become a problem because it will "backgrounding" that device if it hasn't been set. Unlike other "big name" distro, it will take several minutes to figure out why this device hasn't been set.
There is a small problem in knoppix-autoconfigure, it tends to reset what you have set in your /../interfaces everytime it boots. Actually I'm not using knoppix but kanotix. Kanotix seem has clear out this problem.
What I did to overcome this problem is to edit /etc/init.d/knoppix-autoconfig.
Your /etc/network/interfaces looks fine.
What you need to do is edit /etc/init.d/knoppix-autoconfig:
[b]search and comment out line that reads: pump -i $DEVICE >/dev/null 2>&1 &
and add line : /etc/init.d/networking restart
ex:
broadcasting for IP.${NORMAL}"
trap 2 3 11
#pump -i $DEVICE >/dev/null 2>&1 &
/etc/init.d/networking restart
trap "" 2 3 11
sleep 1
echo " ${BLUE}(Backgrounding)${NORMAL}"[b]
This way your network card will be reset and restart with the value in /../interfaces.
Reboot after you have done the above.
Good luck![]()
![]()
Shah,
I tried this particul fix of your's early on but it did nothing for me. However, the knoppix-autoconfig that's in v-3.6 seems to be a little different than you depict. Here is the section in the knoppix-autoconfig used in v-3.6 you are aluding to:
<code>
# Fat-Client-Version: DHCP Broadcast for IP address
if checkbootparam "nodhcp"; then
echo " ${BLUE}Skipping DHCP broadcast/network detection as requested on boot commandline.${NORMAL}"
else
NETDEVICES="$(awk -F: '/eth.tr.:/{print $1}' /proc/net/dev 2>/dev/null)"
for DEVICE in $NETDEVICES
do
echo -n " ${GREEN}Network device ${MAGENTA}$DEVICE${GREEN} detected, DHCP broadcasting for IP.${NORMAL}"
trap 2 3 11
ifconfig $DEVICE up >/dev/null 2>&1 ; pump -i $DEVICE >/dev/null 2>&1 &
trap "" 2 3 11
sleep 1
echo " ${BLUE}(Backgrounding)${NORMAL}"
done
fi
<code>
The line you suggest to be rem'ed out is not written the same as you depict. However, the script knoppix-autoconfig.orig DOES have your line. My question now is do I rem out the complete line or just the part of it that is in bold. I tried the former to no avail. I'm not a programmer - I have seen the semi-colon (used as a rem character, in place of the hash (#) but I do not think it is used here as a rem character.
Shah, any other ideas will be tried. Hell, I even created my on script to be run a boot up to recreate ifstate - of course it didn't fix anything, just made it easier for me to take the wireless down (ifdown eth2) and back up (ifup eth2). When I do this, the wireless will THEN be using a static IP. May not be pretty but I no longer need to edit ifstate before being able to run these commands - I'm a lazy sort
Thanks again!
Mike
Try commentedout : #ifconfig $DEVICE up >/dev/null 2>&1 ; pump -i $DEVICE >/dev/null 2>&1 &
or try create script like this:
#!/bin/sh
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth2 down
/etc/init.d/networking stop
ifconfig eth2 up
/etc/init.d/networking start
**only add eth0 and eth1 if you don't want to use it.
name it to what ever you wan't ex: mynet.sh and save it in /etc/init.d
and run update-rc.d mynet.sh defaults so it can run on boot. To remove , run update-rc.d -f mynet.sh remove .
![]()
Hello again Shah!
Well, I had some success with you second idea in your last post - your mynet.sh script. However, I did not have any luck with you commands used in bring up eth2. Shah, for some reason, the commands 'ifconfig eth2 down' and 'ifconfig eth2 up' have never really worked well for me. I know what you said about the /etc/network/ifstate use but it seems to be very important on this system. I have found the commands 'ifdown eth2' and 'ethup eth2' work much better in disabling and enabling eth2 - as long as the line 'eth2=eth2' is listed, of course.
Here is what I came up with for my version of your mynet.sh:
<beginning of code>
#!/bin/sh
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth2 down
/etc/init.d/networking stop
#ifconfig eth2 up
/etc/init.d/networking start
ifdown eth2
ifup eth2
<end of code>
As you can see, I did try your command to bring up eth2 however, as I have stated, the 'ifconfig eth2 up/down' never really works. Yeah, the WiFi will come down and be brought up but will always fail to receive - transmitting is OK but receiving is nil.
While I now have eth2 running with a static IP upon login (with your help), there still remains a problem with the scripts that controls the NICs, especially the wireless-type NICs. I will keep looking into this, for sure. Gotta understand this...
FYI - the line 'ifdown eth2' - when I tried the script withOUT this line, a 'device already configured' error was produced during boot up. With this line, the error does not appear. To eliminate the error message is the only reason for it's use, as the script will do what I need without this line.
If you find out anything, anything at all, concerning this little problem, please, post it here - I will keep watching this thread.
Thanks for your help shah!
Mike
I failed to mention - during boot ups and shutdowns the 'device not configured' errors are displayed in reference to eth2 but the device is very definately working otherwise me posting this would really be an accomplishment!
Ciao!
How about this:
#!/bin/sh
ifdown eth0
ifdown eth1
ifdown eth2
/etc/c/init.d/networking stop
ifup eth2
/etc/init.d/networking start
On receiving issue, try check your gateway in /etc/network/interfaces. Could it be wrong. Should it be your AP ip?Another thing to check is your isp DNS. Check in /etc/resolv.conf.
The reason is because networking has started, meaning your eth2 has been set, without ifdown eth2, you will try to set twice that eth2. You should set your eth2 (ifup) before networking start line.FYI - the line 'ifdown eth2' - when I tried the script withOUT this line, a 'device already configured' error was produced during boot up. With this line, the error does not appear. To eliminate the error message is the only reason for it's use, as the script will do what I need without this line.
![]()
![]()

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays
$349.99
Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays
$649.99
Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00
DELL 6TB 7.2K 12Gbps 3.5" SAS HUS726060AL5214 P/N 0F22909 (wiped and tested)
$59.00
Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays
$259.99
Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w
$174.95
Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w
$359.99
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99
Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99
Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid
$699.00