• [^] # Re: C'est DHCPD qui fait des requêtes dhclient

    Posté par . En réponse au message Interface réseau statique qui malgré tout interroge un DHCP. Évalué à 2.

    /etc/network/interfaces
    auto lo eth0 eth1
    iface lo inet loopback
    # Interface WAN
    allow-hotplug eth0
    iface eth0 inet static
    	address 192.168.0.1
    	netmask 255.255.255.0
    	network 192.168.0.0
    	gateway 192.168.0.3
    	broadcast 192.168.0.255
    # Interface LAN
    iface eth1 inet static
    	address 192.168.1.1
    	netmask 255.255.255.0
     	network 192.168.1.0
    	gateway 192.168.0.1
    	broadcast 192.168.1.255
    
    /etc/dhcp3/dhcpd.conf
    subnet 192.168.1.0 netmask 255.255.255.0
    {
    	range 192.168.1.1 192.168.1.20;
    	option broadcast-address 192.168.1.255;
    	option routers 192.168.1.1;
    	option domain-name-servers 192.168.0.3;
    	option domain-name "fnautre.net";
    	default-lease-time 600;
    	max-lease-time 7200;
    	host client1
    	{
    		hardware ethernet 00:aa:bb:cc:dd:ee;
    		fixed-address 192.168.1.2;
    	}
    	
    	host client2
    	{
    		hardware ethernet 00:bb:cc:dd:ee:ff;
    		fixed-address 192.168.1.3;
    	}
    	...
    }