PDA

View Full Version : Networking



anthonywandeto
07-24-2004, 06:54 PM
Wassups, of course for this type of question you'll realize am a newb. Knoppix cant detect my network card despite recognizing it as a 3Com on "lspci -v" listing. When I try configuring it, "netcardconfig" it simply shows that there's no supported network cards found. Is it that I have to get drivers or what's the soln?? Help!

DuckDodgers
07-24-2004, 08:53 PM
Can you provide the actual model of the 3com network card?
You may find the information from the following link somewhat helpful.
http://www.tldp.org/HOWTO/Ethernet-HOWTO-4.html

illuminatix
07-25-2004, 05:38 PM
Greetings all,

I am quite new to Knoppix and Linux in general and would like alittle help on this one.

I am unable to setup KNoppix 3.4 to get on the internet. I run a p4 2GHz sysetm with realtek rtl8139 family fast ethernet nic and a motorola SB5100 cable modem. I've gone through the forum to pick out the relevant threads and has tried to boot with knoppix noapic, but it does seem to work.

Knoppix could detect my ethernet nic but just refused to work. It keep saying "Network unreachable". Below is the log of the things I have tried so far and the output.

$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)

$ lspci -v
0000:00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 11)
Subsystem: Asustek Computer, Inc.: Unknown device 8088
Flags: bus master, fast devsel, latency 0
Memory at f8000000 (32-bit, prefetchable) [size=64M]
Capabilities: <available only to root>

0000:00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 11) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, fast devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: ea800000-ebefffff
Prefetchable memory behind bridge: ec000000-f7ffffff

0000:00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 01) (prog-if 00 [UHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 8089
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at b800 [size=32]

0000:00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 01) (prog-if 00 [UHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 8089
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at b400 [size=32]

0000:00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 01) (prog-if 00 [UHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 8089
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at b000 [size=32]

0000:00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
Subsystem: Asustek Computer, Inc.: Unknown device 8089
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at ea000000 (32-bit, non-prefetchable) [disabled] [size=1K]
Capabilities: <available only to root>

0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev 81) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: e9000000-e9ffffff
Prefetchable memory behind bridge: ebf00000-ebffffff

0000:00:1f.0 ISA bridge: Intel Corp. 82801DB (ICH4) LPC Bridge (rev 01)
Flags: bus master, medium devsel, latency 0

0000:00:1f.1 IDE interface: Intel Corp. 82801DB (ICH4) Ultra ATA 100 Storage Controller (rev 01) (prog-if 8a [Master SecP PriP])
Subsystem: Asustek Computer, Inc.: Unknown device 8089
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at <unassigned>
I/O ports at f000 [size=16]
Memory at 40000000 (32-bit, non-prefetchable) [size=1K]

0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 01)
Subsystem: Asustek Computer, Inc.: Unknown device 8089
Flags: medium devsel, IRQ 17
I/O ports at e800 [size=32]

0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV250 If [Radeon 9000] (rev 01) (prog-if 00 [VGA])
Subsystem: Giga-byte Technology: Unknown device 4010
Flags: bus master, stepping, 66MHz, medium devsel, latency 64, IRQ 16
Memory at f4000000 (32-bit, prefetchable) [size=64M]
I/O ports at d800 [size=256]
Memory at eb000000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at f3fe0000 [disabled] [size=128K]
Capabilities: <available only to root>

0000:01:00.1 Display controller: ATI Technologies Inc Radeon RV250 [Radeon 9000] (Secondary) (rev 01)
Subsystem: Giga-byte Technology: Unknown device 4011
Flags: bus master, stepping, 66MHz, medium devsel, latency 64
Memory at ec000000 (32-bit, prefetchable) [disabled] [size=64M]
Memory at ea800000 (32-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: <available only to root>

0000:02:03.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
Subsystem: Asustek Computer, Inc. CMI8738 6ch-MX
Flags: bus master, stepping, medium devsel, latency 32, IRQ 21
I/O ports at a800 [size=256]
Capabilities: <available only to root>

0000:02:0a.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
Subsystem: Conexant: Unknown device 2002
Flags: bus master, medium devsel, latency 32, IRQ 22
Memory at e9800000 (32-bit, non-prefetchable) [disabled] [size=64K]
I/O ports at a400 [disabled] [size=8]
Capabilities: <available only to root>

0000:02:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Compex FN22-3(A) LinxPRO Ethernet Adapter
Flags: bus master, medium devsel, latency 32, IRQ 23
I/O ports at a000 [size=256]
Memory at e9000000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: <available only to root>

[b]knoppix@ttyp0[knoppix]$ lsmod
Module Size Used by Not tainted
radeon 108484 15
autofs4 8756 1 (autoclean)
af_packet 13544 0 (autoclean)
nls_iso8859-1 2844 0 (autoclean)
nls_cp437 4348 0 (autoclean)
agpgart 42660 3
cmpci 36404 1
gameport 1388 0 [cmpci]
soundcore 3428 4 [cmpci]
8139too 13736 0
mii 2240 0 [8139too]
crc32 2816 0 [8139too]
serial 52100 0 (autoclean)
pcmcia_core 39840 0
thermal 6564 0 (unused)
processor 8976 0 [thermal]
fan 1568 0 (unused)
button 2508 0 (unused)
battery 5888 0 (unused)
asus_acpi 8748 0 (unused)
ac 1824 0 (unused)
rtc 7036 0 (autoclean)
cloop 8740 2
ieee1394 183076 0
usb-storage 61696 0 (unused)
usb-uhci 21644 0 (unused)
usbcore 57600 1 [usb-storage usb-uhci]
ataraid 6180 0
ide-cd 28512 0
ide-scsi 8816 1

knoppix@ttyp0[knoppix]$ sudo netcardconfig
ifconfig eth0 202.136.XXX.102 netmask 255.255.255.0 broadcast 202.136.XXX.255 up
route add default gw 202.136.8.1
SIOCADDRT: Network is unreachable
Setting Nameserver in /etc/resolv.conf to 202.136.3.120
Adding Nameserver to /etc/resolv.conf: 202.136.3.121
Done.

knoppix@ttyp0[knoppix]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:1E:A6:00
inet addr:202.137.10.122 Bcast:202.137.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4946 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:384721 (375.7 KiB) TX bytes:1548 (1.5 KiB)
Interrupt:23 Base address:0x9000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:600 (600.0 b) TX bytes:600 (600.0 b)


Thanks for any help
Yours
Ethan

shah
07-26-2004, 04:10 AM
Illuminatix

Check you /etc/network/interfaces:
It should look like this:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback


iface eth0 inet static
address 202.136.XXX.102
netmask 255.255.255.0
network 192.136.xxx.0
broadcast 202.136.XXX.255

shah
07-26-2004, 04:18 AM
If you have problem of static ip ressetting everytime you boot, read this post:
http://www.knoppix.net/forum/viewtopic.php?t=12067&postdays=0&postorder=asc&start=0

Happy knoppix :D :D :D :D :D :D

illuminatix
07-26-2004, 12:43 PM
Hi Shah,

thanx for the help. I've taken a look inside my /etc/network/interfaces and this is the content.

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback


iface eth0 inet static
address 202.136.XXX.102
netmask 255.255.255.0
network 202.136.XXX.0
broadcast 202.136.XXX.255
gateway 202.136.9.1

I tried changing the network to 192.136.XXX.0 and the result remains the same Network is unreachable

I have also added in my DNS into /etc/resolv.conf

I really have no idea how to get this thing to work. Oh, by the way, I'm booting knoppix off the cd and I've made a copy of the /etc/network/interfaces on a floppy.

Help! Somebody
Help! Anbody
Help!

Thanks
Yours
Ethan[/b]

shah
07-27-2004, 03:30 AM
Try change your ip address to class-c type which are standard for private network.
The ip address for this class : 192.168.x.x

Example:

Your /etc/interfaces could look like this:
# /etc/network/interfaces -- configuration file for ifup(, ifdown(

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback


iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
*You can remove the gateway since you connected directly to net.

You /etc/resolv.conf:
nameserver *
nameserver * *what your ISP assigned to you

sokminer
07-27-2004, 01:47 PM
You might try this
#route add default gw 192.168.xxx.xxx
Use the IP for your gateway.

illuminatix
07-28-2004, 07:02 AM
Hi and thanks again to all,

Ok, I first tried to enter in everything as before and added in my default gateway with 192.168.XXX.XXX with XXX given by my ISP and the output is NETWORK IS UNREACHABLE as shown below.

knoppix@ttyp0[knoppix]$ sudo netcardconfig
ifconfig eth0 192.168.XXX.102 netmask 255.255.255.0 broadcast 192.168.XXX.255 up
route add default gw 192.168.10.1
SIOCADDRT: Network is unreachable
Setting Nameserver in /etc/resolv.conf to 202.136.XXX.XXX
Adding Nameserver to /etc/resolv.conf: 202.136.XXX.XXX
Done.

So after that I decided to omit the default gateway by not entering anything as suggested by Shah and voila! There is no more NETWORK IS UNREACHABLE. I then proceed to ping www.google.com, but it failed. I do not understand what this means. Does it mean my ethernet Nic and modem is finally working? If so, how come I can't ping out?


knoppix@ttyp0[knoppix]$ sudo netcardconfig
ifconfig eth0 192.168.10.122 netmask 255.255.255.0 broadcast 192.168.10.255 up
auto lo eth0
Setting Nameserver in /etc/resolv.conf to 202.137.3.120
Adding Nameserver to /etc/resolv.conf: 202.137.121
Done.

knoppix@ttyp0[knoppix]$ ping www.google.com
ping: unknown host www.google.com

Any ideas why it still doesn't work? I'm feeling a little st00pid now...argh..

Yours
Ethan

shah
07-28-2004, 11:00 AM
illuminatix

I'm not sure how cable modem works (log in, username,password)because I'm using ppoe for DSL.I believe you haven't set how your modem going to login to your isp. I'm not familar how this was done with cable modem. What i have read, different isp use different protocol.Some use pppoe,some use pppd,pap, some needs dhcp client and some don't allow fixed i.p address. You need to clear this with your cable operator.

If your isp using auto login (without username & password), you cannot use fixed i.p. Your i.p will be provided to you everytime you connect. If this is the case, you need to run network card configuration again (netcardconfig) and choose "use dhcp broadcast".

If your i.s.p provide you with "username and password", you could try setup pppoe or ppp.


Setting Nameserver in /etc/resolv.conf to 202.137.3.120
Adding Nameserver to /etc/resolv.conf: 202.137.121

I believe this is wrong: 202.137.121, should be 202.137.3.121.

Good luck
:D

illuminatix
07-28-2004, 02:11 PM
Hi again Shah,

Thanks again for taking up your time. I erally haven't a clue here, seriously. I was given a fixed IP adress, subnet, gateway and 2 DNS by my ISP. I don't have any username or password. I have tried calling up my ISp, and the people there don't have clue. I'll keep on trying and trying and trying again, I guess.

One thing is though, when I subscribe up to this ISP, they asked me for my cable modem MAC ID.

Yours
Ethan

shah
07-28-2004, 03:09 PM
One thing is though, when I subscribe up to this ISP, they asked me for my cable modem MAC ID.

I believe they didn't ask for cable modem MAC ID but your ethernet card MAC ID. Meaning you cannot change your ethernet card. You should use the assign MAC ID card only.

This is something I found from net:


If you have a Motorola CyberSurfr cable modem you will need to press the reset key on the back of the modem if you switch network cards. The ethernet card hardware address is read by the modem and once it is setup if the card is switched it must be reset.Just press the reset key for 10+ seconds and it will reread.


I have found that with the new system your NIC's MAC address must match what the cable system has. That is the Linux system you plug into the cable modem must use the same MAC that is programmed into the board.

If you didn't switch your network card (nic) then you could try this step:

1) Edit /etc/resov.conf
nameserver 202.137.3.120
nameserver 202.137.3.121

2) Edit /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(, ifdown(

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback


iface eth0 inet static
address 202.136.XXX.102
netmask 255.255.255.0
network 202.136.XXX.0
broadcast 202.136.XXX.255
gateway 202.136.9.1

3) Edit /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
MACADDR="*" *Your MAC ID
IPADDR=202.136.XXX.102
NETMASK=255.255.255.0
NETWORK= 202.136.XXX.0
BROADCAST=202.136.XXX.255
GATEWAY 202.136.9.1
ONBOOT=yes

4) In root shell run command:
/etc/init.d/networking restart
ifconfig -a

**Never quit **Take it as a challenge**That what makes me stay with Linux**

illuminatix
07-29-2004, 08:35 PM
Hi Shah,

Thanx for the encouragement, no, I'm not intending to give up yet..hehe..
I've tried the scripts, it doesn't work..I'm suspecting I might get the MAC address wrong. I went over to http://192.168.100.1/address.html to check out my mac address and man, there're plenty of them HFC MAC address, Ethernet MAC address, Known CPE mac address(learned and Self). I'll try them out, and hopefully it can work.

There is a curious thing I've noticed, when I looked through the dmesg of the loading of knoppix, it says Eth0 is detected and DHCP is on, any idea what it means? If that is causing the problem, any way to turn DHCP off during load up?

Thanks again

Yours
Ethan

shah
07-30-2004, 07:45 AM
[quoteThere is a curious thing I've noticed, when I looked through the dmesg of the loading of knoppix, it says Eth0 is detected and DHCP is on, any idea what it means? If that is causing the problem, any way to turn DHCP off during load up?[/quote]
Don't worry about that, it's knoppix hardware detection doing it's thing, detecting your network card and starting network configuration.

You mac address can be found when you run command:
ifconfig eth0

Your mac address is beside HWaddr.

tearinghairout
07-30-2004, 12:15 PM
I disagree with Shah on the mac address issue. I think that the mac address you were meant to give them is the HFC mac address of your cable modem. This is how they authenticate you (or your cable modem at least) in lieu of any sort of login. But I guess the real question is, what mac address did you give your ISP when they asked?

You have said that you were given a fixed IP address, subnet, gateway, DNS etc by your ISP, but you did not make it clear if you were supposed to manually configure these settings or if your ISP will issue them via DHCP. This has a big bearing on how you should configure things.

I notice in some of your earlier examples that IP addresses you were showing weren't always consistent.
Whatever your addresses are meant to be, I would expect that the first 3 numbers of your IP address, your network address, your broadcast address and your default gateway should all be the same.
Additionally, the 4th part of the network address is usually 0, the broadcast 255, the gateway (conventionally, but not necessarily) 1, and the IP could be anything in between.
Also, given that your modem does not do NAT, forget about 192.168 addresses.

One last thing. If I were you I would start by forgetting about scripts like netcardconfig etc, and set it all up manually using the commands ifconfig, netstat, route, pump etc. This will be a good learning experience for you (don't worry, it's really not that hard if you take one step at a time, and we have a lot of patience helping people who help themselves (just ask cuddles about her winmodem)). When you are confident you understand what these commands do, then you can start using the more "friendly" commands, and you will be in a position to at least understand what they are trying to achieve to diagnose when they don't work.

illuminatix
07-30-2004, 06:17 PM
hi Shah and Tearinghairout(an apt description of what I'm going thru now..hehe)

The fixed IP address, default gateway, DNS given by my ISP were to be manually configured by myself.

During the subscription, I was asked to give my cable modem HFC MAC address and also my USb CPE MAC address.

I will keep on trying, and I'll bother you all again, if I'm still heading nowhere, and thanx alot.

Yours
Ethan

illuminatix
07-30-2004, 06:27 PM
Oh, another thing, the addresses that I was given, only the first 2 numbers are the same, as given below

IP:202.136.10.102
Gateway: 202.136.9.1
DNS: 202.136.3.120 and 202.136.3.121

that's all the information I was given by my ISP

tearinghairout
07-30-2004, 10:42 PM
Hi Illuminatix

I originally came up with name TearingHairOut for exactly that reason. I was having a problem (not with Knoppix, I think it was with MS-Access) and had to register with ExpertsExchange, and the THO seemed fitting at the time.

Since only the first 2 numbers are the same, did they mention anything about a netmask?
Did they give you a number like 255.255.0.0?
Did they specify the IP addresses in a format like 202.136.10.102/16?
From my understanding of TCP/IP - if you are using the conventional C class address - the IP address and gateway you have can't possibly work together.

I would double check them with the ISP.

Do these addresses work in Windows? Maybe your ISP can't/won't help you with Knoppix, but if you are in a position to dual boot into Windows, and you tell them you are using Windows, then they may be a bit more helpful.

illuminatix
07-31-2004, 05:41 PM
Hi again Tearinghairout,

Yup, those addresses works just fine in the WinXP box, I'm running. The Netmask given is 255.255.255.0

The problem I faced here is that the people working in the ISP are not very tech savvy as I am currently in Indonesia. I've tried asking for help through translation ( I can't speak indonesian myself), but the people here either just can't bothered or they don't know anything what they are up with.

Yours
Ethan

tearinghairout
08-01-2004, 01:23 AM
If the IP and gateway addresses are correct as
IP:202.136.10.102
Gateway: 202.136.9.1
then you could try changing your netmask to 255.255.0.0

If that doesn't work, then can you please post the output of the following commands:
'netstat -rn' from both your working XP and also from Knoppix
'ifconfig' from Knoppix
'ipconfig' from XP

shah
08-01-2004, 10:52 AM
illuminatix

I did some googling about your motorola modem, I found out that if you use usb interface it won't work on linux. You need a connection through your nic card.
The question is:
Is your nic connect to your modem or to other pc you have?
Read this Q&A:
http://www.mail-archive.com/mhvlug@lists.dague.net/msg00163.html

illuminatix
08-02-2004, 03:41 PM
Halleluia!

Thanx Shah and Tearingmyhair, I've finally got my knoppix online! yeah, the thing is I have to only changed my netmask to 255.255.0.0

Cheers!
Ethan