Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

eth0 not working

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
Kris87
n00b
n00b
User avatar
Posts: 6
Joined: Mon Feb 25, 2008 1:33 pm
Location: Lancashire England
Contact:
Contact Kris87
Website

eth0 not working

  • Quote

Post by Kris87 » Mon Feb 25, 2008 1:41 pm

Hardware
toshiba laptop
turion 64 x2
2 GB ram
OS: dual boot vista + gentoo

Problem:

Installed gentoo from the 32bit livecd due to problems with amd64 livecd.

once installed i rebooted the system and connected rj45 cable from my sky box router the network interface doesn't show any green light on it. i tried manually entering the ip, rebooting, bringing the device up and down with no luck. i rebooted into vista and tried the rj45 cable again which works fine. I'm guessing it's a driver problem or i've messed something up. can anyone help me?
Top
Kris87
n00b
n00b
User avatar
Posts: 6
Joined: Mon Feb 25, 2008 1:33 pm
Location: Lancashire England
Contact:
Contact Kris87
Website

system messages && info

  • Quote

Post by Kris87 » Mon Feb 25, 2008 3:25 pm

results of:
ifconfig :
eth0 Link encap:UNSPEC HWaddr 00-08-0D-A0-D1-89-DF-48-00-00-00-00-00-00-00-00
INET ADDR: 192.168.0.5 Bcast:192.168.1.255 mask:255.255.255.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)

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: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)

Ping:
ping 192.168.0.1

PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
from 192.168.0.5 icmp_seq=1 Destination Host Unreachable

route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 0.0.0.0 255.0.0.0 U 0 0 0 lo

uname -a

Linux Bedlamuk 2.6.19-gentoo-r5 #1 SMP Wed Apr 4 05:44:43 UTC 2007 i686 Turion(tm) 64 X2 Mobile Technology TL-58 AuthenticAMD GNU/Linux

lspci | grep -i net
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)

dhcpcd eth0
Error, dhcpStart: interface eth0 is not Ethernet or 802.2 Token Ring
Top
ketjap
Tux's lil' helper
Tux's lil' helper
Posts: 75
Joined: Thu Nov 03, 2005 12:38 pm
Location: The Netherlands

Re: system messages && info

  • Quote

Post by ketjap » Mon Feb 25, 2008 4:22 pm

Kris87 wrote:results of:
ifconfig :
eth0 Link encap:UNSPEC HWaddr 00-08-0D-A0-D1-89-DF-48-00-00-00-00-00-00-00-00
INET ADDR: 192.168.0.5 Bcast:192.168.1.255 mask:255.255.255.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)

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: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)

Ping:
ping 192.168.0.1

PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
from 192.168.0.5 icmp_seq=1 Destination Host Unreachable

route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 0.0.0.0 255.0.0.0 U 0 0 0 lo

uname -a

Linux Bedlamuk 2.6.19-gentoo-r5 #1 SMP Wed Apr 4 05:44:43 UTC 2007 i686 Turion(tm) 64 X2 Mobile Technology TL-58 AuthenticAMD GNU/Linux

lspci | grep -i net
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)

dhcpcd eth0
Error, dhcpStart: interface eth0 is not Ethernet or 802.2 Token Ring
Looks like you have to setup your /etc/conf.d/net file with the correct options. You have a broadcast address of 192.168.1.255 and an ip of 192.168.0.5/24. That isn't going to work. Please refer to the handbook to update your network configuration.
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Mon Feb 25, 2008 7:02 pm

It looks to me that your eth0 is not your ethernet card at all but ethernet over firewire (I'm assuming this due to the extra 00-00's a the end of the MAC address). Do an 'ifconfig -a' to list all network devices.

If your ethernet card is not listed here (probably as eth1) make sure you have the driver compiled into your kernel or installed as a module. It is likely that the livecd is loading your drive as a module, so you can see which driver is being loaded for your ethernet card there if you are unsure.
Top
Kris87
n00b
n00b
User avatar
Posts: 6
Joined: Mon Feb 25, 2008 1:33 pm
Location: Lancashire England
Contact:
Contact Kris87
Website

/etc/conf.d/net

  • Quote

Post by Kris87 » Mon Feb 25, 2008 7:23 pm

config_eth0("192.168.0.2/24 brd 192.168.0.255")
config_eth0("192.168.0.2/24 netmask 255.255.255.0 broadcast 192.168.0.255")
Top
Kris87
n00b
n00b
User avatar
Posts: 6
Joined: Mon Feb 25, 2008 1:33 pm
Location: Lancashire England
Contact:
Contact Kris87
Website

  • Quote

Post by Kris87 » Mon Feb 25, 2008 8:24 pm

mikegpit[post=mikegpitt
PostPosted: Mon Feb 25, 2008 2:02 pm Post subject:
It looks to me that your eth0 is not your ethernet card at all but ethernet over firewire (I'm assuming this due to the extra 00-00's a the end of the MAC address). Do an 'ifconfig -a' to list all network devices.

If your ethernet card is not listed here (probably as eth1) make sure you have the driver compiled into your kernel or installed as a module. It is likely that the livecd is loading your drive as a module, so you can see which driver is being loaded for your ethernet card there if you are unsure.]

You were right it was down as eth1 i've gone thought the command to get it up and running and it's still having the same problem

commands used

ifconfig eth1 192.168.0.7 broadcast 192.168.0.255 netmask 255.255.255.0 up
route add default gw 192.168.0.1

still not receiving any packets, i can't ping my router.[/post]
quisnam mos tutela custodiae custodie
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Mon Feb 25, 2008 8:30 pm

Maybe your settings are off. Why not try connecting via dhcp once to verify your settings then edit your /etc/conf.d/net accordingly?

If you want to use dhcp then you don't need to add anything to that file. If you want to use a static IP then you would want to add something like this:

Code: Select all

config_eth1=( "192.168.0.7/24" )
routes_eth1=( "default via 192.168.0.1" )
Also, try starting your ethernet device using /etc/init.d/net.eth1 instead of doing it manually.
Top
Kris87
n00b
n00b
User avatar
Posts: 6
Joined: Mon Feb 25, 2008 1:33 pm
Location: Lancashire England
Contact:
Contact Kris87
Website

/etc/init.d/net.eth2

  • Quote

Post by Kris87 » Mon Feb 25, 2008 8:44 pm

i ran the command
/etc/init.d/net.eth1

result

bash: /etc/init.d/net.eth1: no such file or directory

so i ran

ls /etc/init.d/

result

net.eth0 net.lo netmount

How do i create net.eth1 and configure it?
quisnam mos tutela custodiae custodie
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Feb 25, 2008 8:47 pm

Kris87,

Your MAC address shows you have ethernet over firewire as your eth0.

If your real network module is loaded (I suspect not, or the lights on the port would be lit) it will appear in

Code: Select all

ifconfig -a
Post your lspci and we can tell what module you need or try this guide which shows you how to compare what works for the liveCD with what you have in your own install.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

Re: /etc/init.d/net.eth2

  • Quote

Post by mikegpitt » Mon Feb 25, 2008 8:53 pm

Kris87 wrote:How do i create net.eth1 and configure it?
Do this:

Code: Select all

ln -s /etc/init.d/net.lo /etc/init.d/net.eth1
This is all covered in the gentoo handbook in chapter 8b, which may help you through the rest of your configuration:
http://www.gentoo.org/doc/en/handbook/h ... #doc_chap2
Top
Kris87
n00b
n00b
User avatar
Posts: 6
Joined: Mon Feb 25, 2008 1:33 pm
Location: Lancashire England
Contact:
Contact Kris87
Website

mhmm

  • Quote

Post by Kris87 » Mon Feb 25, 2008 9:19 pm

It's still not working

the dhcp server says
after the command

/etc/init.d/net.eth1 restart

results:

starting eth1
bringing up eth1
dhcp
running dhcpcd......
error, timed out waiting for a vaild DHCP server response [!!]
quisnam mos tutela custodiae custodie
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Mon Feb 25, 2008 9:49 pm

I'm pretty sure the driver must be laoded if you are able to bring the device up/down, but:

Can you verify that you have CONFIG_USB_RTL8150 either compiled in or built as a module in your kernel? If it is a module, can you verify it is loaded in the lsmod output?

Can you also post the eth1 portion of the output of 'ifconfig -a'?

If you are trying for dhcp, is the contents of /etc/conf.d/net blank?

Finally... I'm assuming that your router is working properly. It does work off the livecd correct?


EDIT: BTW - is this your laptop model? I noticed that it was a toshiba and also had the same ethernet card inside. This link may help:
http://gentoo-wiki.com/HARDWARE_Toshiba ... e_U300-11P
Top
Post Reply

12 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic