Page 1 sur 1

[knetworkmanager] pb résolution DNS (remplacé par wicd)

Publié : dim. 08 nov. 2009, 18:16
par cedric
Bonjour à tous,

J'ai un chti souci avec le tout nouveau knetworkmanager annoncé ici.
Ma connexion wifi s'établit correctement, j'ai une adresse IP et j'arrive à faire un PING avec les machines de mon réseau local.

Par contre, je n'ai pas Internet. Je pense à un problème de résolution DNS (vu que je ping) et vous ?

++

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 18:57
par Nic0
Salut,

Ce n'est pas parce que tu ping tes machines en local que tu te retrouves avec un problème lié avec les DNS.

Au cas où quand même, si vraiment tel était le cas, tu devrais pouvoir envoyer un ping sur un site distant.

Et par exemple sur google.fr devrait te retourner une réponse, si tu n'as pas de réponse de ping, c'est que ça ne doit pas venir de tes DNS.

Code : Tout sélectionner

-18:52- [nicolas@sweet ~] $ ping -c1 209.85.229.104
PING 209.85.229.104 (209.85.229.104) 56(84) bytes of data.
64 bytes from 209.85.229.104: icmp_seq=1 ttl=49 time=57.6 ms

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 19:11
par cedric
En effet, ce n'est pas le cas :

Code : Tout sélectionner

connect : Network is unreachable
Mais alors, quelle piste suivre ?

++

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 21:46
par benjarobin
Simple la passerelle n'a pas été défini ou mal défini. (default gateway)

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 21:50
par cedric
Tiens Salut benjarobin ;)

J'ai besoin de toucher à la "default gateway" du fichier /etc/rc.conf quand je suis en DHCP ? encore plus quand on utilise knetworkmanager ?

++

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 21:55
par benjarobin
Je ne sais pas comment fonction networkmanager, mais en tout cas que donne ceci : route -n

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 22:16
par cedric
Le résultat du route -n :

Code : Tout sélectionner

[cedric@macbookpro-cedric:~] $ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

[cedric@macbookpro-cedric:~] $ sudo route -n
Mot de passe :
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     2      0        0 eth0
Un petit ifconfig au passage :

Code : Tout sélectionner

[cedric@macbookpro-cedric:~] $ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:25:00:4C:89:FB
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::225:ff:fe4c:89fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:61
          TX packets:7 errors:6 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2034 (1.9 Kb)  TX bytes:654 (654.0 b)
          Interrupt:23
J'en profite pour te donner mon rc.conf :

Code : Tout sélectionner

#
# /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", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# 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="fr_FR.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Paris"
KEYMAP="mac-fr-ext_new"
CONSOLEFONT="lat9w-16"
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=(lib80211_crypt_tkip wl !b43 !ssb nvidia_bl)
#MODULES=()

# 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="macbookpro-cedric"

# 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 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
eth1="dhcp"
INTERFACES=(eth0 eth1)

# 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 192.168.0.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=(syslog-ng !network hal networkmanager netfs crond @alsa @pommed kdm @sshd)
++

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 22:31
par benjarobin
Bon je ne sais pas pourquoi la passerelle n'a pas été défini automatiquement, tu peux faire ceci en root :
route add default gw 192.168.0.1

Sinon pourquoi tu es obligé d'être root pour afficher route -n ??? Comprend pas non plus

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 23:10
par cedric
Bonne question, mes groupes ont l'air correct pourtant :

Code : Tout sélectionner

[cedric@macbookpro-cedric:~] $ id
uid=1000(cedric) gid=1000(cedric) groupes=7(lp),10(wheel),19(log),90(network),91(video),92(audio),93(optical),94(floppy),95(storage),96(scanner),98(power),100(users),1000(cedric)
Sinon, suite à ta commande, j'ai du (un tout petit peu) mieux :

Code : Tout sélectionner

[cedric@macbookpro-cedric:~] $ ping -c1 209.85.229.104
PING 209.85.229.104 (209.85.229.104) 56(84) bytes of data.

--- 209.85.229.104 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

[cedric@macbookpro-cedric:~] $ ping google.com
ping: unknown host google.com
++

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 23:43
par benjarobin
Il faut configurer les DNS, mais tu as foutu quoi avec ta config ?

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : dim. 08 nov. 2009, 23:51
par Nic0
Salut benjarobin,

Code : Tout sélectionner

$ ping -c1 209.85.229.104
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Le paquet a été perdu lors du ping avec une IP,
Ne persiste-t-il pas un problème avant la configuration des DNS ?

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : lun. 09 nov. 2009, 00:00
par benjarobin
Je n'avait pas fais attentions, peut être que la passerelle n'est pas la bonne. Je suis pas devin. elle est peut être en 254. Il connait mieux l'adresse de son routeur que moi. Cela aurait été bien de remettre la sortie de la commande route -n. Puis un ping du routeur (qui devrai marcher sans passerelle).

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : lun. 09 nov. 2009, 09:56
par cedric
J'ai donné le résultat de la commande route -n --> http://forums.archlinux.fr/post41947.html#p41947

Ma passerelle est bien 192.168.0.1, je te l'aurais dit sinon ;)

Pour ma config, je suis sur une install toute fraîche, avec knetworkmanager installé. J'ai encore du louper un truc mais je vois pas bien quoi...

Je vais essayer avec wicd pour voir.

++

Re: [knetworkmanager] pb résolution DNS (nouveau)

Publié : lun. 09 nov. 2009, 10:21
par cedric
1. yaourt -R networkmanager kdeplasma-applets-networkmanager
2. suppression de "networkmanager" dans les DAEMONS du rc.conf
3. yaourt -S wicd
4. ajout de "wicd" dans les DAMEONS du rc.conf

Et hop, je suis connecté en wifi, je peux faire un route -n sans être root et j'ai accès à l'extérieur, Internet, etc. ;)

Donc, knetworkmanager n'est pas encore au point ou il a des requis que je n'ai pas rempli...

Merci à vous pour votre soutien.
++