Je veut configurer mon pc pour qu'il partage sa connexion a internet avec 2 autres pc : eth0 -->internet eth1-->pc client 1 eth2 --> pc client 2 J'ai installé dpcp et essayé de le configurer proprement # dhcpd.conf option subnet-mask 255.255.255.0; default-lease-time 600; ddns-update-style ad-hoc; #max-lease-time 7200; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). #log-facility local7; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.10 192.168.0.250; option broadcast-address 192.168.0.255; option routers 192.168.0.1; option domain-name-servers 195.162.196.2; option domain-name-servers 195.162.197.2; } subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.250; option broadcast-address 192.168.1.255; option routers 192.168.1.1; option domain-name-servers 195.162.196.2; option domain-name-servers 195.162.197.2; } apres cela debian:/home/guy# dhcpd eth1 eth2 Internet Software Consortium DHCP Server V3.0pl2 Copyright 1995-2003 Internet Software Consortium. All rights reserved. For info, please visit http://www.isc.org/products/DHCP Wrote 5 leases to leases file. Multiple interfaces match the same subnet: eth1 eth2 Multiple interfaces match the same shared network: eth1 eth2 Listening on LPF/eth2/00:50:fc:46:ff:99/192.168.0.0/24 Sending on LPF/eth2/00:50:fc:46:ff:99/192.168.0.0/24 Listening on LPF/eth1/00:05:5d:5f:40:3a/192.168.0.0/24 Sending on LPF/eth1/00:05:5d:5f:40:3a/192.168.0.0/24 Sending on Socket/fallback/fallback-net mais a partir des pc client c'est pas efficasse bien que l'adresse ip le broadcast et le mask soient ok pas de ping sur 192.168.0.1 Pour finir voici mon ifconfig eth0 Lien encap:Ethernet HWaddr 00:50:BA:33:40:D2 inet adr:213.132.129.198 Bcast:213.132.129.255 Masque:255.255.254.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:37567 errors:0 dropped:0 overruns:0 frame:5 TX packets:16597 errors:0 dropped:0 overruns:0 carrier:0 collisions:21 lg file transmission:100 RX bytes:4223716 (4.0 MiB) TX bytes:10664688 (10.1 MiB) Interruption:9 Adresse de base:0xd800 eth1 Lien encap:Ethernet HWaddr 00:05:5D:5F:40:3A inet adr:192.168.0.2 Bcast:192.168.0.255 Masque:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:918 errors:0 dropped:0 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:100 RX bytes:115486 (112.7 KiB) TX bytes:8338 (8.1 KiB) Interruption:11 Adresse de base:0xe000 eth2 Lien encap:Ethernet HWaddr 00:50:FC:46:FF:99 inet adr:192.168.0.3 Bcast:192.168.0.255 Masque:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63 errors:9 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:100 RX bytes:6464 (6.3 KiB) TX bytes:2052 (2.0 KiB) Interruption:9 Adresse de base:0x6000 lo Lien encap:Boucle locale inet adr:127.0.0.1 Masque:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:3814 errors:0 dropped:0 overruns:0 frame:0 TX packets:3814 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:494295 (482.7 KiB) TX bytes:494295 (482.7 KiB) merci -- hendrickx guy <guy88@freegates.be>
Attachment:
signature.asc
Description: PGP signature