Skip to content

Il sito di Ivan Piffer

Narrow screen resolution Wide screen resolution Increase font size Decrease font size Default font size    Default color brown color green color red color blue color
You are here: HOME arrow Informatica arrow Articoli interessanti arrow Controllo remoto e gateway UMTS - 3. dhcp-server
Skip to content
Controllo remoto e gateway UMTS - 3. dhcp-server PDF Stampa E-mail
Valutazione utente: / 0
ScarsoOttimo 
Scritto da Ivan Piffer   
venerdì 01 ottobre 2010

 

http://www.ubuntugeek.com/images/dhcp.png
da http://www.ivanpiffer.it

Il gateway (la nostra macchina linux) e' collegata via USB alla rete internet ed alla rete locale via ETH0. 

 

Nel mio caso l'installazione di un server dhcp e' stato piu' un esercizio di stile visto che esiste un solo client. :)

Puo' essere comunque utile impostarlo per facilitarsi la vita

1. Con apt-get basta installare dhcp3-server.

2. Il file di configurazione e' il seguente (/etc/dhcp3/dhcpd.conf) dove ho usato i server DNS di Opendns. Il gateway ha indirizzo 192.168.0.1.

ddns-update-style none;
# ignore client-updates;

subnet 192.168.0.0 netmask 255.255.0.0 {

# --- default gateway
option routers                  192.168.0.1;
option subnet-mask              255.255.0.0;

option nis-domain               "ilvostro.local";
option domain-name              "ilvostro.local";
#---opendns
option domain-name-servers      208.67.222.222, 208.67.220.220;


option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.0.1;
#       option netbios-name-servers     192.168.0.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;

range dynamic-bootp 192.168.0.100 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
}

 

3.Ricordatevi di modificare anche il file /etc/default/ dhcp3-server) dove si indica l'interfaccia di"ascolto".

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#    Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0"

Commenti
Nuovo Cerca RSS
Commenta
Nome:
Email:
 
Website:
Titolo:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."


Related in Menu:

Telefonia,cellulari, UMTS...

Related Sections:

Informatica/Telefonia, UMTS e
Ultimo aggiornamento ( venerdì 01 ottobre 2010 )
 
< Prec.   Pros. >