View previous topic :: View next topic |
Author |
Message |
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 1:39 pm Post subject: Internet/Network Problems [Reopened] |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Apr 25, 2004 2:01 pm Post subject: Re: Internet/Network Problems |
|
|
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 |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Sun Apr 25, 2004 2:02 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 3:05 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Apr 25, 2004 3:12 pm Post subject: |
|
|
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 |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Sun Apr 25, 2004 3:16 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 3:45 pm Post subject: |
|
|
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 |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Sun Apr 25, 2004 3:57 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 4:41 pm Post subject: |
|
|
Thanks, you've solved my problem
James |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Apr 25, 2004 4:58 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 6:42 pm Post subject: |
|
|
I thought it was sorted cos i could ping my network, but the internet doesnt work, any ideas? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Apr 25, 2004 6:45 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 7:06 pm Post subject: |
|
|
which one of these should i remove the # for, or both?
#iface_eth0="dhcp"
#dhcpcd_eth0="..." |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Apr 25, 2004 7:23 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 7:50 pm Post subject: |
|
|
ok ive done that, but its still not working (tho i can ping my network) |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Apr 25, 2004 8:02 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Apr 25, 2004 8:38 pm Post subject: |
|
|
Yes ive done all of that |
|
Back to top |
|
|
avendesora Veteran
Joined: 16 Aug 2002 Posts: 1739 Location: Betelgeuse vicinity
|
Posted: Mon Apr 26, 2004 11:48 am Post subject: |
|
|
does your firewall let the traffic through? |
|
Back to top |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Mon Apr 26, 2004 1:47 pm Post subject: |
|
|
well the family windows box's internet works |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Apr 26, 2004 2:12 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Mon Apr 26, 2004 4:02 pm Post subject: |
|
|
this is the contents of /etc/resolv.conf
|
|
Back to top |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Mon Apr 26, 2004 6:05 pm Post subject: |
|
|
I just cant work out what the problem is |
|
Back to top |
|
|
Some_Other_Nerd n00b
Joined: 23 Apr 2004 Posts: 32 Location: 127.0.0.1 and ::1
|
Posted: Mon Apr 26, 2004 9:09 pm Post subject: |
|
|
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 |
|
|
jaz9090 Apprentice
Joined: 11 Sep 2003 Posts: 214
|
Posted: Tue Apr 27, 2004 3:51 pm Post subject: |
|
|
now mozilla sits there 4 ages trying 2 resolv host before not working |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Tue Apr 27, 2004 6:09 pm Post subject: |
|
|
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 |
|
|
|