[Linux-bruxelles] debian ip dynamic

Alain BarBason alain at barbason.be
Sam 28 Sep 11:13:19 CEST 2002


Bonjour,

Mon serveur debian fonctionne toujours, mais j'ai un problème avec les 
adresses ip dynamic.
Je rappelle donc que j'ai un serveur (p75) avec debian 3, mode console 
que je parviens a me connecter en adsl, mais tout les 36 heures mon 
provider change mon IP. Mon serveur detecte bien cela, relance ppp mais 
la connexion ne se fait pas.
Voici mon /var/log/message ou l'on voit bien un problème
La première partie est le boot, m'attribuant l'adresse 213.193.168.37
La deuxième, est la détection de la fermeture et reouverture de la ligne 
(il me reattribue 213.193.168.37, je pense que c'est par hasard que 
c'est la même, car en général elle est différente)
On y voit a la fin un calling sur 192.168.0.2 qui a l'air d'échouer.
Je mets aussi le "ifconfig" (qui a part le nbre de RX/TX) est identique 
avant et après ainsi que le "netstat -rn" avant et après.
Dans ce dernier, on y voit une ligne qui manque, si je la rajoute à la 
main avec
route add default gw 213.193.168.1
je retrouve la bonne table, mais cela ne marche pas pour autant.

Avez vous une idée ?



Sep 26 16:33:24 sabb kernel: VFS: Mounted root (ext2 filesystem) readonly.
Sep 26 16:33:24 sabb kernel: Freeing unused kernel memory: 56k freed
Sep 26 16:33:24 sabb kernel: Adding Swap: 48640k swap-space (priority -1)
Sep 26 16:33:24 sabb kernel: nbd: registered device at major 43
Sep 26 16:33:24 sabb kernel: eepro_init_module: Auto-detecting boards 
(May God protect us...)
Sep 26 16:33:24 sabb kernel: CSLIP: code copyright 1989 Regents of the 
University of California
Sep 26 16:33:24 sabb kernel: PPP: version 2.3.7 (demand dialling)
Sep 26 16:33:24 sabb kernel: PPP line discipline registered.
Sep 26 16:33:24 sabb kernel: registered device ppp0
Sep 26 16:33:24 sabb pppd[332]: pppd 2.4.1 started by root, uid 0
Sep 26 16:33:24 sabb pppd[332]: Serial connection established.
Sep 26 16:33:24 sabb pppd[332]: Using interface ppp0
Sep 26 16:33:24 sabb pppd[332]: Connect: ppp0 <--> /dev/pts/0
Sep 26 16:33:27 sabb kernel: PPP BSD Compression module registered
Sep 26 16:33:27 sabb kernel: PPP Deflate Compression module registered
Sep 26 16:33:28 sabb pppd[332]: local  IP address 213.193.168.37
Sep 26 16:33:28 sabb pppd[332]: remote IP address 213.193.168.1
Sep 26 16:33:28 sabb pppd[332]: primary   DNS address 212.100.160.51
Sep 26 16:33:28 sabb pppd[332]: secondary DNS address 212.100.160.52
Sep 26 16:33:31 sabb kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR 
(dynamic channels, max=256).
Sep 26 16:33:31 sabb kernel: SLIP linefill/keepalive option.
Sep 26 16:33:31 sabb lpd[407]: restarted
Sep 26 16:33:32 sabb diald[349]: start sl0: SIOCSIFMETRIC: Operation not 
supported
Sep 26 16:33:33 sabb kernel: Packet log: forward DENY ppp0 PROTO=17 
192.168.0.3:32778 212.100.160.51:53 L=63 S=0x00 I=31008 F=0x4000 T=63 (#3)
Sep 26 16:33:38 sabb kernel: Packet log: forward DENY ppp0 PROTO=17 
192.168.0.3:32779 212.100.160.52:53 L=63 S=0x00 I=31509 F=0x4000 T=63 (#3)
Sep 26 16:33:48 sabb wu-ftpd[811]: FTP server (Version wu-2.6.2(1) Sun 
Mar 10 20:00:40 GMT 2002) ready.
Sep 26 16:53:21 sabb -- MARK --
Sep 26 17:13:21 sabb -- MARK --
Sep 26 17:33:21 sabb -- MARK --
Sep 26 17:53:21 sabb -- MARK --
Sep 26 18:13:21 sabb -- MARK --
Sep 26 18:33:21 sabb -- MARK --

etc...

Sep 28 03:53:22 sabb -- MARK --
Sep 28 04:13:22 sabb -- MARK --
Sep 28 04:33:22 sabb -- MARK --
Sep 28 04:33:47 sabb pppd[332]: LCP terminated by peer
Sep 28 04:33:50 sabb pppd[332]: Connection terminated.
Sep 28 04:33:50 sabb pppd[332]: Connect time 2160.4 minutes.
Sep 28 04:33:50 sabb pppd[332]: Sent 4435302 bytes, received 23583840 bytes.
Sep 28 04:34:20 sabb pppd[332]: Serial connection established.
Sep 28 04:34:20 sabb pppd[332]: Using interface ppp0
Sep 28 04:34:20 sabb pppd[332]: Connect: ppp0 <--> /dev/pts/0
Sep 28 04:34:22 sabb pppd[332]: local  IP address 213.193.168.37
Sep 28 04:34:22 sabb pppd[332]: remote IP address 213.193.168.1
Sep 28 04:34:22 sabb pppd[332]: primary   DNS address 212.100.160.51
Sep 28 04:34:22 sabb pppd[332]: secondary DNS address 212.100.160.52
Sep 28 04:34:41 sabb diald[349]: Trigger: udp       192.168.0.1/1028 
212.100.160.51/53
Sep 28 04:34:41 sabb diald[349]: Calling site 192.168.0.2
Sep 28 04:34:41 sabb diald[349]: No devices free to call out on.
Sep 28 04:34:41 sabb diald[349]: Connect script failed.
Sep 28 04:34:41 sabb diald[349]: Delaying 1 seconds before clear to dial.
Sep 28 04:34:43 sabb diald[349]: Calling site 192.168.0.2
Sep 28 04:34:43 sabb diald[349]: No devices free to call out on.
Sep 28 04:34:44 sabb diald[349]: Connect script failed.
Sep 28 04:34:44 sabb diald[349]: Delaying 1 seconds before clear to dial.

etc...

---------------------------ifconfig ------------------------------------

eth0      Link encap:Ethernet  HWaddr 00:50:BA:27:1C:AE
           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:14404 errors:0 dropped:0 overruns:0 frame:0
           TX packets:14684 errors:0 dropped:0 overruns:0 carrier:0
           collisions:4 txqueuelen:100
           RX bytes:1518351 (1.4 MiB)  TX bytes:9208861 (8.7 MiB)
           Interrupt:11 Base address:0x1000

eth1      Link encap:Ethernet  HWaddr 00:50:BA:09:A4:BB
           inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:11687 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10703 errors:0 dropped:0 overruns:0 carrier:0
           collisions:2 txqueuelen:100
           RX bytes:8348815 (7.9 MiB)  TX bytes:1218522 (1.1 MiB)
           Interrupt:10 Base address:0x1100

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:3924  Metric:1
           RX packets:98 errors:0 dropped:0 overruns:0 frame:0
           TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:7896 (7.7 KiB)  TX bytes:7896 (7.7 KiB)

ppp0      Link encap:Point-to-Point Protocol
           inet addr:213.193.168.37  P-t-P:213.193.168.1 
Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
           RX packets:11685 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10701 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:10
           RX bytes:9561451 (9.1 MiB)  TX bytes:1292816 (1.2 MiB)

sl0       Link encap:Serial Line IP
           inet addr:192.168.0.1  P-t-P:192.168.0.2  Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:10
           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

-----------------------------------netstat -rn avant------------------

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
192.168.0.2     0.0.0.0         255.255.255.255 UH        0 0          0 sl0
213.193.168.1   0.0.0.0         255.255.255.255 UH        0 0          0 
ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 
eth0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 
eth1
0.0.0.0         213.193.168.1   0.0.0.0         UG        0 0          0 
ppp0
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 sl0

-----------------------------------netstat -rn apres------------------

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
192.168.0.2     0.0.0.0         255.255.255.255 UH        0 0          0 sl0
213.193.168.1   0.0.0.0         255.255.255.255 UH        0 0          0 
ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 
eth0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 
eth1
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 sl0



-- 
by AlainBB
http://www.barbason.be





Plus d'informations sur la liste de diffusion Linux-bruxelles