LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 12-01-2004, 04:14 PM   #1
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0
Also Lost in Networking


[Log in to get rid of this advertisement]
I studied the thread "Lost in Networking" linuxquestions.org/questions/history/253892 and I have a similar problem. Unfortunately I don't seem to be able to solve it with the given info. My particulars - Router: SMC Barricade 7004AWBR, address 192.168.2.1; computer with problem of not starting eth0 or seeing the router has a Soyo MB with on board LAN VIA VT6102 [Rhine-II] (rev 78); operating system is Mepis (all works fine in Win98SE), address assigned this computer by the router seems to be 192.168.2.21 and a Dell on the network running Mepis is 192.168.2.26 (I think I got these addresses in Windows). Both machines and router are set up dhcp

ifconfig yields:
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: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:5776 (5.6 KiB) TX bytes:5776 (5.6 KiB)

ifconfig eth0 up yields:
rob@16[~]$ ifconfig eth0 up
SIOCSIFFLAGS: Permission denied
rob@16[~]$ su root
Password:
root@16[rob]# ifconfig eth0 up
root@16[rob]#

ifconfig -a yields:
rob@17[~]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:2C:A5:B2:14
inet6 addr: fe80::250:2cff:fea5:b214/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:6 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x1000

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: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:5776 (5.6 KiB) TX bytes:5776 (5.6 KiB)

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)

lspci excerpt:
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)

Then this series:
rob@17[~]$ ifconfig eth0 192.168.2.2
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
rob@17[~]$ ifconfig eth0 192.168.2.26
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
rob@17[~]$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.2.1 64 chars, ret=-1
ping: sendto: Network is unreachable

It seemed to work so well in the other post, but then I have no idea what most of it means. Any help would be appreciapted.
Okie2003 is offline     Reply With Quote
Old 12-01-2004, 04:31 PM   #2
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Thanked: 0
as root try
dhcpcd eth0
(note dhcpcd not dhcpd)
failing that try
ifconfig eth0 192.168.2.2 netmask 255.255.255.0 up

If that works, add that to your rc.inet1 or rc.inet1.conf file (I forgot which and where it is, which is kinda sucky given I've had to post it's location 3 times this evening, damn being trapped on windows)
ror is offline     Reply With Quote
Old 12-01-2004, 04:40 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 7,848
Thanked: 23
You need to be logged in as root to change the configuration but when you were logged in as root you did not assign eth0 an IP address.

Try again but logged in as root this time.
ifconfig eth0 192.168.2.21 netmask 255.255.255.0 up
michaelk is online now     Reply With Quote
Old 12-01-2004, 04:49 PM   #4
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0

Original Poster
Thanks for the quick replies. See the response I got:
root@18[rob]# dhcpcd eth0
bash: dhcpcd: command not found
root@18[rob]# dhcpcd eth0
bash: dhcpcd: command not found
root@18[rob]# ifconfig eth0 192.168.2.2 netmask 255.255.255.0 up
root@18[rob]#

Still unable to bring up eth0. Also tried Michaelk,s suggesting:
root@22[rob]# ifconfig eth0 192.168.2.21 netmask 255.255.255.0
root@22[rob]# ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes

As you can see there was no response and still could not bring up eth0
Okie2003 is offline     Reply With Quote
Old 12-01-2004, 04:51 PM   #5
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Thanked: 0
Can it ping it's own IP?

Is is sharing the same broadcast as the router?

The fact you don't have dhcpcd is worrying, what distribution are you using? perhaps you've a different set of net tools or something.
ror is offline     Reply With Quote
Old 12-01-2004, 04:59 PM   #6
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0

Original Poster
I am using Mepis. I am not sure what your are asking "can it ping it's own IP?" If this is what you meant:
rob@27[~]$ ping 192.168.2.21
PING 192.168.2.21 (192.168.2.21): 56 data bytes

The answer seems to be , no.

Not sure what sharing the same broadcast means. I have two computers wired to the router. They work fine in Win 98 and one (the other one) works fine in Linux running Mepis.
Okie2003 is offline     Reply With Quote
Old 12-01-2004, 05:04 PM   #7
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Thanked: 0
if you can't even ping it's own IP then the problem definatly lies with ifconfig, try
ifconfig eth0 down
ifconfig eth0 192.168.2.21 netmask 255.255.255.0 up

if you still can't ping 192.168.2.21 after that, then something really weird is going wrong.

Can you ping 127.0.0.1?
ror is offline     Reply With Quote
Old 12-01-2004, 05:11 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 7,848
Thanked: 23
It is typical with linux that no response means the command compeleted successfully.

Check again to see if eth0 is being assigned an IP address.
ifconfig eth0

Check the output of dmesg. Maybe there is an error.
dmesg | grep eth0
and this command will check the link.
mii-tool
michaelk is online now     Reply With Quote
Old 12-01-2004, 05:59 PM   #9
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0

Original Poster
Thanks so much for your help. Wish I could be of more use. Here is what I have now.

root@28[rob]# ifconfig eth0 down
root@28[rob]# ifconfig eth0 192.168.2.21 netmask 255.255.255.0
root@28[rob]# ping192.168.2.21
bash: ping192.168.2.21: command not found
root@28[rob]# ping 192.168.2.21
PING 192.168.2.21 (192.168.2.21): 56 data bytes
64 bytes from 192.168.2.21: icmp_seq=0 ttl=64 time=0.0 ms
64 bytes from 192.168.2.21: icmp_seq=1 ttl=64 time=0.0 ms

YES!!

rob@29[~]$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.0 ms

Yes – BUT the system center still shows eth0 down and when I tried to communicate with my router with my web browser I can't and...
rob@33[~]$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.2.1 64 chars, ret=-1
ping: sendto: Network is unreachable

rob@34[~]$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:2C:A5:B2:14
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:35 overruns:0 frame:0
TX packets:0 errors:55 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1419 (1.3 KiB) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x1000

And...
rob@34[~]$ dmesg|grep eth0
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0003, PHY status 786d, resetting...
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0003, PHY status 786d, resetting...
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
NETDEV WATCHDOG: eth0: transmit timed out

rob@34[~]$ mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not permitted
SIOCGMIIPHY on 'eth1' failed: Operation not permitted
SIOCGMIIPHY on 'eth2' failed: Operation not permitted
SIOCGMIIPHY on 'eth3' failed: Operation not permitted
SIOCGMIIPHY on 'eth4' failed: Operation not permitted
SIOCGMIIPHY on 'eth5' failed: Operation not permitted
SIOCGMIIPHY on 'eth6' failed: Operation not permitted
SIOCGMIIPHY on 'eth7' failed: Operation not permitted
no MII interfaces found
Okie2003 is offline     Reply With Quote
Old 12-01-2004, 06:00 PM   #10
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0

Original Poster
I was not sure if the last command needed to be run as root, so here it is:
root@34[rob]# mii-tool
SIOCGMIIPHY on 'eth0' failed: Invalid argument
no MII interfaces found
Okie2003 is offline     Reply With Quote
Old 12-01-2004, 06:33 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 7,848
Thanked: 23
Does the output of lsmod display the via-rhine module?
michaelk is online now     Reply With Quote
Old 12-01-2004, 08:01 PM   #12
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583
Thanked: 0
odd that it's IP isn't showing on ifconfig even after you've just upped it with an addr.
ror is offline     Reply With Quote
Old 12-01-2004, 08:25 PM   #13
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0

Original Poster
I am not sure what it means, but here is the part of lsmod that I thought might apply:
nls_cp437 4608 1
via_rhine 14216 0
mii 2432 1 via_rhine
crc32 3200 1 via_rhine
snd_via82xx 14884 1
snd_ac97_codec 47236 1 snd_via82xx
snd_pcm_oss 37160 0
snd_mixer_oss 12032 1 snd_pcm_oss
snd_pcm 57480 2 snd_via82xx,snd_pcm_oss
snd_timer 14340 1 snd_pcm
snd_page_alloc 5128 2 snd_via82xx,snd_pcm
gameport 1792 1 snd_via82xx
snd_mpu401_uart 3584 1 snd_via82xx
snd_rawmidi 13348 1 snd_mpu401_uart
snd_seq_device 3976 1 snd_rawmidi
snd 30820 11 snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixe r_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device

Thanks again for your time and your instruction.
Okie2003 is offline     Reply With Quote
Old 12-01-2004, 09:04 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 7,848
Thanked: 23
The modules appear to be loading. However there are errors being reported via dmesg.

What kernel are you running?
michaelk is online now     Reply With Quote
Old 12-02-2004, 11:00 AM   #15
Okie2003
LQ Newbie
 
Registered: Nov 2004
Location: Oklahoma
Distribution: Mepis
Posts: 21
Thanked: 0

Original Poster
kernel 2.6.7
Okie2003 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost panel in Gnome -- now I'm completely lost! webwench Linux - Newbie 3 04-30-2005 01:38 AM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 09:01 AM
Lost in Networking ToothlessRebel Linux - Networking 10 11-15-2004 06:55 AM
C++ templates + linked lists... lost.. very lost.. exodist Programming 2 05-12-2004 11:04 PM
Lost in Debian networking. gboutwel Linux - Networking 1 05-31-2001 04:37 AM


All times are GMT -5. The time now is 02:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration