public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Networking problems
@ 2006-11-04  2:57 Jeff Cranmer
  2006-11-04  3:15 ` Novensiles divi Flamen
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Cranmer @ 2006-11-04  2:57 UTC (permalink / raw
  To: gentoo-user

I seem to have some network issues with my gentoo install

I have /etc/init.0/net.eth0 configured to run at the default runlevel.
It appears to startup ok.  No firewall has been installed yet.
The network appears to startup eth0 correctly, obtaining a dhcp address from my 
cable provider via the router.

The problem is that I do not seem to have a network connection.
pinging http://www.google.com produces no response.
attempting to emerge x11-xorg gives a 'temporary failure in name resolution'
pinging the router ip address similarly elicits no response.

The etc/conf.d/net file contains

dns_domain_lo="homenetwork"
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"

The /etc/conf.d/hostname file contains

HOSTNAME="tux"

If I run /etc/init.d/net.eth0 restart, I get

Unmounting network filesystems
Stopping eth0
  Bringing down eth0
    Stopping dhcpcd on eth0
Starting eth0
  Bringing up eth0
    dhcp
      Running dhcpcd
      eth0 received address 192.168.2.4/24
Mounting network filesystems

With the corresponding 'OK' comments on the right of the screen.
Nothing extra appears in dmesg in response to this command.

Any advice gratefully received.

Thanks in advance

Jeff
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Networking problems
  2006-11-04  2:57 [gentoo-user] Networking problems Jeff Cranmer
@ 2006-11-04  3:15 ` Novensiles divi Flamen
  0 siblings, 0 replies; 6+ messages in thread
From: Novensiles divi Flamen @ 2006-11-04  3:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

On Saturday 04 November 2006 09:57, Jeff Cranmer wrote:
> I seem to have some network issues with my gentoo install
>
> I have /etc/init.0/net.eth0 configured to run at the default runlevel.
> It appears to startup ok.  No firewall has been installed yet.
> The network appears to startup eth0 correctly, obtaining a dhcp address
> from my cable provider via the router.
>
Are you getting DNS and default route settings from the DHCP server? Your 
option 'nodns' means you'd need to have it set manually. 

cat /etc/resolv.conf should show the value of your DNS server.

route -n should show your default gateway. Check that both values are sane.

- Noven
-- 
>-- Novensiles divi Flamen --<
>---- Miles Militis Fons ----<

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Networking problems
@ 2006-11-04 12:24 Jeff Cranmer
  2006-11-04 13:29 ` Mick
  2006-11-06 13:29 ` Hans-Werner Hilse
  0 siblings, 2 replies; 6+ messages in thread
From: Jeff Cranmer @ 2006-11-04 12:24 UTC (permalink / raw
  To: gentoo-user

After reading the comments at the top of the /etc/conf.d/net, a blank file will automatically use DHCP for any net.* scripts in /etc/init.d, so I commented out all the parameters that I'd added.  The file then matches the one in the livecd boot-up that I used to install the OS.

For the /etc/resolv.conf file, I have:
search belkin
nameserver 192.168.2.1
nameserver 207.69.188.185
nameserver 207.69.188.186
nameserver 207.69.188.187

route -n returns
Kernel IP routing table
Destination       Gateway          Genmask           Flags    Metric    Ref     Use      Iface
192.168.2.0      0.0.0.0            255.255.255.0     U         0          0        0          eth0
127.0.0.0          0.0.0.0            255.0.0.0            U         0          0        0          lo
0.0.0.0             192.168.2.1      0.0.0.0               UG      0         0        0          eth0

Comparing this with the equivalent working connection via my Mandriva Linux boot-up,  /etc/resolv.conf is the same, but route -n returns
Kernel IP routing table
Destination       Gateway          Genmask           Flags    Metric    Ref     Use      Iface
192.168.2.0      0.0.0.0            255.255.255.0     U         10         0        0          eth0
169.254.0.0       0.0.0.0           255.0.0.0            U         10         0        0          eth0
127.0.0.0          0.0.0.0            255.0.0.0            U         0          0        0          lo
0.0.0.0             192.168.2.1      0.0.0.0               UG      10         0        0          eth0

The main difference is that the metric column is all 0 on my non-working install, and I'm missing the 169.254.0.0 row from route -n

I'm not using genkernel.  Is it possible that a kernel misconfiguration is responsible for the problems I'm having?

Thanks

Jeff


-----Original Message-----
>From: Novensiles divi Flamen <noven@sincorp.org>
>Sent: Nov 3, 2006 10:15 PM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] Networking problems
>
>On Saturday 04 November 2006 09:57, Jeff Cranmer wrote:
>> I seem to have some network issues with my gentoo install
>>
>> I have /etc/init.0/net.eth0 configured to run at the default runlevel.
>> It appears to startup ok.  No firewall has been installed yet.
>> The network appears to startup eth0 correctly, obtaining a dhcp address
>> from my cable provider via the router.
>>
>Are you getting DNS and default route settings from the DHCP server? Your 
>option 'nodns' means you'd need to have it set manually. 
>
>cat /etc/resolv.conf should show the value of your DNS server.
>
>route -n should show your default gateway. Check that both values are sane.
>
>- Noven
>-- 
>>-- Novensiles divi Flamen --<
>>---- Miles Militis Fons ----<

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Networking problems
  2006-11-04 12:24 Jeff Cranmer
@ 2006-11-04 13:29 ` Mick
  2006-11-06 13:29 ` Hans-Werner Hilse
  1 sibling, 0 replies; 6+ messages in thread
From: Mick @ 2006-11-04 13:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

On Saturday 04 November 2006 12:24, Jeff Cranmer wrote:

> Comparing this with the equivalent working connection via my Mandriva Linux
> boot-up,  /etc/resolv.conf is the same, but route -n returns Kernel IP
> routing table
> Destination       Gateway          Genmask           Flags    Metric    Ref
>     Use      Iface 192.168.2.0      0.0.0.0            255.255.255.0     U 
>        10         0        0          eth0 169.254.0.0       0.0.0.0       
>    255.0.0.0            U         10         0        0          eth0
> 127.0.0.0          0.0.0.0            255.0.0.0            U         0     
>     0        0          lo 0.0.0.0             192.168.2.1      0.0.0.0    
>           UG      10         0        0          eth0

Have you tried only entering config_eth0=( "dhcp" ) in your /etc/conf.d/net 
and leaving all the routing and dns setting to dhcpcd to sort out?  Have you 
a complicating LAN arrangement that requires the nodns option?
-- 
Regards,
Mick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Networking problems
@ 2006-11-04 14:33 Jeff Cranmer
  0 siblings, 0 replies; 6+ messages in thread
From: Jeff Cranmer @ 2006-11-04 14:33 UTC (permalink / raw
  To: gentoo-user

Perhaps removing all the lines from the net configuration script was the key after all.
It didn't work on the next boot-up cycle, but on the one following that, without performing any extra configuration steps, the network connection was operational :-/

I have a network.  Now I can proceed with installing kde :-)

The results of ifconfig and route -n are unchanged.

Jeff


-----Original Message-----
>From: Mick <michaelkintzios@gmail.com>
>Sent: Nov 4, 2006 8:29 AM
>To: gentoo-user@lists.gentoo.org
>Subject: Re: [gentoo-user] Networking problems
>
>On Saturday 04 November 2006 12:24, Jeff Cranmer wrote:
>
>> Comparing this with the equivalent working connection via my Mandriva Linux
>> boot-up,  /etc/resolv.conf is the same, but route -n returns Kernel IP
>> routing table
>> Destination       Gateway          Genmask           Flags    Metric    Ref
>>     Use      Iface 192.168.2.0      0.0.0.0            255.255.255.0     U 
>>        10         0        0          eth0 169.254.0.0       0.0.0.0       
>>    255.0.0.0            U         10         0        0          eth0
>> 127.0.0.0          0.0.0.0            255.0.0.0            U         0     
>>     0        0          lo 0.0.0.0             192.168.2.1      0.0.0.0    
>>           UG      10         0        0          eth0
>
>Have you tried only entering config_eth0=( "dhcp" ) in your /etc/conf.d/net 
>and leaving all the routing and dns setting to dhcpcd to sort out?  Have you 
>a complicating LAN arrangement that requires the nodns option?
>-- 
>Regards,
>Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Networking problems
  2006-11-04 12:24 Jeff Cranmer
  2006-11-04 13:29 ` Mick
@ 2006-11-06 13:29 ` Hans-Werner Hilse
  1 sibling, 0 replies; 6+ messages in thread
From: Hans-Werner Hilse @ 2006-11-06 13:29 UTC (permalink / raw
  To: gentoo-user

Hi,

On Sat, 4 Nov 2006 07:24:51 -0500 (GMT-05:00) Jeff Cranmer
<jcranmer01@earthlink.net> wrote:

> For the /etc/resolv.conf file, I have:
> search belkin
> nameserver 192.168.2.1
> nameserver 207.69.188.185
> nameserver 207.69.188.186
> nameserver 207.69.188.187

Given that the router runs a local DNS (caching) server, that should be
alright.

> route -n returns
> Kernel IP routing table
> Destination       Gateway          Genmask           Flags
> Metric    Ref     Use      Iface
> 192.168.2.0  0.0.0.0      255.255.255.0  U  0  0  0   eth0
> 127.0.0.0    0.0.0.0      255.0.0.0      U  0  0  0   lo
> 0.0.0.0      192.168.2.1  0.0.0.0       UG  0  0  0   eth0

looks good.

> Comparing this with the equivalent working connection via my Mandriva
> Linux boot-up,  /etc/resolv.conf is the same, but route -n returns
> [...]
> The main difference is that the metric column is all 0 on my
> non-working install, and I'm missing the 169.254.0.0 row from route -n

That doesn't matter. That 169.254.0.0 subnet is the Windows
autoconfiguration range (when there's no DHCP server, but IP address
gathering is set to "automatic") and the metric doesn't matter because
you don't have concurrent routes.

> I'm not using genkernel.  Is it possible that a kernel
> misconfiguration is responsible for the problems I'm having?

Unlikely, because in that case DHCP wouldn't work at all.

Maybe the Belkin is blocking your pings? Maybe the Belkin is
misconfigured and does not have Internet access? Maybe some firewall,
either on the Belkin or on your Gentoo machine (you can check by
issuing "iptables -vnL")?

You should also try to monitor traffic with tcpdump when issuing those
test pings. BTW, you cannot ping "http://www.google.de" since that
isn't a domain name but a URL. But you probably *did* ping the domain
name, didn't you?

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-06 13:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04  2:57 [gentoo-user] Networking problems Jeff Cranmer
2006-11-04  3:15 ` Novensiles divi Flamen
  -- strict thread matches above, loose matches on Subject: below --
2006-11-04 12:24 Jeff Cranmer
2006-11-04 13:29 ` Mick
2006-11-06 13:29 ` Hans-Werner Hilse
2006-11-04 14:33 Jeff Cranmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox