View previous topic :: View next topic |
Author |
Message |
Coeus-CH n00b
Joined: 30 Mar 2004 Posts: 4
|
Posted: Tue Mar 30, 2004 6:21 pm Post subject: Network setup during installation |
|
|
Hey,
I am booting off a minimal live cd and I have DHCP from my router going. My eth0 gets all the correct information from the router. I am able to ping outside IP addresses, but I am unable to ping DNS names (i.e. google.com). All the info in my ifconfig and /etc/resolv.conf are correcet, as is my route -n. Here is the info from all of those in case that would help:
Code: | ifconfig
eth0 Link encap:Ethernet HWaddr 00:A0:CC:E5:0A:18
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:ccff:fee5:a18/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets: 44 errors:4 dropped:0 overruns:0 carrier:8
collisions:0 txqueuelen:1000
RX bytes:12402 (12.1 Kb) TX bytes:4317 (4.2 Kb)
Interrupt:11 Base address:0xec00
|
Code: | cat /etc/resolv.conf
namserver 63.240.76.4
namserver 204.127.198.4
search insightbb.com |
Code: | route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 |
any help in getting my internet up would be much appreciated...TIA |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Tue Mar 30, 2004 6:29 pm Post subject: |
|
|
Check in /etc/conf.d/net that you have your gateway set correctly at the bottom. I had similar problems when I had this set wrong. |
|
Back to top |
|
|
Coeus-CH n00b
Joined: 30 Mar 2004 Posts: 4
|
Posted: Tue Mar 30, 2004 6:49 pm Post subject: |
|
|
I looked in /etc/conf.d/net and everything was commented out except for one line. I went down to the bottom, and it had my correct gateway address, but it was commented out. So, I uncommented it, and tried to ping google.com...i still got an unknown host error. I then tried to ping gentoo.org...it pulled the ip address, but it timed out with 100% packet loss. I have no idea how it pulled the ip from gentoo and not google...
I then went back into /etc/conf.d/net and added the comment to the gateway line again to put it back to normal. Perhaphs I should go through that file and uncomment more lines? |
|
Back to top |
|
|
daveb Tux's lil' helper
Joined: 20 Nov 2003 Posts: 137 Location: In front of my computer, duh!
|
Posted: Tue Mar 30, 2004 10:42 pm Post subject: Re: Network setup during installation |
|
|
[quote="Coeus-CH"]
Code: | cat /etc/resolv.conf
namserver 63.240.76.4
namserver 204.127.198.4
search insightbb.com |
It should be nameserver, not namserver. _________________ WARNING: Not reading the Gentoo Handbook can be hazardous to your computer! |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Mar 31, 2004 1:07 am Post subject: |
|
|
It also looks like eth0 has the same IP address as your gateway. I'm no networking expert, but I don't think this will work.
Code: | eth0 Link encap:Ethernet HWaddr 00:A0:CC:E5:0A:18
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 |
Code: | Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 |
|
|
Back to top |
|
|
Coeus-CH n00b
Joined: 30 Mar 2004 Posts: 4
|
Posted: Wed Mar 31, 2004 1:14 am Post subject: |
|
|
sorry, I was copying from my other monitor....the ip address of eth0 is 192.168.0.8
and it is nameserver in /etc/resolv.conf ...forgote the e's
any other help? |
|
Back to top |
|
|
daveb Tux's lil' helper
Joined: 20 Nov 2003 Posts: 137 Location: In front of my computer, duh!
|
Posted: Wed Mar 31, 2004 2:17 am Post subject: |
|
|
Coeus-CH wrote: | I then went back into /etc/conf.d/net and added the comment to the gateway line again to put it back to normal. Perhaphs I should go through that file and uncomment more lines? |
You should have 2 uncommented lines for eth0:
Code: | iface_eth0="dhcp"
gateway="eth0/192.168.0.1"
|
_________________ WARNING: Not reading the Gentoo Handbook can be hazardous to your computer! |
|
Back to top |
|
|
Coeus-CH n00b
Joined: 30 Mar 2004 Posts: 4
|
Posted: Wed Mar 31, 2004 3:30 am Post subject: |
|
|
daveb - that didnt help at all...still having the same prolems... |
|
Back to top |
|
|
|