reseau en panne?
J Bond 0.07
jojonuxdelux at gmail.com
Lun 18 Fév 15:29:54 UTC 2008
J Bond 0.07 wrote:
> c.kumsta wrote:
>> Mais je ne vois pas l'interêt de la ligne :
>> "nameserver 194.206.126.253;nameserver 194.206.126.54;" ??
>> (je ne sais même pas si c'est "nameserver" est quelque chose de valide
>> dans un dhcpd.conf !)
>> étant donné que tu précises :
>> "option domain-name-servers 127.0.0.1;" dans le bloc.
>>
>> Si tu veux mettre les dns de ton FAI, il faut que tu le fasses dans
>> l'option "domain-name-servers" :
>> "option domain-name-servers 194.206.126.253, 194.206.126.54;"
>> (qui remplace bien entendu le "option domain-name-servers 127.0.0.1;")
>>
>> ++dune2
>>
>> J Bond 0.07 a écrit :
>>> Suite à la mise au point pécèdente de dhcpd.conf,
>>> et d'après /var/log/daemon.log, j'ai du rajouter les dns de mon fai:
>>>
>>> nameserver 194.206.126.253;nameserver 194.206.126.54;
>>> subnet 192.168.88.0 netmask 255.255.255.0 {
>>> option routers 192.168.88.1;
>>> range 192.168.88.1 192.168.88.254;
>>> option domain-name-servers 127.0.0.1;
>>> option domain-name "chikungugna.org";
>>> option subnet-mask 255.255.255.0;
>>> option ip-forwarding on;
>>> default-lease-time 21600;
>>> max-lease-time 43200;
>>> or j'ai les fautes suivantes que je ne sais pas interprèter:
>>> /etc/dhcp3/dhcpd.conf line 1: semicolon expected.
>>> name-server 194.
>>> ^
>>> /etc/dhcp3/dhcpd.conf line 1: semicolon expected.
>>> name-server 194.206.126.253;name-server 194.
>>> ^
>>> Configuration file errors encountered -- exiting
>>> mb at moustique:~$
>>>
>>> S'il te plait , patience j'apprends petit à petit à interpèter
>>> les fautes?
>>>
>>>
>>
>>
>> oui! c'est bien plus simple comme tu dis :
>
> subnet 192.168.88.0 netmask 255.255.255.0 {
> option routers 192.168.88.1;
> range 192.168.88.1 192.168.88.254;
> option domain-name-servers 127.0.0.1, 194.206.126.253 ,194.206.126.54;
> option domain-name "chikungugna.org";
> option subnet-mask 255.255.255.0;
> option ip-forwarding on;
> default-lease-time 21600;
> max-lease-time 43200;
> }
>
> Mais : /var/log/daemon.log gueule :
> Feb 18 15:56:15 localhost dhcpd:
> Feb 18 15:56:15 localhost dhcpd:
> Feb 18 15:56:15 localhost dhcpd: Not configured to listen on any
> interfaces!
> Feb 18 16:01:28 localhost dhclient: DHCPDISCOVER on eth2 to
> 255.255.255.255 port 67 interval 5
> Feb 18 16:01:33 localhost dhclient: DHCPDISCOVER on eth2 to
> 255.255.255.255 port 67 interval 12
> Feb 18 16:01:45 localhost dhclient: DHCPDISCOVER on eth2 to
> 255.255.255.255 port 67 interval 13
> Feb 18 16:01:58 localhost dhclient: DHCPDISCOVER on eth2 to
> 255.255.255.255 port 67 interval 1
> Feb 18 16:01:59 localhost dhclient: No DHCPOFFERS received.
> Feb 18 16:01:59 localhost dhclient: Trying recorded lease 192.168.0.133
> Feb 18 16:01:59 localhost avahi-autoipd(eth2)[12542]: A routable address
> has been configured.
> Feb 18 16:01:59 localhost avahi-autoipd(eth2)[12542]: Callout UNBIND,
> address 169.254.5.88 on interface eth2
> Feb 18 16:01:59 localhost avahi-daemon[7323]: Leaving mDNS multicast
> group on interface eth2.IPv4 with address 169.254.5.88.
> Feb 18 16:01:59 localhost avahi-daemon[7323]: Joining mDNS multicast
> group on interface eth2.IPv4 with address 192.168.0.133.
> Feb 18 16:01:59 localhost avahi-daemon[7323]: Registering new address
> record for 192.168.0.133 on eth2.IPv4.
> Feb 18 16:01:59 localhost avahi-daemon[7323]: Withdrawing address record
> for 169.254.5.88 on eth2.
> Feb 18 16:02:02 localhost avahi-autoipd(eth2)[12542]: No longer a
> routable address configured, restarting probe process.
> Feb 18 16:02:02 localhost avahi-daemon[7323]: Withdrawing address record
> for 192.168.0.133 on eth2.
> Feb 18 16:02:02 localhost avahi-daemon[7323]: Leaving mDNS multicast
> group on interface eth2.IPv4 with address 192.168.0.133.
> Feb 18 16:02:02 localhost avahi-daemon[7323]: Interface eth2.IPv4 no
> longer relevant for mDNS.
> Feb 18 16:02:02 localhost dhclient: No working leases in persistent
> database - sleeping.
> Feb 18 16:02:03 localhost ntpd[7298]: Deleting interface #13 eth2:avahi,
> 169.254.5.88#123, interface stats: received=0, sent=0, dropped=0,
> active_time=2100 secs
> Feb 18 16:02:07 localhost avahi-autoipd(eth2)[12542]: Callout BIND,
> address 169.254.5.88 on interface eth2
> Feb 18 16:02:07 localhost avahi-daemon[7323]: Joining mDNS multicast
> group on interface eth2.IPv4 with address 169.254.5.88.
> Feb 18 16:02:07 localhost avahi-daemon[7323]: New relevant interface
> eth2.IPv4 for mDNS.
> Feb 18 16:02:07 localhost avahi-daemon[7323]: Registering new address
> record for 169.254.5.88 on eth2.IPv4.
> Feb 18 16:02:11 localhost avahi-autoipd(eth2)[12542]: Successfully
> claimed IP address 169.254.5.88
> Feb 18 16:02:19 localhost dhclient: DHCPDISCOVER on eth0 to
> 255.255.255.255 port 67 interval 3
> Feb 18 16:02:22 localhost dhclient: DHCPDISCOVER on eth0 to
> 255.255.255.255 port 67 interval 8
> Feb 18 16:02:30 localhost dhclient: DHCPDISCOVER on eth0 to
> 255.255.255.255 port 67 interval 18
> Feb 18 16:02:48 localhost dhclient: DHCPDISCOVER on eth0 to
> 255.255.255.255 port 67 interval 2
> Feb 18 16:02:50 localhost dhclient: No DHCPOFFERS received.
> Feb 18 16:02:50 localhost dhclient: No working leases in persistent
> database - sleeping.
>
> mb at moustique:~$ sudo /etc/init.d/dhcp3-server start
> * Starting DHCP server dhcpd3 [fail]
> mb at moustique:~$ sudo /etc/init.d/networking start
> * Configuring network interfaces... [ OK ]
> mb at moustique:~$
>
> Si le reseau est pret?
> Il est possible que j(interdise l'attribution d'adresses dhcp par
> firestarter en les bloquant pour le moment en adresses fixes?
>
> C'est plus facile pour le moment!
>
> Je ne me suis pas encore penché sur firestarter en lignes de commande :
> sudo firestarter
>
Destination Passerelle Genmask Indic Metric Ref Use
Iface
lns4.l0.8.143.1 * 255.255.255.255 UH 0 0 0 ppp0
link-local * 255.255.0.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth2
default * 0.0.0.0 U 0 0 0 ppp0
default * 0.0.0.0 U 1000 0 0 eth2
mb at moustique:~$ sudo ifconfig
eth0 Lien encap:Ethernet HWaddr 00:13:8F:7A:C6:DD
UP BROADCAST MULTICAST MTU:1500 Metric:1
Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:0 (0.0 b) Octets transmis:0 (0.0 b)
Interruption:16 Adresse de base:0xc000
eth1 Lien encap:Ethernet HWaddr 00:18:E7:07:F9:F4
adr inet6: fe80::218:e7ff:fe07:f9f4/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Packets reçus:224 erreurs:0 :0 overruns:0 frame:0
TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:74779 (73.0 KB) Octets transmis:55278 (53.9 KB)
Interruption:19 Adresse de base:0x4800
eth2 Lien encap:Ethernet HWaddr 00:10:A7:0C:8B:55
adr inet6: fe80::210:a7ff:fe0c:8b55/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Packets reçus:22619 erreurs:0 :0 overruns:0 frame:0
TX packets:20129 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:14016339 (13.3 MB) Octets transmis:2007583 (1.9 MB)
Interruption:20 Adresse de base:0xec00
eth0:avah Lien encap:Ethernet HWaddr 00:13:8F:7A:C6:DD
inet adr:169.254.10.9 Bcast:169.254.255.255 Masque:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interruption:16 Adresse de base:0xc000
eth2:avah Lien encap:Ethernet HWaddr 00:10:A7:0C:8B:55
inet adr:169.254.5.88 Bcast:169.254.255.255 Masque:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interruption:20 Adresse de base:0xec00
lo Lien 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
Packets reçus:1291 erreurs:0 :0 overruns:0 frame:0
TX packets:1291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
Octets reçus:111906 (109.2 KB) Octets transmis:111906 (109.2 KB)
ppp0 Lien encap:Protocole Point-à-Point
inet adr:195.6.246.66 P-t-P:195.146.243.8
Masque:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
Packets reçus:15698 erreurs:0 :0 overruns:0 frame:0
TX packets:12794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:3
Octets reçus:10040989 (9.5 MB) Octets transmis:998789 (975.3 KB)
mb at moustique:~$
Plus d'informations sur la liste de diffusion ubuntu-fr