LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   Nic card -> cable internet modem no internet connection (http://www.linuxquestions.org/questions/mandriva-30/nic-card-cable-internet-modem-no-internet-connection-230236/)

zeshan_b 09-13-2004 05:44 PM

Nic card -> cable internet modem no internet connection
 
Hi,

My Question-

I have cable modem connected to Accton Nic card on Compaq presario 5011CL. I can't connect to the internet. KDE hardware configuration shows the network card and I created a connection eth0 but during the boot it fails. It's strage because when I monitor the network it's graph shows that I am receiving packets but when I press connect the connection fails. I also went to KDE system services and tryed starting the internet and didn't work. I also tryed the dhclient command.

NIC card info detected by system:
SMC-1211TX
Vendor: Accton
Bus: PCI
Bus identification: 1113-1211
location on the Bus: 0:5:0
Description: SMC2-1211TX
MOdule: 8139too
Media class: Network_Ethernet


Background info -

I thought I learn more about Unix/Linux so I am taking a Linux class. But the Class wont teach me how to install or configure linux. They just give you network access to a Unix/Linux box and teach you commands to use in the shell. So I decided to do some research on the net and got a used Compaq presario to install linux on so I could learn.

I couldn't boot from CD on the Compaq presario 5011CL and tried to use the floppy boot disk(info on how to create a boot disk is on the readme.txt file on mandrake cd1) but the system couldn't access the dvd rom drive. The other 8x CD-R on the machine got damaged.

I took out the hard disk and connected it to a pentium 4 computer and install mandrake 10 on it then attached it back into the Compaq. Mandrake detected the CPU(AMD athlon processor) ,graphics card Nvida geforce, mouse and keyboard.

-Zeshan_b

bruno buys 09-13-2004 06:17 PM

Post here the output of these commands, so we can try to tweak it:

ifconfig

ifup eth0

zeshan_b 09-13-2004 06:48 PM

bash shell command not found
 
hi,

I am using the bash shell and both commands aren't found.

"Command not found"

What can I do?

-Zeshan_b

bruno buys 09-13-2004 07:38 PM

Sorry, I forgot to mention that you should do it as root.

zeshan_b 09-13-2004 07:58 PM

during boot mandrake at activating eth0
 
hi,

ok here are the results:

ifconfig

Link encap: local loopback
inetaddr:127.0.0.1 Mask: 255.0.0.0
UP loopback Running MTU:16436 Metric:1
RX Packets: 68 errors:0 dropped:0 reruns:0 frames:0
TX Packets: 68 errors:0 dropped:0 reruns:0 frames:0
collisions:0 Txqueuelen:0
Rx bytes: 4586(4.4KB) Tx bytes:4586

This looks good so far but

ifup eth0

Failed

What can I do?

-Zeshan_b

Ghost_runner 09-13-2004 08:05 PM

quick question, are you using a standard cat 5 cable, or a crossover cable? I have had similar prob, bought the crossover cable, fixed it

bruno buys 09-13-2004 08:30 PM

Crossover cable will connect two computers, not a cablemodem and a computer.
This ifconfig only shows the loopback. When you're done, ifconfig will show you the eth0 connection, also.
Are you dualbooting? I guess in win you have to release the ip address.

Anyway, this this, in this order:

as root, do:

ifconfig eth0 up
ifup eth0

and get back here.

zeshan_b 09-13-2004 09:11 PM

not dual booting
 
Hi,

Here is my setup. I have two computers. I have them connected to the same monitor and keyboard. I just swich back and forth and disconnect the rj-45(not sure I know it's not cat-5) cable running from the windows machine and connect the cable running from linux machine to the cable modem. The cable modem is connected to the internet via cat-5.

I tryed the commands in order and the result is->Failed.

What can I do next?

zeshan_b 09-13-2004 09:34 PM

There is a file in /etc/sysconfig/network*/ifcfg-eth0
 
Hi,

What can I do with this file. I was searching on the net and found that I can make chages to it to fix the problem.

/etc/sysconfig/network*/ifcfg-eth0

I wouldn't mind changing MII_NOT_SUPPORTED=yes to no but I need a dhcp client to connect to the internet.

-Zeshan_b

Ghost_runner 09-13-2004 10:27 PM

the cable modem should be connected via coax (cable) rj45 usually is cat 3 or cat 5 so that's not the issue (btw, my cable modem is connected to my hub via crossover cable, thank you very much). Can you do a dmesg and see any errors relating to network functions?

zeshan_b 09-13-2004 11:12 PM

hi,

Thanks.

When running dmesg I found "eth0: link down"

zeshan_b 09-13-2004 11:48 PM

zeroconf hostname
 
When using KDE gui to create a new connection at the last step it asks me for zeroconf hostname. When I enter a hostname it asks me for mandrake cd1.

What can do to manuly configure the net connection. It is trying to install tmdns and zcip.

The dvd-rom drive isn't working. I know these files are in the mandrake cd under RPMS. What other rpms do I need for zeroconf?

zeshan_b 09-14-2004 06:44 AM

Here are some system messages during boot
 
Still trying to connect to the internet.

Sep 14 07:17:25 localhost rc.sysinit: Enabling swap space: succeeded
Sep 14 07:17:26 localhost mandrake_everytime: Starting netprofile: succeeded
Sep 14 07:17:26 localhost init: Entering runlevel: 5
Sep 14 07:17:27 localhost network: Setting network parameters: succeeded
Sep 14 07:17:27 localhost network: Bringing up loopback interface: succeeded
Sep 14 07:17:27 localhost ifplugd(eth0)[704]: ifplugd 0.21b initializing.
Sep 14 07:17:27 localhost ifplugd(eth0)[704]: Using interface eth0/00:10:B5:D0:64:9C with driver <8139too> (version: 0.9.27)
Sep 14 07:17:27 localhost ifplugd(eth0)[704]: Using detection mode: SIOCGMIIPHY
Sep 14 07:17:27 localhost ifplugd(eth0)[704]: Initialization complete, link beat detected.
Sep 14 07:17:27 localhost ifplugd(eth0)[704]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
Sep 14 07:17:28 localhost dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Sep 14 07:17:44 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
Sep 14 07:18:01 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Sep 14 07:18:26 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Sep 14 07:18:27 localhost ifplugd(eth0)[704]: Killing child.
Sep 14 07:18:27 localhost network: Bringing up interface eth0: failed
Sep 14 07:18:27 localhost internet: Checking internet connections to start at boot succeeded

Sep 14 07:18:28 localhost netplugd[827]: /etc/netplug.d/netplug eth0 in -> pid 827
Sep 14 07:18:28 localhost netplugd: netplugd startup succeeded
Sep 14 07:18:32 localhost xinetd[1114]: xinetd Version 2.3.13 started with libwrap options compiled in.
Sep 14 07:18:32 localhost xinetd[1114]: Started working: 1 available service

Sep 14 07:18:48 localhost netplugd[826]: eth0: state INNING flags 0x00001043 UP,BROADCAST,RUNNING,MULTICAST -> 0x00001002 BROADCAST,MULTICAST
Sep 14 07:18:48 localhost ifplugd(eth0)[704]: client: Determining IP information for eth0...
Sep 14 07:18:48 localhost ifplugd(eth0)[704]: Program execution failed, return value is 0.
Sep 14 07:18:48 localhost ifplugd(eth0)[704]: Exiting.
Sep 14 07:18:49 localhost netplugd[1782]: /etc/netplug.d/netplug eth0 probe -> pid 1782
Sep 14 07:18:49 localhost netplugd[826]: eth0: state PROBING flags 0x00001002 BROADCAST,MULTICAST -> 0x00001043 UP,BROADCAST,RUNNING,MULTICAST
Sep 14 07:18:49 localhost netplugd[826]: eth0: state PROBING_UP pid 1782 exited status 0
Sep 14 07:18:49 localhost netplugd[1783]: /etc/netplug.d/netplug eth0 in -> pid 1783
Sep 14 07:18:49 localhost kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Sep 14 07:18:54 localhost dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Sep 14 07:19:00 localhost dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Sep 14 07:19:06 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Sep 14 07:19:13 localhost su(pam_unix)[1918]: session opened for user root by (uid=501)
Sep 14 07:19:14 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Sep 14 07:19:28 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Sep 14 07:19:42 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
Sep 14 07:20:02 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Sep 14 07:20:06 localhost dhclient: No DHCPOFFERS received.
Sep 14 07:20:06 localhost dhclient: Trying recorded lease 192.168.0.100

Ghost_runner 09-14-2004 07:41 AM

sounds like your not getting dchp information from roadrunner, perhaps a trip to walmart is in order, buy a cheap hub, get your winblows box up and connected, then start your linux box and see if it connects?

zeshan_b 09-14-2004 03:57 PM

I have edited resolv.conf and ifcfg-eth0
 
I have made some changes to two network config files in linux but it still doesn't work. I see your point about getting a hub maybe windows' dhcp and dns will help linux get online. I have a dlink routher but thats a whole other ball game I am not fully prepaired for. Just trying to directly connect the linux box to cable modem.

Below are my resaults. I'll also pass this by my instructor to see what he thinks. In any case this gives me an oppertunity to learn more about linux.

Below is some things i did may someone can help solve this issue.

[root@localhost zeshan_b]# ifconfig eth0 down
[root@localhost zeshan_b]# dhclient eth0
Internet Software Consortium DHCP Client V3.0.1rc13
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:10:b5:d0:64:9c
Sending on LPF/eth0/00:10:b5:d0:64:9c
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

/etc/resolv.conf file
search comcast.net
nameserver 68.48.0.6
nameserver 68.87.96.15
# nameserver 68.48.0.5

# ppp temp entry

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.248.0
ONBOOT=yes
MII_NOT_SUPPORTED=yes
WIRELESS_ENC_KEY=""
DHCP_HOSTNAME=172.30.100.34
NEEDHOSTNAME=yes

ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:10:B5:D0:64:9C
inet6 addr: fe80::210:b5ff:fed0:649c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13338 errors:0 dropped:0 overruns:0 frame:0
TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:853023 (833.0 Kb) TX bytes:31338 (30.6 Kb)
Interrupt:5 Base address:0xc000

eth0:9 Link encap:Ethernet HWaddr 00:10:B5:D0:64:9C
inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING 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:5 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10524 (10.2 Kb) TX bytes:10524 (10.2 Kb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Thanks for taking the time to read this. :)


All times are GMT -5. The time now is 05:21 PM.