mobad
08-27-2004, 08:56 PM
hi there,
im just trying my first steps with knoppix(linux in general) so far and encountering the first problems with setting up the network config of my notebook. i ask for patience :wink: first problem is after installing knoppix on hdd there is slight problem with starting the network functionally. at the boot screen i can see network cards are properly recognized and ip-adresses get assigned. but after starting flux and trying to ping some host on my lan > timeout.
ifconfig shows me the nics are recognized but not configured (no assigned ip adresses...). then i use "/etc/init.d/networking start" and voilá it starts moving ;) strange thing is it says the devices are already configured :? my first question is: how to configure this properly?
so fortuna is gentle and allows me to ping clients on the lan. but here comes the second problem. i cant get a working inet connection. no ping possible to www.google.com (dns works). my first thought on this since lan works: router config problem. but hey it works on my 2nd ! winXP partition. so i cross-checked the router config and the knoppix network config for discrepancies. nothing unusual at all :?
the problem lies within the routing. there are three nics installed and configured for network access - ethernet eth2 and wifi eth0, wifi eth1(intel2100bg - not working..yet). as long as my wifi card eth0 is "up" (but not connected), i can resolve hostnames from inet, but cant reach them (e.g. via ping, http,...). when the wlan adapter eth0 is "down", it works via eth2. whats going on here? somebody help pls.
/etc/network/interfaces
-----------------------------
auto lo eth2 eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.22
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1 >>> #wlan-router#
iface eth2 inet static
address 192.168.0.21
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
----------------------------------------------#
/etc/resolv.conf
------------------
nameserver 192.168.0.1
----------------------------------------------#
eth0 activated:
#route -n
---------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 U 0 0 0 eth2
----------------------------------------------------------------------------------#
eth0 deactivated
#route -n
----------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 U 0 0 0 eth2
how and in what file to configure the default routing entrys?
my writing style is confusing and my english sucks...but i hope u can help :D
thx & greetz
mobad
im just trying my first steps with knoppix(linux in general) so far and encountering the first problems with setting up the network config of my notebook. i ask for patience :wink: first problem is after installing knoppix on hdd there is slight problem with starting the network functionally. at the boot screen i can see network cards are properly recognized and ip-adresses get assigned. but after starting flux and trying to ping some host on my lan > timeout.
ifconfig shows me the nics are recognized but not configured (no assigned ip adresses...). then i use "/etc/init.d/networking start" and voilá it starts moving ;) strange thing is it says the devices are already configured :? my first question is: how to configure this properly?
so fortuna is gentle and allows me to ping clients on the lan. but here comes the second problem. i cant get a working inet connection. no ping possible to www.google.com (dns works). my first thought on this since lan works: router config problem. but hey it works on my 2nd ! winXP partition. so i cross-checked the router config and the knoppix network config for discrepancies. nothing unusual at all :?
the problem lies within the routing. there are three nics installed and configured for network access - ethernet eth2 and wifi eth0, wifi eth1(intel2100bg - not working..yet). as long as my wifi card eth0 is "up" (but not connected), i can resolve hostnames from inet, but cant reach them (e.g. via ping, http,...). when the wlan adapter eth0 is "down", it works via eth2. whats going on here? somebody help pls.
/etc/network/interfaces
-----------------------------
auto lo eth2 eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.22
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1 >>> #wlan-router#
iface eth2 inet static
address 192.168.0.21
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
----------------------------------------------#
/etc/resolv.conf
------------------
nameserver 192.168.0.1
----------------------------------------------#
eth0 activated:
#route -n
---------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 U 0 0 0 eth2
----------------------------------------------------------------------------------#
eth0 deactivated
#route -n
----------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 U 0 0 0 eth2
how and in what file to configure the default routing entrys?
my writing style is confusing and my english sucks...but i hope u can help :D
thx & greetz
mobad