Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet/Network Problems [Reopened]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 1:39 pm    Post subject: Internet/Network Problems [Reopened] Reply with quote

OK, i just installed gentoo on my machine but not i cant get the net working i am on a network, the "firewall gateway" address is 192.168.1.254 my machines address is 192.168.1.145 the subnet mask is 255.255.255.0 the dhtp pool is 192.168.1.100 - 192.168.1.199 - im not sure what information you need but i cant do much untill the net is set up

Thanks
James


Last edited by jaz9090 on Fri May 07, 2004 10:20 pm; edited 4 times in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 25, 2004 2:01 pm    Post subject: Re: Internet/Network Problems Reply with quote

jaz9090 wrote:
OK, i just installed gentoo on my machine but not i cant get the net working i am on a network, the "firewall gateway" address is 192.168.1.254 my machines address is 192.168.1.145 the subnet mask is 255.255.255.0 the dhtp pool is 192.168.1.100 - 192.168.1.199 - im not sure what information you need but i cant do much untill the net is set up

Edit /etc/conf.d/net to reflect your settings
start the network: /etc/init.d/net.eth0 start
do "rc-update add net.eth0 default" to start the network automatically after booting.
Oh, and make sure the kernel has support for your network card.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand


Last edited by nixnut on Sun Apr 25, 2004 2:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Sun Apr 25, 2004 2:02 pm    Post subject: Reply with quote

You need to be more specific about what your problem is.
Is your net interface (eth0) up ? (run /sbin/ifconfig. It should list eth0).
Can you ping anything on your network?
Are you trying to use a static IP or get a dhcp address?
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 3:05 pm    Post subject: Reply with quote

The output to /sbin/ifconfig is:

Code:

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


If i try and ping anything on my network it says network unreachable, and im not sure wether i want static IP or get a dhcp address, i have a dynamic ip address with my isp (ntl) im not sure if that bears any relevance tho

Thanks
James
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 25, 2004 3:12 pm    Post subject: Reply with quote

jaz9090 wrote:
The output to /sbin/ifconfig is:

Code:

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


Right, this means that eth0 is not up and running. What's in your /etc/conf.d/net? And what's the output of "/etc/init.d/net.eth0 start"
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Sun Apr 25, 2004 3:16 pm    Post subject: Reply with quote

You should read up on network configuration here:
Gentoo Handbook Part 1, Chapter 3
under manual configuration, probably.

It looks like you don't have your card module loaded. The guide tells you how to load it.

If you don't know if you want static or dhcp, well, nobody here will decide for you. Judging by your post though, I think you need DHCP (your IP adress is in the dhcp block.
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 3:45 pm    Post subject: Reply with quote

OK, i read that guide, modprobed a couple of cards until i found 1 that didnt error

The output to /sbin/ifconfig is still the same but to ifconfig etho:

Code:
etho        Link encap: Ethernet HWaddr 00:02:44:67:CF:A2
      BROADCAST MULTICAST MTU:1500 METRIC:1
      Interrupt: 16 Base address: 0x2f00


and ive done dhcpcd eth0
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Sun Apr 25, 2004 3:57 pm    Post subject: Reply with quote

try :
ifconfig eth0 up

Give it a few seconds to get a dhcp lease, and run ifconfig again. The card should show up
with its assigned IP address.

If that works, edit /etc/conf.d/net like nixnut suggested, and do /etc/init.d/net.eth0 restart

The card should still work.
If it does, run
rc-update add net.eth0 default
You card should now be up and running.
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 4:41 pm    Post subject: Reply with quote

Thanks, you've solved my problem

James
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 25, 2004 4:58 pm    Post subject: Reply with quote

You could now edit the name of this thread and add "[resolved]" at the end, so eveybody can see right away your problem in this thread has been answered and resolved.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 6:42 pm    Post subject: Reply with quote

I thought it was sorted cos i could ping my network, but the internet doesnt work, any ideas?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 25, 2004 6:45 pm    Post subject: Reply with quote

Have you set your gateway in /etc/conf.d/net? That will need to be the ip number of your dhcp server, I think.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 7:06 pm    Post subject: Reply with quote

which one of these should i remove the # for, or both?

#iface_eth0="dhcp"
#dhcpcd_eth0="..."
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 25, 2004 7:23 pm    Post subject: Reply with quote

jaz9090 wrote:
which one of these should i remove the # for, or both?

#iface_eth0="dhcp"
#dhcpcd_eth0="..."

Only the iface_eth0.
The second line is for if you have to pass options to the dhcp server.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 7:50 pm    Post subject: Reply with quote

ok ive done that, but its still not working (tho i can ping my network)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Apr 25, 2004 8:02 pm    Post subject: Reply with quote

Have you restarted the network?
/etc/init.d/net.eth0 restart
And have you edited the gateway line in /etc/conf.d/net:
gateway="eth0/xxx.xxx.xxx.xxx"
where xxx.xxx.xxx.xxx is the ip number of your dhcp server
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Sun Apr 25, 2004 8:38 pm    Post subject: Reply with quote

Yes ive done all of that
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Mon Apr 26, 2004 11:48 am    Post subject: Reply with quote

does your firewall let the traffic through?
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Mon Apr 26, 2004 1:47 pm    Post subject: Reply with quote

well the family windows box's internet works
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Apr 26, 2004 2:12 pm    Post subject: Reply with quote

jaz9090 wrote:
Yes ive done all of that

Good. Ok, so what does your resolv.conf look like?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Mon Apr 26, 2004 4:02 pm    Post subject: Reply with quote

this is the contents of /etc/resolv.conf

Code:
search xkewl.com
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Mon Apr 26, 2004 6:05 pm    Post subject: Reply with quote

I just cant work out what the problem is
Back to top
View user's profile Send private message
Some_Other_Nerd
n00b
n00b


Joined: 23 Apr 2004
Posts: 32
Location: 127.0.0.1 and ::1

PostPosted: Mon Apr 26, 2004 9:09 pm    Post subject: Reply with quote

Try this:
Code:
echo nameserver 204.60.203.179 >> /etc/resolv.conf

_________________
foss-bugs.eth0.is-a-geek.org
eth0.is-a-geek.org
Back to top
View user's profile Send private message
jaz9090
Apprentice
Apprentice


Joined: 11 Sep 2003
Posts: 214

PostPosted: Tue Apr 27, 2004 3:51 pm    Post subject: Reply with quote

now mozilla sits there 4 ages trying 2 resolv host before not working
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Apr 27, 2004 6:09 pm    Post subject: Reply with quote

Hmm, we're slowly running out of things to try.
Ok, I'm curious whether you get an ip number assigned from your dhcp server. What is the output of /sbin/ifconfig now?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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