View previous topic :: View next topic |
Author |
Message |
xin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2002 Posts: 33
|
Posted: Tue Jan 07, 2003 12:07 am Post subject: nic problems |
|
|
ok i just got done doing a fresh install of gentoo 1.4_rc2 for stage 1 at the start pf the install the nic was working fine
at the end of the install i add this line
to my /etc/modules.autoload this is the same module i used at the start of the install and when i reboot my gentoo says failed to bring up "eth0" im not sure what to do
any ideas?
forgive me i am only but a n00b |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jukka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 1:22 am Post subject: Re: nic problems |
|
|
xin wrote: | when i reboot my gentoo says failed to bring up "eth0" |
did you compile the 8139too driver as a module? if yes, is this module loaded? try '/sbin/lsmod' to check. if you need further assistance, please post the output of Code: |
$ grep '^[^#]' /etc/conf.d/net
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2002 Posts: 33
|
Posted: Tue Jan 07, 2003 1:28 am Post subject: |
|
|
ok i dont think i compiled the driver as a module
/sbin/lsmod
no modules are loaded
grep '^[^#]' /etc/conf.d/net
output
Code: | iface_eth0="192.168.1.3 broadcast 192.168.1.3 netmask 255.255.255.0" |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jukka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 1:52 am Post subject: |
|
|
xin wrote: | Code: | iface_eth0="192.168.1.3 broadcast 192.168.1.3 netmask 255.255.255.0" |
|
you try to broadcast on your ip. change this line to: Code: | iface_eth0="192.168.1.3 broadcast 192.168.1.255 netmask 255.255.255.0" |
hth, jukka |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
delta407 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/d02a5f053d2286340332d.jpg)
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jan 07, 2003 2:09 am Post subject: |
|
|
Broadcast must be set properly -- remember the following.
Code: | Client IP = 1.2.3.4
Client netmask = 255.255.0.0
Network address = (Client IP) binary AND (netmask) = 1.2.0.0
Broadcast = (Network address) binary OR (binary NOT (netmask)) = 1.2.0.0 OR 0.0.255.255 = 1.2.255.255 |
In your case:
Code: | Client IP = 192.168.1.3
Client netmask = 255.255.255.0
Network address = 192.168.1.3 AND 255.255.255.0 = 192.168.1.0
Broadcast = 192.168.1.0 OR (NOT 255.255.255.0) = 192.168.1.0 OR 0.0.0.255 = 192.168.1.255 |
This gets non-trivial with more complex subnetting:
Code: | Client IP = 208.42.203.200
Client netmask = 255.255.255.224 (/27)
Network address = 208.42.203.200 AND 255.255.255.224 = 208.42.203.192
Broadcast = 208.42.203.192 OR 0.0.0.31 = 208.42.203.223 |
(Remember that netmasks octets are guaranteed to be of the form [1*0*], so binary NOT of a single octet plus that octet are guaranteed to add up to 255. That is, x + (NOT x) = 255. Thus, NOT of .252 = .3, NOT of .224 = .31, and so on.) _________________ I don't believe in witty sigs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2002 Posts: 33
|
Posted: Tue Jan 07, 2003 2:11 am Post subject: |
|
|
ok changed that
when i boot up its says
Loading Module 8139too
Failed To Load 8139
something like that |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jukka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 2:32 am Post subject: |
|
|
xin wrote: | when i boot up its says
Loading Module 8139too |
you said you didn't compile the driver as a module, so you should remove the appropriate line from /etc/modules.autoload... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2002 Posts: 33
|
Posted: Tue Jan 07, 2003 3:02 am Post subject: |
|
|
how would i go about compiling a module for my nic? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jukka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jan 07, 2003 4:48 am Post subject: |
|
|
xin wrote: | how would i go about compiling a module for my nic? |
read /usr/src/linux/Documentation/modules.txt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2002 Posts: 33
|
Posted: Wed Jan 08, 2003 3:15 am Post subject: |
|
|
i went and downloaded 8139too.o what should i do with this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jukka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Wed Jan 08, 2003 11:47 am Post subject: |
|
|
xin wrote: | i went and downloaded 8139too.o what should i do with this? |
read /usr/src/linux/Documentation/modules.txt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2002 Posts: 33
|
Posted: Fri Jan 10, 2003 3:45 pm Post subject: |
|
|
ok got it
thanx for the help |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|