Pagina 1 di 1
					
				dhcp finto su debian
				Inviato: gio 23 dic , 2004 10:53 pm
				da jurgo
				salve, qualcuno sa come fare per assegrare sempre lo stesso indirizzo ip ad una scheda ethernet con dhcp?
mi servirebbero propio le righe da mettere in dhcpd.conf
nn ditemi di usare indirizzi fissi, grazie 

 
			
					
				
				Inviato: ven 24 dic , 2004 9:47 am
				da Samba84
				Bene, questa soluzione ottima e mi fa piacere che qualcuno lo chieda... vuol dire che qualcuno la usa!
Codice: Seleziona tutto
host bostick {
		hardware ethernet 08:00:00:3b:4f:fa;
		fixed-address 192.168.2.17;
	}
	host banana {
		hardware ethernet 08:00:02:01:55:cb;
		fixed-address 192.168.2.18;
	}
Buone feste, pinguino!
 
			
					
				
				Inviato: ven 24 dic , 2004 5:37 pm
				da jurgo
				si, ma fuori o dentro dalle parentesi grafe che definiscono la sub-net? (subnet ... netmask ...{    } ), cmq grazie mille e buone feste
			 
			
					
				
				Inviato: ven 24 dic , 2004 5:56 pm
				da jurgo
				ho provato ad applicare i consigli si samba84 , funziona tutto ma oltre ad eth0 si alza anche un' interfaccia chiamata sit0 così configurata:
sit0      Link encap:IPv6-in-IPv4
          inet6 addr: ::10.0.0.8/96 Scope:Compat
          inet6 addr: ::127.0.0.1/96 Scope:Unknown
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:24 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
qualcuno sa dirmi come mai?
centra con ipv6?
se l' abbasso funziona tutto lo stesso?
grazie mielle
			 
			
					
				
				Inviato: ven 24 dic , 2004 5:57 pm
				da Samba84
				Esempio dhcpd.con
Codice: Seleziona tutto
# dhcpd.conf - configuration for simple network
# Our global default configurations
option domain-name "testnet.net";
option domain-name-servers 192.168.2.16;
option subnet-mask 255.255.255.0
default-lease-time 600;
max-lease-time 7200;
# On our .1 subnet we will dynamically allocate 
# address to any host that requests one using 
# either DHCP or BootP.
subnet 192.168.1.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.1.32 192.168.1.254;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
  get-lease-hostnames true;
}
# On our .2 subnet we have a mixture of dynamically 
# assigned addresses and a collection of hosts that 
# should have fixed addresses.
subnet 192.168.2.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.2.32 192.168.2.254;
  option broadcast-address 192.168.2.255;
  option routers 192.168.2.1;
}
# Our fixed address hosts belong to a different 
# name domain and should have names assigned to 
# them in addition to addresses.
group {
	option domain-name "apps.testnet.net";
	use-host-decl-names on;
	host guava {
		hardware ethernet 08:00:00:1a:2b:3c;
		fixed-address 192.168.2.16;
	}
	host nectarine {
		hardware ethernet 08:00:00:3b:4f:fa;
		fixed-address 192.168.2.17;
	}
	host banana {
		hardware ethernet 08:00:02:01:55:cb;
		fixed-address 192.168.2.18;
	}
}
SI, sit0 serve per il tunnelling ipv4/ipv6, ignoralo