You are not logged in.

#1 2010-04-19 19:50:08

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

[solved] network

Hi all,

I've been trying to set network working on my desktop but haven't been succeeded till now..

I noticed a weird situation (at least to me)
if I do ping google: ping -c 3 www.google.com
I'll get in the final statistics time = 11149ms
but if I do ping google as : ping -c 3 209.85.229.147
I'll get time = 2003 ms

>.< hope anyone knows what's wrong so I can fix this smile

tks in advance for your time smile

Last edited by babalu_pt (2010-04-20 22:07:38)

Offline

#2 2010-04-19 19:59:02

i_love_penguins
Member
From: Germany
Registered: 2010-03-30
Posts: 46
Website

Re: [solved] network

How did you setup your network?

Your description sounds like you are having DNS problems.

Offline

#3 2010-04-19 20:13:42

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

Re: [solved] network

atm I disabled network daemon and installed wicd.. but I was having the very same problem before.

By configuring wicd I was hopping that the problem would desapier since (I think) wicd does the config for me.


Edit:
By the way.. my computer is connected to a router. all I've been trying to do was setting up dinamic IP or static IP (as very noob never managed to set static one to work lol). as I couldnt set it to work ok I went on wicd >.<

Last edited by babalu_pt (2010-04-19 20:21:57)

Offline

#4 2010-04-19 20:20:19

i_love_penguins
Member
From: Germany
Registered: 2010-03-30
Posts: 46
Website

Re: [solved] network

So you are connecting to a wired network? Tell us more about your environment.

And please post the contents of your /etc/resolv.conf

cat /etc/resolv.conf

Offline

#5 2010-04-19 20:21:26

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: [solved] network

Try to configure your DNS servers manually and try the ones from your ISP and maybe some of google or whoever you trust. Google's are 8.8.8.8 and 8.8.4.4.

Offline

#6 2010-04-19 20:26:12

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

Re: [solved] network

cat /etc/resolv.conf

# Generated by dhcp from eth0
# /etc/resolv.conf.head can replace this line
nameserver 10.10.10.1
# /etc/resolv.conf.tail can replace this line

Offline

#7 2010-04-19 20:28:09

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

Re: [solved] network

Surgat_ wrote:

Try to configure your DNS servers manually and try the ones from your ISP and maybe some of google or whoever you trust. Google's are 8.8.8.8 and 8.8.4.4.

that dns on the cat is correct.. the 2nd one I set on router is 10.10.11.1..


Edit:
shall I add the 2nd one?

Last edited by babalu_pt (2010-04-19 20:31:09)

Offline

#8 2010-04-19 20:42:21

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: [solved] network

Add it, it will make no harm. Also, check the ping response time of both servers: if they are too slow you should try different ones.

Offline

#9 2010-04-19 21:18:05

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

Re: [solved] network

Surgat_ wrote:

Add it, it will make no harm. Also, check the ping response time of both servers: if they are too slow you should try different ones.

no difference

I've just used the dig command and ran on both IP's and both answers were imidiat and with correct ip's which works ok when I ping them. >.<
seems my desktop doesnt like me lOl

Offline

#10 2010-04-20 18:23:18

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

Re: [solved] network

This is my rc.conf (in case it helps on finding the problem)

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pt_PT.UTF-8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin9"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(!net-pf-10 !snd_pcsp !pcspkr loop sis900 !mii !ppp_generic !slhc !soundcore)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="arch"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 10.10.10.171 netmask 255.255.255.0 broadcast 10.10.10.255"
eth0="dhcp"
INTERFACES=(!eth0 !wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 10.10.10.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(!network !dhcdbd !networkmanager @syslog-ng gpm netfs @crond dbus hal oss wicd)

If there is any other thing u wanna see...

I'll try now avoid my router DNS service and try it out here >.< *prays that'll work* lol

Offline

#11 2010-04-20 22:07:18

babalu_pt
Member
Registered: 2010-04-19
Posts: 9

Re: [solved] network

First of all I wanna say tks for all that gave me some replies >.<

apparently I got this working smile
steps I've done ..

1st remove wicd and reactivate network
2nd setup static IP
3nd deactivate resolv.conf update
4th set nameservers manually

this is my actual config:
rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
MODULES=(!net-pf-10 !snd_pcsp !pcspkr loop sis900 !mii !ppp_generic !slhc !soundcore)
# one of the 1st things I've done ( heading to solve the problem ) was only load the module I wanted to use 
# so I ran hwdetect --show-net to see what it'd show (mii ppp_generic sis900 slhc)
# so I loaded the sis900 and discarded all others... dunno if it has any influence but I did :)
# have I done the correct thing?

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
HOSTNAME="arch"

#Static IP
eth0="eth0 10.10.10.171 netmask 255.255.255.0 broadcast 10.10.10.255"
INTERFACES=(eth0 !wlan0)

gateway="default gw 10.10.10.1"
ROUTES=(gateway)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
DAEMONS=(network dhcdbd !networkmanager @syslog-ng gpm netfs @crond dbus hal oss !wicd)
# here I did discarded wicd and set back network :)

I only pasted the things that I've changed to set up network.. all others erased them

//

then I disabled the nameserver refresh at /etc/dhcpd.conf

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Inform the DHCP server of our hostname for DDNS.
hostname
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
noipv4ll
nohook resolv.conf

I just added this last line smile

then I set up nameservers manualy at /etc/resolv.conf

# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
nameserver 212.55.154.174
nameserver 212.55.154.190
# /etc/resolv.conf.tail can replace this line

this way it's all working apparently fine smile
if there is any thing that I've done worng pls correct me.. so I won't have troubles in the future smile

ps. I guess all I needed to do was to set the nohook at dhcpd.conf and set the nameservers manualy... but I feel ok with the static ip tougth tongue I had to try till make it to work big_smile

Last edited by babalu_pt (2010-04-20 22:33:40)

Offline

Board footer

Powered by FluxBB