PDA

View Full Version : Can't make My LAN connection working



Axe
07-26-2003, 08:51 AM
Please Help me! I've Realtek 8139 LAN card installed on my Mother Board. Though Knoppix detects the Ethernet card but i'm unable to find any way to configure it, i thought it would be as easy as it's with MS Windows, but i don't know how to get it working. The few things that i know(or are required by Windows at least) are The IP address, Subnet mask, Default Gateway, Host/Domain, DNS Server, besides i donno anything about Linux....please help me :( !

Stephen
07-26-2003, 09:45 AM
Please Help me! I've Realtek 8139 LAN card installed on my Mother Board. Though Knoppix detects the Ethernet card but i'm unable to find any way to configure it, i thought it would be as easy as it's with MS Windows, but i don't know how to get it working. The few things that i know(or are required by Windows at least) are The IP address, Subnet mask, Default Gateway, Host/Domain, DNS Server, besides i donno anything about Linux....please help me :( !

Open a console window (clam shell icon on the taskbar) and type in netcardconfig decline the DHCP then enter the settings required you have all the information you need. If this fails then could you post the output of lsmod, ifconfig -a and maybe lspci -v from the console window just type them in and enter. To get a file you can save to a floppy and use to post from you other OS add > file.txt to the commands eg. lsmod > lsmod.txt this will save the output of the lsmod command to the file lsmod.txt in the current directory which would be /ramdisk/home/knoppix then copy it to the floppy to post it. You may want to post the lsmod command twice both a copy before the netcardconfig and after so we can see if the module for the card is loaded and in use before the command is issued.


Also do you use static direct connection or PPPoE to connect?

Axe
08-22-2003, 04:52 PM
Sorry for replying late.
I tried the Netcardconfig, but still i'm unable to configure the card/connection. Below is the output of the commands: "lsmod", "ifconfig -a ", "lspci -v", it still seems that the results are negative.

knoppix@ttyp0[knoppix]$ Ismod
bash: Ismod: command not found
knoppix@ttyp0[knoppix]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:E6:4B:67
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8507 (8.3 KiB) TX bytes:1710 (1.6 KiB)
Interrupt:11 Base address:0xfc00

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)

knoppix@ttyp0[knoppix]$ ispci -v
bash: ispci: command not found

Please help me to figure out this problem.
Thanx

Stephen
08-22-2003, 08:08 PM
Sorry for replying late.
I tried the Netcardconfig, but still i'm unable to configure the card/connection. Below is the output of the commands: "lsmod", "ifconfig -a ", "lspci -v", it still seems that the results are negative.

knoppix@ttyp0[knoppix]$ Ismod
bash: Ismod: command not found


You are using an i instead of l (L) for the command.


knoppix@ttyp0[knoppix]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:E6:4B:67
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8507 (8.3 KiB) TX bytes:1710 (1.6 KiB)
Interrupt:11 Base address:0xfc00


Here it sees the card but it has no IP address.



knoppix@ttyp0[knoppix]$ ispci -v
bash: ispci: command not found

Please help me to figure out this problem.
Thanx

Here again you are using i instead of l (L).

It looks like the module (IIRC it is the 8139too module) for the card is not loaded you may want to try from a console window sudo insmod 8139too to load the module and then netcardconfig to configure the card. note: I have seen a lot of post with people having problems with the onboard realtek NIC's you may want to disable it and put a card in an open slot if you have one.

Axe
08-24-2003, 08:00 AM
Here's the output of the Lsmod, Ifconfig -a and Lspci -v command, and u were right, i was using I instead of L.
--------------------------------------------------------------
knoppix@ttyp0[knoppix]$ lsmod
Module Size Used by Not tainted
autofs4 8724 1 (autoclean)
parport_pc 24776 1 (autoclean)
lp 7492 0 (autoclean)
parport 22496 1 (autoclean) [parport_pc lp]
af_packet 13448 0 (autoclean)
nls_iso8859-1 2876 1 (autoclean)
nls_cp437 4380 1 (autoclean)
agpgart 34720 0 (unused)
i810_audio 23112 0
ac97_codec 9992 0 [i810_audio]
soundcore 3364 2 [i810_audio]
8139too 17128 0
mii 2128 0 [8139too]
i810_rng 2628 0 (unused)
serial 51876 0 (autoclean)
usb-uhci 21836 0 (unused)
usbcore 57088 1 [usb-uhci]
rtc 6908 0 (autoclean)
cloop 5232 1
knoppix@ttyp0[knoppix]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:E6:4B:67
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2393 (2.3 KiB) TX bytes:1710 (1.6 KiB)
Interrupt:11 Base address:0xfc00

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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:400 (400.0 b) TX bytes:400 (400.0 b)

knoppix@ttyp0[knoppix]$ lspci -v
00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
Flags: bus master, fast devsel, latency 0
Memory at f8000000 (32-bit, prefetchable) [size=64M]
Capabilities: <available only to root>

00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, fast devsel, latency 32
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
Memory behind bridge: fc900000-fe9fffff
Prefetchable memory behind bridge: e4600000-f46fffff

00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 05) (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: 0000d000-0000dfff
Memory behind bridge: fea00000-feafffff
Prefetchable memory behind bridge: f4700000-f47fffff

00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 05)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 05) (prog-if 80 [Master])
Subsystem: Intel Corp.: Unknown device 4856
Flags: bus master, medium devsel, latency 0
I/O ports at ffa0 [size=16]

00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 05) (prog-if 00 [UHCI])
Subsystem: Intel Corp.: Unknown device 4856
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at ef40 [size=32]

00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 05)
Subsystem: Intel Corp.: Unknown device 4856
Flags: medium devsel, IRQ 9
I/O ports at efa0 [size=16]

00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 05) (prog-if 00 [UHCI])
Subsystem: Intel Corp.: Unknown device 4856
Flags: bus master, medium devsel, latency 0, IRQ 10
I/O ports at ef80 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 05)
Subsystem: Intel Corp.: Unknown device 4856
Flags: bus master, medium devsel, latency 0, IRQ 9
I/O ports at e800 [size=256]
I/O ports at ef00 [size=64]

01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR] (rev b2) (prog-if 00 [VGA])
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 11
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at fe9f0000 [disabled] [size=64K]
Capabilities: <available only to root>

02:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at d800 [size=256]
Memory at feaffc00 (32-bit, non-prefetchable) [size=256]
Expansion ROM at feae0000 [disabled] [size=64K]
Capabilities: <available only to root>

02:0b.0 Communication controller: Analog Devices SM56 PCI modem
Subsystem: Analog Devices SM56 PCI modem
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at f47ffc00 (32-bit, prefetchable) [size=256]
Capabilities: <available only to root>

knoppix@ttyp0[knoppix]$
---------------------------------------------------------------
I do not have on-board LAN, rather it's a seperate card, MSWindows shows it as Ethernet 01, whereas Knoppix detectes it on Ethernet 0.

One more thing that i'd like to know's that, how can i log-in as root? cause i've created persistent home on my HD, but whenever i try to open it from home, it says that u do not have enough privilege to access it, that u must be logged-in as root.

Axe
08-25-2003, 09:58 AM
Please help me. i'm hanging in here :(

Stephen
08-25-2003, 09:41 PM
Here's the output of the Lsmod, Ifconfig -a and Lspci -v command, and u were right, i was using I instead of L.
--------------------------------------------------------------
knoppix@ttyp0[knoppix]$ lsmod

8139too 17128 0
mii 2128 0 [8139too]

knoppix@ttyp0[knoppix]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:E6:4B:67
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2393 (2.3 KiB) TX bytes:1710 (1.6 KiB)
Interrupt:11 Base address:0xfc00

The module is getting loaded but not used also the mii tool is being used have you used it to try and set the card or is knoppix using it?





knoppix@ttyp0[knoppix]$ lspci -v

00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 05) (prog-if 00 [UHCI])
Subsystem: Intel Corp.: Unknown device 4856
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at ef40 [size=32]

01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR] (rev b2) (prog-if 00 [VGA])
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 11
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at fe9f0000 [disabled] [size=64K]
Capabilities: <available only to root>

02:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at d800 [size=256]
Memory at feaffc00 (32-bit, non-prefetchable) [size=256]
Expansion ROM at feae0000 [disabled] [size=64K]
Capabilities: <available only to root>

Here you have three devices using the same IRQ this could be the problem is there any way that you can change the IRQ's being used in your BIOS or on the card itself?




I do not have on-board LAN, rather it's a seperate card, MSWindows shows it as Ethernet 01, whereas Knoppix detectes it on Ethernet 0.


This is normal linux usually starts naming devices with 0 instead of 1 and with this being an card instead of onboard NIC you may want to change the slot it is in this could get you a different IRQ for the card when it is detected on boot.


One more thing that i'd like to know's that, how can i log-in as root? cause i've created persistent home on my HD, but whenever i try to open it from home, it says that u do not have enough privilege to access it, that u must be logged-in as root.

I have never used the persistent home but to become root with any command you want to issue you use the sudo in front of the command you may want to start a new thread for this problem.

You may want to try using some cheat codes (http://www.knoppix.net/docs/index.php/CheatCodes) when you get to the boot: prompt like knoppix nousb or maybe noapic to see if that will help with the network card being used.

Another thing you can try is entering your settings manually in the required files and re-starting the networking that way.

The file /etc/network/interfaces is where your settings for the card are contained example file below:

For Static settings


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

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254


You would of course use your settings to edit the file open a console window and sudo gvim /etc/network/interfaces may the changes and save the file.

Your nameservers settings would be in the file /etc/resolv.conf example file:




search wolf
nameserver 192.168.1.10
nameserver 192.168.1.34


You only need the one nameserver line the search of your domain and the extra nameserver are not necessary. Edit the file put in the correct settings and save it then sudo /etc/init.d/networking restart to re-start the network with the new settings. Post the output of any errors that you get so I can see what they say.