LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   LAN K.O. on slack 10.2 (http://www.linuxquestions.org/questions/slackware-14/lan-k-o-on-slack-10-2-a-406652/)

gusgoose_it 01-22-2006 05:03 PM

LAN K.O. on slack 10.2
 
newbie on slackware, I installed 10.2 on my PC with dual OS, with Win XP. My PC is on a LAN, connected with a eth0 ADSL router. While windows are able to connect with internet, slack are not. I configured LAN card with netconfig as static IP or DHCP without results. Can you help me? thanks from italy.
I enclose some info and netstat -rn, lspci, ifconfig -a.

LAN card> Realtek RTL 8139
Router> Hamlet wireless ADSL broadband router with 4-port switch firewall built-in

root@jake:~# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

root@jake:~# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-760 [IGD4-1P] System Controller (rev 13)
00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-760 [IGD4-1P] AGP Bridge
00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:04.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:04.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 16)
00:04.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 16)
00:04.4 Non-VGA unclassified device: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 02)
00:09.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 02)
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:0d.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
00:0d.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
00:0d.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
01:05.0 VGA compatible controller: Matrox Graphics, Inc. G400/G450 (rev 82)

root@jake:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:28:E5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9

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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1248 (1.2 Kb) TX bytes:1248 (1.2 Kb)

win32sux 01-22-2006 06:45 PM

Quote:

Originally Posted by gusgoose_it
root@jake:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:28:E5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9

your interface hasn't received it's address yet...

- did you reboot the PC after setting the card to DHCP??

- do you have the package dhcpcd installed??

- did you uncomment the line for the module in your /etc/rc.d/rc.modules file??? it should look like:
Code:

/sbin/modprobe 8139too
- what does your /etc/rc.d/rc.inet1.conf file look like??

gusgoose_it 01-23-2006 05:39 PM

thanks Win32SUX
1) I have installed the package DHCPCD (I have controlled with pkgtool)
2) I rebooted the PC after setting the card to DHCP
3) I decommented now the line indicated, that is "/sbin/modprobe 8139too"
4) "/etc/rc.d/rc.inet1.conf" looks like:

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

Woodsman 01-23-2006 05:46 PM

Quote:

# Default gateway IP address:
GATEWAY=""
Try adding the IP address of your router here. Then run the rc.inet1 script again.

win32sux 01-23-2006 07:39 PM

woodsman, wouldn't having to input IP configuration details like that kinda defeat the purpose of DHCP??

gusgoose_it, did you get it to work?? your last post doesn't really say wether you got it working or not... :confused:

gusgoose_it 01-24-2006 03:53 AM

I put the IP address on "GATEWAY" and run the script again without result,
it doesnt work
The incredible thing is that before slack I had in the same partition SuSE 10 and it worked

Quote:

root@jake:/etc/rc.d# ./rc.inet1
dhcpcd: MAC address = 00:e0:4c:69:28:e5

root@jake:/etc/rc.d# cd
root@jake:~# ping 192.168.1.254
connect: Network is unreachable

root@jake:~# dmesg | tail
eth0: Tx descriptor 3 is 00002000.
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Tx queue start entry 4 dirty entry 0.
eth0: Tx descriptor 0 is 00002000. (queue head)
eth0: Tx descriptor 1 is 00002000.
eth0: Tx descriptor 2 is 00002000.
eth0: Tx descriptor 3 is 00002000.
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

Alien Bob 01-24-2006 04:24 AM

The GATEWAY="" shoud remain empty when you use USE_DHCP="yes".
gusgoose_it, can you paste the results of "lsmod" command? As win32sux pointed out, the 8139too is most probably the correct driver, and you might have the wrong one (8139cp) loaded by hotplug. Or vice versa!
You should try out both drivers (8139too and 8139cp). Like with these commands in case 8139cp is loaded

Code:

# lsmod |grep 8139
# modprobe -r 8139cp
# modprobe 8139too
# ifconfig -a
# /etc/rc.d/rc.inet1 eth0_start
# ifconfig
# route -n

Eric

gusgoose_it 01-24-2006 01:42 PM

alien bob, I put empty GATEWAY=**, as you wrote, now I post the result of "lsmod". I tried out both drivers (8139too and 8139cp), without results
Quote:

root@jake:-# lsmod
Module Size Used by Not tainted
soundcore 3396 0 (autoclean)
pcmcia_core 39172 0
ide-scsi 9392 0
8139too 13928 0
mii 2272 0 [8139too]
crc32 2880 0 [8139too]
agpgart 45508 0 (unused)
apm 9452 2

root@jake:~# lsmode | grep 8139
-bash: lsmode: command not found
root@jake:~# lsmod | grep 8139
8139too 13928 0
mii 2272 0 [8139too]
crc32 2880 0 [8139too]

root@jake:~# modprobe -r 8139cp
root@jake:~# modprobe 8139too

root@jake:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:28:E5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9

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:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4368 (4.2 Kb) TX bytes:4368 (4.2 Kb)

root@jake:~# /etc/rc.d/rc.inet1 eth0_start
dhcpcd: MAC address = 00:e0:4c:69:28:e5
root@jake:~# 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:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4992 (4.8 Kb) TX bytes:4992 (4.8 Kb)

root@jake:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.0.0.0

win32sux 01-24-2006 09:53 PM

you don't have iptables filtering out the DHCP packets, right??

what do your main chains look like??
Code:

iptables -L
also, as a test, give your eth0 a static IP and see if you can ping it locally (this will let us know the driver is working and stuff) - as well as remotely also...
Code:

ifconfig eth0 inet 192.168.1.1 netmask 255.255.255.0

ping -c5 192.168.1.1


gusgoose_it 01-25-2006 04:03 AM

win32sux, thanks for your patience

Quote:

root@jake:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

root@jake:~# ifconfig eth0 inet 192.168.1.1 netmask 255.255.255.0
root@jake:~# ping -c5 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.080 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.044 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.044 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.044 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.046 ms

--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.044/0.051/0.080/0.016 ms

win32sux 01-25-2006 12:05 PM

okay, we can rule-out a module problem... your card is up and responding... so the focus now needs to go to the dhcpcd daemon itself... when the machine boots, are you able to see the dhcpcd try to get an IP?? is there any record in your logs of the dhcpcd trying to run?? reboot and then post the output of this (you'll need to be root):
Code:

cat /var/log/messages | grep dhcp | tail
also, see if the dhcpcd is actually running:
Code:

ps aux | grep dhcpcd

kriton12 01-25-2006 12:27 PM

why not try to run dhcpcd manually?
as root:

#ifconfig eth0 up
#dhcpcd eth0

then look at the results from:
#ifconfig

to see if you have an IP address. If that gets it up and running, then dhcpcd isn't being run at the proper time.

win32sux 01-25-2006 12:47 PM

that's a good idea. you'll be able to see any error message that dhcpcd spits out and stuff, if any. i do have a feeling that, like you say, it's not getting run at startup time cuz if it were and it couldn't find a dhcp server, there would be this huge pause for like almost a minute during startup.

gusgoose_it 01-25-2006 02:25 PM

to win32sux: when the machine boots, I see
Quote:

dhcpcd : MAC address = 00:e0:4c:69:28:e5
after it, a long minute runs without any other message

Quote:

root@jake:~# cat /var/log/messages | grep dhcp | tail
Jan 24 10:36:30 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
Jan 24 10:44:18 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d eth0
Jan 24 19:30:07 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
Jan 24 19:58:46 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
Jan 24 20:26:43 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d eth0
Jan 24 20:27:29 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
Jan 24 20:33:56 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d eth0
Jan 25 10:38:39 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
Jan 25 10:59:10 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d eth0
Jan 25 20:40:50 jake logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 eth0
all the same, nothing after this:
Quote:

root@jake:~# ps aux | grep dhcpcd
to kriton12:

Quote:

root@jake:~# ifconfig eth0 up
root@jake:~# dhcpcd eth0
root@jake:~# 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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1248 (1.2 Kb) TX bytes:1248 (1.2 Kb)

win32sux 01-26-2006 12:20 PM

okay so dhcpcd is trying to reach the DHCP server but it isn't getting a reply for some reason...

i've heard of some DHCP servers that require the host to specify a hostname when querying the dhcp server... check in your windoze install to see if it's doing that... if your windoze is indeed specifying a hostname, then insert that hostname into your /etc/rc.d/rc.inet1.conf file in the DHCP_HOSTNAME[0]="" part and reboot or re-run the network scripts...

also, if you can, see if it works if you boot a linux live cd, such as DSL, for example...


All times are GMT -5. The time now is 11:36 AM.