LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 08-01-2006, 12:45 PM   #1
axarq
LQ Newbie
 
Registered: Sep 2005
Location: madrid
Distribution: debian
Posts: 4

Rep: Reputation: 0
Can only connect to internet if 1st boot into XP then restart & boot into Suse 10.1


I have PC configured with for dual boot with XP and SuSe 10.1 and connected to Linksys WRT54G v1 set up as Gateway to cable modem.
Network card is: 3Com 3C920B-EMB-WNM Integrated Fast Ethernet Controller
Network Driver: 3c59x
Cable modem is 100Mb/s but cable connection to back of the house is poor and in XP I manually adjusted this to 10Mb/s to ensure an internet connection.

If I boot directly into SuSe 10.1 then I get the following outputs:

linux-bf2c:/home/cepmw1 # /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:5B:7D
inet addr:169.254.204.25 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::213:xxxx:xxxx:5b7d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:3911 (3.8 Kb)
Interrupt:193 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:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7354 (7.1 Kb) TX bytes:7354 (7.1 Kb)

linux-bf2c:/home/cepmw1 # /etc/init.d/network restart
Shutting down the NetworkManagerDispatcher done
Shutting down the NetworkManager done
Shutting down the DHCP DBUS Daemon done
Starting the DHCP DBUS Daemon done
Starting the NetworkManager done
Starting the NetworkManagerDispatcher done

linux-bf2c:/home/cepmw1 # /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

linux-bf2c:/home/cepmw1 # /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:5B:7D
inet addr:169.254.204.25 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::213:xxxx:xxxx:5b7d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:8504 (8.3 Kb)
Interrupt:193 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:178 errors:0 dropped:0 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13762 (13.4 Kb) TX bytes:13762 (13.4 Kb)

...and no connection to internet however I configure networking

If I boot into XP I get:
Windows IP Configuration
Host Name . . . . . . . . . . . . : sputnick-okno2h
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter LAN:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 3Com 3C920B-EMB-WNM Integrated Fast
Ethernet Controller
Physical Address. . . . . . . . . : xx-xx-xx-xx-5B-7D
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.130
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . : 01 August 2006 17:10:17
Lease Expires . . . . . . . . . . : 02 August 2006 17:10:17

and can connect to router and internet.

If I now RESTART from XP and boot from Grub into SuSe 10.1, then my networking problems are solved:

linux-bf2c:/home/cepmw1 # /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:5B:7D
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:xxxx:xxxx:5b7d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:26
collisions:0 txqueuelen:1000
RX bytes:890 (890.0 b) TX bytes:2874 (2.8 Kb)
Interrupt:185 Base address:0x2000

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

linux-bf2c:/home/cepmw1 # /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

Anyone out there can tell me what XP is doing that SuSe 101.1 is not doing when negotiating with the router and how I can fix this to NOT have to boot into XP?

btw - I am using DD-WRT v23 SP1 firmware on router, but this issue was seen with Linksys firmware

Many thanks in advance
 
Old 08-01-2006, 09:20 PM   #2
scott2004
Member
 
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68

Rep: Reputation: 15
The problem seems to be with DHCP. I would wonder about something querky or defective in either the card or router or the ethernet cable (cable's the most likely suspect).

Anyway, you could try manually assigning the network configuration:

/sbin/ifconfig eth0 192.168.1.130 netmask 255.255.255.0 up
/sbin/route add default gw 192.168.1.1

See if your configuration took:
/sbin/ifconfig eth0
/sbin/route -n

Assuming it did, see if you can ping your router:

ping 192.168.1.1

and the internet beyond:

ping www.google.ca

Scott
 
Old 08-01-2006, 11:04 PM   #3
cs.cracker
LQ Newbie
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
Judging by what you've posted, it seems your cable is no good. Try running a large series of ping packets, and see what the success rate is.
Windows:
ping -n 200 192.168.1.1
Linux:
ping -c 200 192.168.1.1
 
Old 08-02-2006, 05:21 AM   #4
axarq
LQ Newbie
 
Registered: Sep 2005
Location: madrid
Distribution: debian
Posts: 4

Original Poster
Rep: Reputation: 0
half cracked it

Yes, the cable seems to be the problem. When booting direct into Linux, the system is defaulting to 100 Mb/s which is too fast to negotiate with the router. When booting first into XP, I've manually set it to 10 Mb/s and it gets IP assigned fine by router. Restarting and booting into Linux (rather than shut down and new boot) presumably maintains the connection with the router and the speed at 10 Mb/s.

Booting staright into Linux and manually typing:
>ethtool -s eth0 speed 10 duplex full autoneg off
followed by:
>/etc/init.d/network restart

solves my networking problems

but updating YaST / System / etc/sysconfig Editor / Hardware / Network / DEVICE NAME / ETHTOOL_OPTIONS
with
ethtool -s eth0 speed 10 duplex full autoneg off
or
speed 10 duplex full autoneg off

does not work - system defaults to 100 Mb/s on straight boot into Linux

Any suggestions on how to hard-configure this?
 
Old 08-02-2006, 08:44 AM   #5
scott2004
Member
 
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68

Rep: Reputation: 15
Cables are cheap. Why not just by/try a new one?
 
Old 08-03-2006, 03:05 AM   #6
axarq
LQ Newbie
 
Registered: Sep 2005
Location: madrid
Distribution: debian
Posts: 4

Original Poster
Rep: Reputation: 0
I had thought of that, but my problem lies with threading the cable through some narrow, blind holes in the walls of the flat to reach my office which is at the back. It took me an age just to succesfully thread the cable thro' last time I did it, and another age to succesfully fit the connector....
 
Old 08-03-2006, 08:33 PM   #7
scott2004
Member
 
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68

Rep: Reputation: 15
Ahhh... so you put the plastic end on yourself. Did you do it with a proper crimping tool? Properly capping the wire is something of an art, and it's very easy to screw it up. Do you think that the problem might just be in the way you attached the connector? Perhaps not all eight of the wires are making contact---this would explain why your line wants to run at 10mbps: the old 4 or 5-wire cables were only designed to run at 10mbps. That seems to me to be a pretty likely suspect. If you have a crimping tool, you could just try putting on a new connector. That would be the best solution---unless you think the wire itself is only rated to 10mbps... but wires of that guage are very old and quite uncommon except in recycling/refurbishing computer shops.

Does the cable have eight multi-coloured wires? If so, it ought to be able to handle 100 or even 1000 mbps, and the connector is the likely culprit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[1st post] Dual Boot Suse & Win2k boglog Linux - Newbie 4 07-21-2006 04:51 PM
Dual Boot - XP & Suse 9.1 - Need help with boot.ini johnnytriumph Linux - Newbie 1 04-05-2005 06:18 AM
suse 9.2 - crash during 1st boot glass_curtain SUSE / openSUSE 1 12-11-2004 09:38 AM
New Suse 9.0 1st boot, error INIT jillyt Linux - Newbie 2 12-04-2003 09:09 PM
Auto-Connect to internet on boot marsonist Linux - Software 4 06-06-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration