Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nic problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xin
n00b
n00b


Joined: 30 Dec 2002
Posts: 33

PostPosted: Tue Jan 07, 2003 12:07 am    Post subject: nic problems Reply with quote

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
Code:
8139too

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
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Jan 07, 2003 1:22 am    Post subject: Re: nic problems Reply with quote

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
View user's profile Send private message
xin
n00b
n00b


Joined: 30 Dec 2002
Posts: 33

PostPosted: Tue Jan 07, 2003 1:28 am    Post subject: Reply with quote

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
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Jan 07, 2003 1:52 am    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jan 07, 2003 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message
xin
n00b
n00b


Joined: 30 Dec 2002
Posts: 33

PostPosted: Tue Jan 07, 2003 2:11 am    Post subject: Reply with quote

ok changed that

when i boot up its says
Loading Module 8139too
Failed To Load 8139

something like that
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Jan 07, 2003 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
xin
n00b
n00b


Joined: 30 Dec 2002
Posts: 33

PostPosted: Tue Jan 07, 2003 3:02 am    Post subject: Reply with quote

how would i go about compiling a module for my nic?
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Jan 07, 2003 4:48 am    Post subject: Reply with quote

xin wrote:
how would i go about compiling a module for my nic?

read /usr/src/linux/Documentation/modules.txt
Back to top
View user's profile Send private message
xin
n00b
n00b


Joined: 30 Dec 2002
Posts: 33

PostPosted: Wed Jan 08, 2003 3:15 am    Post subject: Reply with quote

i went and downloaded 8139too.o what should i do with this?
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Wed Jan 08, 2003 11:47 am    Post subject: Reply with quote

xin wrote:
i went and downloaded 8139too.o what should i do with this?

read /usr/src/linux/Documentation/modules.txt
Back to top
View user's profile Send private message
xin
n00b
n00b


Joined: 30 Dec 2002
Posts: 33

PostPosted: Fri Jan 10, 2003 3:45 pm    Post subject: Reply with quote

ok got it

thanx for the help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum