Connexion internet via CPL Freebox

Bonjour, je poste aujourd’hui car j’ai un problème de connexion à internet.
J’utilise le cable ETHERNET qui sort du boitier CPL fourni avec la FREEBOX (ma FREEBOX est dans une autre pièce).
L’icône en haut à droite de mon écran semble montrer (ci j’ai bien compris), qu’un réseau est bien détecté. Cette icône est un triangle jaune contenant un point d’interrogation, qui masque en partie un souris. Ci-joint le l’image de mon icône

Je n’arrive pas néanmoins à faire aboutir cette GRRRRRRR connexion.

Je joint différentes sorties qui peuvent peut-être aider à comprendre le pb.

/etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
	address 192.168.0.10
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.254
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 212.27.54.252 212.27.53.252

lspci 00:00.0 Host bridge: Silicon Integrated Systems [SiS] 645xx (rev 03) 00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202 00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS963 [MuTIOL Media IO] (rev 14) 00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller 00:02.3 FireWire (IEEE 1394): Silicon Integrated Systems [SiS] FireWire Controller 00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] 00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0) 00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) 00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) 00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) 00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller 00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91) 00:08.0 Communication controller: Intel Corporation 536EP Data Fax Modem 01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX 440 AGP 8x] (rev a2)

ifup eth0 SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device SIOCSIFBRDADDR: No such device eth0: ERROR while getting interface flags: No such device eth0: ERROR while getting interface flags: No such device

ifconfig[code]
eth1 Link encap:Ethernet HWaddr 00:10:dc:e4:75:cf
inet adr:169.254.70.225 Bcast:169.254.255.255 Masque:255.255.0.0
adr inet6: fe80::210:dcff:fee4:75cf/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:7243 (7.0 KiB) TX bytes:20060 (19.5 KiB)
Interruption:19 Adresse de base:0xec00

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:364 errors:0 dropped:0 overruns:0 frame:0
TX packets:364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:82961 (81.0 KiB) TX bytes:82961 (81.0 KiB)
[/code]

/etc/init.d/networking restart Running ./networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...done.

j’ai fait des networking restart parce que j’ai essayé de modifier des choses dans le fichier interfaces, mais rien ne se passe. D’ailleurs je ne comprends pas grand chose non plus !

Voilà, si quelqu’un a des éléments de réponse !


Pas de eth0 mais eth1

[code]eth1      Link encap:Ethernet  HWaddr 00:10:dc:e4:75:cf 
          inet adr:169.254.70.225  Bcast:169.254.255.255  Masque:255.255.0.0
          adr inet6: fe80::210:dcff:fee4:75cf/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:7243 (7.0 KiB)  TX bytes:20060 (19.5 KiB)
          Interruption:19 Adresse de base:0xec00 [/code]


# dhclient eth1

Pas de eth0 mais eth1

eth1 Link encap:Ethernet HWaddr 00:10:dc:e4:75:cf inet adr:169.254.70.225 Bcast:169.254.255.255 Masque:255.255.0.0 adr inet6: fe80::210:dcff:fee4:75cf/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:66 errors:0 dropped:0 overruns:0 frame:0 TX packets:127 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 RX bytes:7243 (7.0 KiB) TX bytes:20060 (19.5 KiB) Interruption:19 Adresse de base:0xec00

dhclient eth1

Ok, je modifie ça ce soir (je ne peux pas le faire avant) et je réponds demain pour dire si ça a marché !

Ok, je modifie ça ce soir (je ne peux pas le faire avant) et je réponds demain pour dire si ça a marché !

Bon voilà, j’ai modifié le paramétrage en remplaçant eth0 par eth1

Voici mon fichier /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp

Le résultat de la commande ifconfig

eth1      Link encap:Ethernet  HWaddr 00:10:dc:e4:75:cf  
          inet adr:192.168.0.14  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::210:dcff:fee4:75cf/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:88 errors:0 dropped:0 overruns:0 frame:0
          TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:11808 (11.5 KiB)  TX bytes:36582 (35.7 KiB)
          Interruption:19 Adresse de base:0xec00 

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          RX bytes:63909 (62.4 KiB)  TX bytes:63909 (62.4 KiB)

Et celui de la commande ifup eth1

Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/00:10:dc:e4:75:cf
Sending on   LPF/eth1/00:10:dc:e4:75:cf
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 192.168.0.254
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.0.254
bound to 192.168.0.14 -- renewal in 376082 seconds.

Je dois dire que le résultat est toujours le même, la connexion n’aboutit pas.

La commande uname -a donne

Linux Linux 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2011 i686 GNU/Linux

Ta carte eth1 est affublée du numéro IP 192.168.0.14 obtenue par l’offre
dhcp émanant de 192.168.0.254 , la communication PC-CPL-BOX est en place.

Numéro IP de la box : 192.168.0.254

route add default gw 192.168.0.254

Reste à voir DNS
Test de la résolution de nom :

ping google.org

en effet, ifconfig et ifup semblent corrects, reste à savoir si ça pingue ?

je me suis loggé en root.
Je me suis mis dans le répertoire /tmp/internetPC/ et ai lancé

root@Linux: /tmp/internetPC# ping google.org

Le résultat est

ping : unknown host google.org

Pinguer la box pour s’assurer que la connexion est active

ping 192.168.0.254

Résolution de noms, DNS, revoir le fichier /etc/resolv.conf.

On sauvegarde l’ancien resolv.conf

cat /etc/resolv.conf > /etc/resolv.conf-2011-03-23

On en remplace le contenu par “nameserver 192.168.0.254”, ici numéro IP de la box. Définir un DNS alternatif à ta convenance si ça ne convient pas.

echo “nameserver 192.168.0.254” > /etc/resolv.conf

On pingue google.org

ping google.org

il y a quoi dans le fichier /etc/resolv.conf ?

normalement pour une freebox c’est :
nameserver 212.27.40.240
nameserver 212.27.40.241

Mon fichier /etc/resolv.conf initial contient :

### BEGIN INFO
#
# Modified_by : NetworkManager
# Process :     /usr/bin/NetworkManager
# Process_id :  2491
#
### END INFO

J’ai fait comme tu m’a dit

cat resolv.conf /etc/resolv.conf_20110323
echo "nameserver 192.168.0.254" > /etc/resolv.conf
ping 192.168.0.254

J’obtiens

Si je fais ensuite

J’obtiens toujours ping : unknown host google.org

perso je dirai de faire

apt-get remove network-manager

à cause du Modified_by : NetworkManager
attend un autre avis cependant.


Rebelote, 
[code]# dhclient eth1
# route add default gw 192.168.0.254[/code]

DNS : 192.168.0.254 est une fausse piste, (merci limax).
limax a 212.27.40.240 et 212.27.40.241
plus haut chez toi il était question de : 
[quote]# dns-* options are implemented by the resolvconf package, if installed
   dns-nameservers 212.27.54.252 212.27.53.252[/quote]

À cet effet, tu en as quatre à tester, les anciens et ceux donnés par limax
 
# echo "nameserver 212.27.54.252" > /etc/resolv.conf 

Virer network manager ? pourquoi pas ...

Rebelote,

[code]# dhclient eth1

route add default gw 192.168.0.254[/code]

DNS : 192.168.0.254 est une fausse piste, (merci limax).
limax a 212.27.40.240 et 212.27.40.241
plus haut chez toi il était question de :

[quote]# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 212.27.54.252 212.27.53.252[/quote]

À cet effet, tu en as quatre à tester, les anciens et ceux donnés par limax

echo “nameserver 212.27.54.252” > /etc/resolv.conf

Virer network manager ? pourquoi pas …

Je crois qu’on progresse.
Au départ j’ai fait

echo "nameserver xxx.xxx.xx.xxx" > /etc/resolv.conf
ping xxx.xxx.xx.xxx
ping google.com

pour chaque adresse
[ul]
212.27.54.252
212.27.53.252
212.27.40.240
212.27.40.241
[/ul]

Les quatre fois, j’ai eu
connect: Network is unreachable pour le 1er ping
ping: ubknown host google.org pour le deuxième ping

après, j’ai fait dhclient eth1
qui ne renvoie rien,
puis route add default gw 192.168.0.254
qui renvoie le message suivant :

j’ai fait derrière
echo “nameserver 192.168.0.254” > /etc/resolv.conf
ping 192.168.0.254

et là :

root@Linux:/etc# ping 192.168.0.254
PING 192.168.0.254 (192.168.0.254) 56(84) bytes of data.
64 bytes from 192.168.0.254: icmp_req=1 ttl=64 time=4.31 ms
64 bytes from 192.168.0.254: icmp_req=2 ttl=64 time=4.99 ms
64 bytes from 192.168.0.254: icmp_req=3 ttl=64 time=5.10 ms
^C
--- 192.168.0.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 4.313/4.803/5.100/0.358 ms
root@Linux:/etc# 

J’ai refait ping google.com
J’ai encore le message ping: ubknown host google.org
mais il semble mettre un peu plus de temps à apparaître.

A force de chercher, j’ai sérieusement progressé.

La carte ETHERNET est bien reconnue

root@Linux:/etc/network# dmesg | grep eth
[    1.704808] eth0: SiS 900 PCI Fast Ethernet at 0xec00, IRQ 19, 00:10:dc:e4:75:cf
[    1.791123] udev: renamed network interface eth0 to eth1
[   15.957193] eth1: Media Link On 100mbps full-duplex 
[   23.988018] eth1: no IPv6 routers present
[  153.012008] eth1: no IPv6 routers present
[ 5127.605217] eth1: Media Link On 100mbps full-duplex 
[ 5199.204008] eth1: no IPv6 routers present

Et j’ai modifié le fichier /etc/network/interfaces comme ci-après

auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp

Puis j’ai fait /etc/init.d/networking restart (et peut-être aussi dhclient mais je ne m’en souviens plus).
Bref, j’ai enfin eu une connexion.

En rallumant la machine cependant, elle ne s’est pas connecté tout de suite mais après plusieurs minutes ; et j’ai toujours l’icone bizarre (cf. 1er message).

Si qulequ’un a une dernière explication pour ces deux points.