[RÉSOLU] problème réseau

J’ai bien cherché tte la journée mais en vain donc, la queue entre les jambes, je viens demandé de l’aide, siouplé.
Ça se présente comme suit :
une machine serveur sur P4
une machine client sur P3
P4 avec une Debian Sid fonctionne parfaitement en liaison avec le P3(Etch)
P4 avec une Debian Etch ne fonctionne pas avec le m^ P3(Etch)
Je ne sais plus où chercher car j’ai exactement les m^ fichiers en ce qui concerne
le parefeu
/etc/network/interfaces
les interfaces sont reconnues sur les deux machines
le switch est bien allumé au niveau des diodes
Ds /etc/sysctl.conf,
net.ipv4.conf.default.forwarding=1
est bien décommenté
J’ai certainement oublié de charger ou de modifier qq chose mais je donne ma langue au chat (m^ s’il est petit et noir :wink: )
J’ai repris tt le fil qui m’a servi à installer mon premier réseau mais sans succès.

Le ping fonctionne-t-il?
Que donne ifconfig sur le P4 quand ça ne marche pas?
Que donne route -n sur le P4 quand ça ne marche pas?
Y-a-t-i un message dans dmesg sur le P4 quand ça ne marche pas?
différence avec le cas où ça marche…

Ping à partir du P4 (ttes les diodes du switch et des cartes sont allumées donc liaison électrique OK)
(192.168.3.199, étant l’adresse LAN du P3 reconnue par ifconfig quand la liaison est OK, ce qui n’est pas le cas présent)
(bien sûr, m^ réponse du P3 vers le P4 : “unreachable”)

ricardo@etch-hda9:~$ ping 192.168.3.199
PING 192.168.3.199 (192.168.3.199) 56(84) bytes of data.
From 192.168.3.1 icmp_seq=2 Destination Host Unreachable
From 192.168.3.1 icmp_seq=3 Destination Host Unreachable
From 192.168.3.1 icmp_seq=4 Destination Host Unreachable

--- 192.168.3.199 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5001ms
, pipe 3
ricardo@etch-hda9:~$

IFCONFIG à partir du P4
(eth0 = LAN)
(eth1 = liaison freebox, adresse DHCP ( 82.251.194.4) vérifiée )
(IDEM pour la distrib qui fonctionne)

ricardo@etch-hda9:~$ sudo ifconfig
Password:
eth0      Lien encap:Ethernet  HWaddr 00:17:9A:7B:CB:C5
          inet adr:192.168.3.1  Bcast:192.168.3.255  Masque:255.255.255.0
          adr inet6: fe80::217:9aff:fe7b:cbc5/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:0 (0.0 b)  TX bytes:3301 (3.2 KiB)
          Interruption:193

eth1      Lien encap:Ethernet  HWaddr 00:08:54:3E:A2:91
          inet adr:82.251.194.4  Bcast:82.251.194.255  Masque:255.255.255.0
          adr inet6: fe80::208:54ff:fe3e:a291/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:315 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:574616 (561.1 KiB)  TX bytes:25602 (25.0 KiB)
          Interruption:177 Adresse de base:0x8400

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
          RX packets:73 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:5272 (5.1 KiB)  TX bytes:5272 (5.1 KiB)

ROUTE -N à partir du P4

ricardo@etch-hda9:~$ sudo route -n
Password:
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
82.251.194.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         82.251.194.254  0.0.0.0         UG    0      0        0 eth1
ricardo@etch-hda9:~$

DMESG
(il semblerait qu’ ADDRconf soit en cause - à la fin- )

Linux version 2.6.17-2-686 (Debian 2.6.17-9) (waldi@debian.org) (gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)) #1 SMP Wed Sep 13 16:34:10 UTC 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fffc000 (usable)
 BIOS-e820: 000000001fffc000 - 000000001ffff000 (ACPI data)
 BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131068
  DMA zone: 4096 pages, LIFO batch:0
  Normal zone: 126972 pages, LIFO batch:31
DMI 2.3 present.
ACPI: RSDP (v000 ASUS                                  ) @ 0x000f5810
ACPI: RSDT (v001 ASUS   P4S8X    0x42302e31 MSFT 0x31313031) @ 0x1fffc000
ACPI: FADT (v001 ASUS   P4S8X    0x42302e31 MSFT 0x31313031) @ 0x1fffc0c0
ACPI: BOOT (v001 ASUS   P4S8X    0x42302e31 MSFT 0x31313031) @ 0x1fffc030
ACPI: MADT (v001 ASUS   P4S8X    0x42302e31 MSFT 0x31313031) @ 0x1fffc058
ACPI: DSDT (v001   ASUS P4S8X    0x00001000 MSFT 0x0100000b) @ 0x00000000
ACPI: PM-Timer IO Port: 0xe408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:2 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 128, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl edge)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 20 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 30000000 (gap: 20000000:dec00000)
Built 1 zonelists
Kernel command line: root=/dev/hda9 ro 
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 8192 bytes)
Detected 2533.527 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512276k/524272k available (1482k kernel code, 11388k reserved, 544k data, 196k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 5072.63 BogoMIPS (lpj=10145266)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 3febfbff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 3febfbff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Hyper-Threading is disabled
CPU: After all inits, caps: 3febfbff 00000000 00000000 00000080 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 16k freed
CPU0: Intel(R) Pentium(R) 4 CPU 2.53GHz stepping 04
Total of 1 processors activated (5072.63 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
Brought up 1 CPUs
migration_cost=0
checking if image is initramfs... it is
Freeing initrd memory: 4311k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xf11b0, last bus=1
Setting up standard PCI resources
ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
Enabling SiS 96x SMBus.
PCI: Ignoring BAR0-3 of IDE controller 0000:00:02.5
Boot video device is 0000:01:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 16 devices
PnPBIOS: Disabled by ACPI PNP
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:02: ioport range 0xe400-0xe47f could not be reserved
pnp: 00:02: ioport range 0xe480-0xe4ff has been reserved
pnp: 00:02: ioport range 0xe600-0xe61f has been reserved
pnp: 00:02: ioport range 0x480-0x48f has been reserved
pnp: 00:0f: ioport range 0x295-0x296 has been reserved
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: d6000000-d7ffffff
  PREFETCH window: dff00000-febfffff
PCI: Setting latency timer of device 0000:00:01.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
Simple Boot Flag at 0x3a set to 0x1
audit: initializing netlink socket (disabled)
audit(1170503726.692:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 controller doesn't have AUX irq; using default 12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
Using IPI No-Shortcut mode
ACPI wakeup devices: 
PCI0 PCI1 PS2K USB0 USB3 USB1 USB2 
ACPI: (supports S0 S1 S4 S5)
Freeing unused kernel memory: 196k freed
input: AT Translated Set 2 keyboard as /class/input/input0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 0000:00:02.5
ACPI: PCI Interrupt 0000:00:02.5[A] -> GSI 16 (level, low) -> IRQ 177
SIS5513: chipset revision 0
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller
    ide0: BM-DMA at 0xb400-0xb407, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xb408-0xb40f, BIOS settings: hdc:pio, hdd:DMA
Probing IDE interface ide0...
usbcore: registered new driver usbfs
usbcore: registered new driver hub
sis900.c: v1.08.09 Sep. 19 2005
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
SCSI subsystem initialized
libata version 1.20 loaded.
hda: Maxtor 6E040L0, ATA DISK drive
hdb: IDE DVD-ROM 16X, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdd: LITE-ON LTR-40125S, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
ACPI: PCI Interrupt 0000:00:04.0[A] -> GSI 19 (level, low) -> IRQ 185
0000:00:04.0: Realtek RTL8201 PHY transceiver found at address 1.
0000:00:04.0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0x9800, IRQ 185, ff:ff:ff:ff:ff:ff.
ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 193
skge 1.5 addr 0xd3000000 irq 193 chip Yukon-Lite rev 9
skge eth1: addr 00:17:9a:7b:cb:c5
ACPI: PCI Interrupt 0000:00:03.3[D] -> GSI 23 (level, low) -> IRQ 201
ehci_hcd 0000:00:03.3: EHCI Host Controller
ehci_hcd 0000:00:03.3: new USB bus registered, assigned bus number 1
PCI: cache line size of 128 is not supported by device 0000:00:03.3
ehci_hcd 0000:00:03.3: irq 201, io mem 0xd4000000
ehci_hcd 0000:00:03.3: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(133)
hda: cache flushes supported
 hda: hda1 hda4 < hda5 hda6 hda7<6>ACPI: PCI Interrupt 0000:00:03.0[A] -> GSI 20 (level, low) -> IRQ 169
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.0: irq 169, io mem 0xd5800000
 hda8 hda9 >
hdb: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:03.1[B] -> GSI 21 (level, low) -> IRQ 209
ohci_hcd 0000:00:03.1: OHCI Host Controller
ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:03.1: irq 209, io mem 0xd5000000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:03.2[C] -> GSI 22 (level, low) -> IRQ 217
ohci_hcd 0000:00:03.2: OHCI Host Controller
ohci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 4
ohci_hcd 0000:00:03.2: irq 217, io mem 0xd4800000
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
8139cp: pci dev 0000:00:0c.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the "8139too" driver instead.
sata_promise 0000:00:0e.0: version 1.04
ACPI: PCI Interrupt 0000:00:0e.0[A] -> GSI 16 (level, low) -> IRQ 177
8139too Fast Ethernet driver 0.9.27
ata1: SATA max UDMA/133 cmd 0xD0874200 ctl 0xD0874238 bmdma 0x0 irq 177
ata2: SATA max UDMA/133 cmd 0xD0874280 ctl 0xD08742B8 bmdma 0x0 irq 177
usb 2-2: new low speed USB device using ohci_hcd and address 2
ata1: SATA link down (SStatus 0)
scsi0 : sata_promise
usb 2-2: configuration #1 chosen from 1 choice
ata2: SATA link down (SStatus 0)
scsi1 : sata_promise
ohci_hcd 0000:00:03.2: wakeup
ACPI: PCI Interrupt 0000:00:0c.0[A] -> GSI 16 (level, low) -> IRQ 177
eth0: RealTek RTL8139 at 0x8400, 00:08:54:3e:a2:91, IRQ 177
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
usbcore: registered new driver hiddev
input: Logitech Optical USB Mouse as /class/input/input1
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:03.0-2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
Attempting manual resume
usb 4-1: new full speed USB device using ohci_hcd and address 2
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
usb 4-1: configuration #1 chosen from 1 choice
ts: Compaq touchscreen protocol output
mice: PS/2 mouse device common for all mice
Linux agpgart interface v0.101 (c) Dave Jones
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
agpgart: Detected SiS 648 chipset
agpgart: AGP aperture is 64M @ 0xd8000000
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Real Time Clock Driver v1.12ac
input: PC Speaker as /class/input/input2
00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0c: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
gameport: EMU10K1 is pci0000:00:0b.1/gameport0, io 0x8800, speed 817kHz
sis96x_smbus 0000:00:02.1: SiS96x SMBus base address: 0xe600
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 19 (level, low) -> IRQ 185
Adding 586332k swap on /dev/hda7.  Priority:-1 extents:1 across:586332k
EXT3 FS on hda9, internal journal
loop: loaded (max 8 devices)
device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
skge eth0: enabling interface
ADDRCONF(NETDEV_UP): eth0: link is not ready

POURTANT :

ricardo@etch-hda9:~$ sudo ifup eth0
Password:
ifup: interface eth0 already configured
ricardo@etch-hda9:~$

DMSEG (fin) quand ça fonctionne, càd avec distrib sid sur hda8

IPv6 over IPv4 tunneling driver skge eth0: enabling interface ADDRCONF(NETDEV_UP): eth0: link is not ready skge eth0: Link is up at 1000 Mbps, full duplex, flow control tx and rx ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready eth1: link up, 100Mbps, full-duplex, lpa 0x45E1 eth0: no IPv6 routers present

Je sais, ton P4 est un serveur DHCP je présume? Regardes si par hasard le serveur dhcp est lancé ou installé?

Sinon, si P3 est en statique, ça devient curieux… car là, le P4 devrait voir P3.

Que donnes ifconfig sur P3 quand ça ne marche pas?

[quote=“fran.b”]Je sais, ton P4 est un serveur DHCP je présume?
OUI
Regardes si par hasard le serveur dhcp est lancé ou installé?
installé, il l’est mais lancé, comment savoir ?

Sinon, si P3 est en statique, ça devient curieux… car là, le P4 devrait voir P3.
[color=blue]

P3 : le ‘interfaces’

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

allow-hotplug eth0
iface eth0 inet dhcp[/color]

Que donnes ifconfig sur P3 quand ça ne marche pas?[/quote]

[color=blue]IFCONFIG quand çà fonctionne (j’y suis)
quand ça ne fonctionne pas, la deuxième ligne est absente

eth0 Lien encap:Ethernet HWaddr 00:17:9A:7B:C5:36
inet adr:192.168.3.199 Bcast:192.168.3.255 Masque:255.255.255.0
adr inet6: fe80::217:9aff:fe7b:c536/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6078 errors:0 dropped:0 overruns:0 frame:0
TX packets:1214 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:815841 (796.7 KiB) TX bytes:163745 (159.9 KiB)
Interruption:5

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
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:6196 (6.0 KiB) TX bytes:6196 (6.0 KiB)[/color]

Bon, je présume que c’est la ligne eth0 qui n’y est pas quand ça ne marche pas.

Bon

  1. Vérification: Tu te mets dans la situation où ça ne marche pas et tu fais coté P3

ifconfig eth0 192.168.3.199 up

là les pings devraient marcher.

  1. Si c’est le cas, tu vas sur P4 et tu fais

/etc/init.d/dhcp start

et tu vois ce qui coince.

[quote=“fran.b”]Bon, je présume que c’est la ligne eth0 qui n’y est pas quand ça ne marche pas.

Bon

  1. Vérification: Tu te mets dans la situation où ça ne marche pas et tu fais coté P3

ifconfig eth0 192.168.3.199 up

là les pings devraient marcher.

NON , réponse :
192.168.3.199: ERROR getting interface flags: aucun périphérique de ce type.

  1. Si c’est le cas, tu vas sur P4 et tu fais

/etc/init.d/dhcp start

J’ai fait mais le rslt est le m^ .

et tu vois ce qui coince.[/quote]

Attends, ça n’est pas possible. C’est bien P4 qui a Etch et Sid, P3 est tout le temps le même et ne dépend pas de la configuration de P4. Donc je résume:

P4 SID / P3 OK, P3=192.168.3.199

P4 ETCH / P3 pas bon

Donc fais la chose suivante:

Tu mets P4 en SID et lance P3 et tu fais un ping sur P4 en permanence, ça marche tu laisses pinguer.

Tu redémarre P4 en Etch.

  1. Les pings reprennent: C’est ton serveur DHCP qui ne marche pas
  2. Les pings ne reprennent pas, le réseau de P4 n’est pas bon.

(j’espère que tu n’as pas d’iptables rejettant les pings sur P4)

[quote=“fran.b”]Attends, ça n’est pas possible. C’est bien P4 qui a Etch et Sid, P3 est tout le temps le même et ne dépend pas de la configuration de P4. Donc je résume:

P4 SID / P3 OK, P3=192.168.3.199 EXACT

P4 ETCH / P3 pas bon EXACT

Donc fais la chose suivante:

Tu mets P4 en SID et lance P3 et tu fais un ping sur P4 en permanence, ça marche tu laisses pinguer.

Tu redémarre P4 en Etch.

  1. Les pings reprennent: C’est ton serveur DHCP qui ne marche pas
  2. Les pings ne reprennent pas, le réseau de P4 n’est pas bon.
    Je vais essayer
    (j’espère que tu n’as pas d’iptables rejettant les pings sur P4)[/quote]

MON IPTABLES

[code]# Generated by iptables-save v1.3.6 on Sat Feb 3 19:34:46 2007
*raw
:PREROUTING ACCEPT [12515:5475229]
:OUTPUT ACCEPT [8132:985950]
COMMIT

Completed on Sat Feb 3 19:34:46 2007

Generated by iptables-save v1.3.6 on Sat Feb 3 19:34:46 2007

*mangle
:PREROUTING ACCEPT [12515:5475229]
:INPUT ACCEPT [8709:3377462]
:FORWARD ACCEPT [3806:2097767]
:OUTPUT ACCEPT [8132:985950]
:POSTROUTING ACCEPT [11964:3088364]
COMMIT

Completed on Sat Feb 3 19:34:46 2007

Generated by iptables-save v1.3.6 on Sat Feb 3 19:34:46 2007

*nat
:PREROUTING ACCEPT [1260:149160]
:POSTROUTING ACCEPT [14:1290]
:OUTPUT ACCEPT [1050:135453]
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT

Completed on Sat Feb 3 19:34:46 2007

Generated by iptables-save v1.3.6 on Sat Feb 3 19:34:46 2007

*filter
:INPUT DROP [1054:136546]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [8132:985950]
-A INPUT -i eth0 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j DROP
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5222 -j ACCEPT
-A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o eth1 -j ACCEPT
COMMIT

Completed on Sat Feb 3 19:34:46 2007

[/code]

RSLT :
Les pings reprennent et je peux me connecter sur le Net (je tape actuellement du P3 avec le P4 sur Etch)
C’est donc le serveur dhcp qui merde mais de quel côté ?
P4 etch, je suppose car P3, lui ne change pas.
J’attends le médicament pour le soigner mais il est trop tard pour ce soir car tu dois être couché :wink:
A memain donc de te lire pour savoir comment réparer ce serveur dhcp.
merci encore pour ta patience.

Déjà, tu peux retrouver tes logs de dhcp sur ton p4 (log autonome, ou traces dans syslog, daemon.log ou dans messages).
Tu peux aussi dire dans le dhcpd.conf (ou dans /etc/default/dhcpdpeut être) que tu veux qu’il démarre en mode verbeux, pour avoir plus d’infos dans les logs.
Bon, je vais dormir.

[quote=“ricardo”]RSLT :
Les pings reprennent et je peux me connecter sur le Net (je tape actuellement du P3 avec le P4 sur Etch)
C’est donc le serveur dhcp qui merde mais de quel côté ?
P4 etch, je suppose car P3, lui ne change pas.
J’attends le médicament pour le soigner mais il est trop tard pour ce soir car tu dois être couché :wink:
A memain donc de te lire pour savoir comment réparer ce serveur dhcp.
merci encore pour ta patience.[/quote]

Je te suggère de faire

/etc/init.d/dhcp start

et de voir ce qui se passe.

pas mieux MAIS :
J’ai retrouvé qq chose qui doit donner la réponse :
/etc/dhcp3/dhcpd.conf du P4 sid qui_va_bien, il y a 6 lignes que j’avais ajoutées sur le conseil d’un de vs deux en suivant un article di site “coagul”.
J’ai comparé avec le m^ fixchier du P4 etch qui_déconne :
cet ajout n’y est pas.
Il me faut donc trouver
option domain-name"ricardodomaine.com"
option domain-name-servers 212.27.53.252 212.27.54.252
option routers (ça je pense que c’est tjrs le m^= 192.168.3.1)
default-lease-time (3600, je pense que ça ne change pas)
subnet 192.168.3.0 netmask 255.255.255.0 (ça doit être aussi le m^ )
range 192.168.3.100 192.168.3.200 (là aussi je crois devoir recopierle m^ )

Ma question :
où je trouve le domain-name ?
est-ce que je conserve les m^ options du domain-name-servers ?

domainname est un peu comme tu veux, tu peux le trouvé dans

/etc/hosts (à la fin du nom de tes machines),

met ce que tu veux, ça n’a pas d’importance.

Dans nameserver, met les DNS déclarés dans /etc/resolv.conf de P4

J’en suis au m^ point :
j’ai ajouté les m^ données, qui dvraient aller bien mais rien n’y fait.
Je ne sais plus où chercher.
Est-ce qu’on peut réinstaller le serveur dhcp et si oui, comment ?
et tjrs ça à la fin de dmesg

Bizarre ça, que donne

$ dmesg | grep eth0

et éventuellement y-a-t-ilm des lignes qui apparaissent à la fin de /var/log/syslog après avoir lancer le dhcp

La dernière ligne ptet ?

ricardo@etch-hda9:~$ sudo dmesg | grep eth0 Password: eth0: SiS 900 PCI Fast Ethernet at 0x9800, IRQ 185, ff:ff:ff:ff:ff:ff. eth0: RealTek RTL8139 at 0x8400, 00:08:54:3e:a2:91, IRQ 177 eth0: Identified 8139 chip type 'RTL-8100B/8139D' skge eth0: enabling interface ADDRCONF(NETDEV_UP): eth0: link is not ready skge eth0: Link is up at 1000 Mbps, full duplex, flow control tx and rx ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready eth0: no IPv6 routers present ricardo@etch-hda9:~$

Non, le ipv6 on s’en moque mais celle d’avant indique que eth0 est up et que tout va bien.

sur P4, refais un

ifdown eth0

ifup eth0

/etc/init.d/dhcp start

après un /etc/init.d/dhcp start :

Feb 4 18:55:16 etch-hda9 dhclient: DHCPREQUEST on eth1 to 82.248.80.254 port 67 Feb 4 18:55:16 etch-hda9 dhclient: DHCPACK from 82.248.80.254 Feb 4 18:55:16 etch-hda9 dhclient: bound to 82.248.80.184 -- renewal in 45 seconds.