Bonjour,
j’ai deux problemes avec ma etch:
un pas trop grave:
ma deuxieme carte reseau s’appelle eth1_rename_ren… comment faire pour qu’elle s’appelle eth1 ?
un plus chiant pour moi…
je voudrais faire tourner un serveur dhcp sur la seconde carte (eth1/eth1_rename_ren)… mais j’y arrive pas…
dans mon /etc/network/interfaces:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1_rename_ren
iface eth1_rename_ren inet static
address 192.1.0.1
netmask 255.255.255.0
network 192.1.0.0
broadcast 192.1.0.255
/etc/dhcp3/dhcpd.conf :
ddns-updates off;
option T150 code 150 = string;
deny client-updates;
one-lease-per-client false;
allow bootp;
ddns-update-style none;
option domain-name "example.org";
option domain-name-servers 192.168.0.1;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.1.0.0 netmask 255.255.255.0 {
interface eth1_rename_ren;
range 192.1.0.10 192.1.0.20;
default-lease-time 6000;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option time-offset -3600;
}
dans /etc/default/dhpc3-server:
INTERFACES="eth1_rename_ren"
route donne :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.1.0.0 * 255.255.255.0 U 0 0 0 eth1_rename_ren
192.168.62.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.62.1 0.0.0.0 UG 0 0 0 eth0
ifconfig -a:
eth0 Link encap:Ethernet HWaddr 00:00:E8:E8:5E:D2
inet addr:192.168.62.55 Bcast:192.168.62.255 Mask:255.255.255.0
inet6 addr: fe80::200:e8ff:fee6:5dd2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57500 errors:0 dropped:0 overruns:0 frame:0
TX packets:49809 errors:0 dropped:0 overruns:0 carrier:0
collisions:342 txqueuelen:1000
RX bytes:81873683 (78.0 MiB) TX bytes:3975887 (3.7 MiB)
Interrupt:169 Base address:0xe800
eth1_rena Link encap:Ethernet HWaddr 00:0D:88:4E:38:27
inet addr:192.1.0.1 Bcast:192.1.0.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fe6e:3627/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:182 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36438 (35.5 KiB) TX bytes:2340 (2.2 KiB)
Interrupt:177 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:548 errors:0 dropped:0 overruns:0 frame:0
TX packets:548 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41048 (40.0 KiB) TX bytes:41048 (40.0 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
quand je fais /etc/init.d/dhcp3-server start, j’obtiens une erreur :
syslog :
Oct 26 18:44:34 defiant dhcpd: Internet Systems Consortium DHCP Server V3.0.4
Oct 26 18:44:34 defiant dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Oct 26 18:44:34 defiant dhcpd: All rights reserved.
Oct 26 18:44:34 defiant dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Oct 26 18:44:34 defiant dhcpd: Internet Systems Consortium DHCP Server V3.0.4
Oct 26 18:44:34 defiant dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Oct 26 18:44:34 defiant dhcpd: All rights reserved.
Oct 26 18:44:34 defiant dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Oct 26 18:44:34 defiant dhcpd: Internet Systems Consortium DHCP Server V3.0.4
Oct 26 18:44:34 defiant dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Oct 26 18:44:34 defiant dhcpd: All rights reserved.
Oct 26 18:44:34 defiant dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Oct 26 18:44:34 defiant dhcpd: Wrote 0 leases to leases file.
Oct 26 18:44:34 defiant dhcpd: Bind socket to interface: No such device
Quelqu’un pour me filer un coup de main ?
merci.