Tag: debina

Serwer DHCP3 Debian

Dziś przedstawię jak zainstalować i skonfigurować serwer DHCP pod systemem Debian 6

Najpierw instalujemy serwer DHCP

apt-get install isc-dhcp-server

Proszę się nie sugerować błędami pod koniec instalacji.
Otwieramy plik

nano /etc/default/isc-dhcp-server

Wpisujemy w nim interfejs na jakim ma działać serwer
np.

INTERFACES="eth1"

Zapisujemy plik
Wywalamy domyślny config serwera

rm /etc/dhcp/dhcpd.conf

Otwieramy go za pomocą nano i wklejamy

nano /etc/dhcp/dhcpd.conf
option domain-name "serwerdhcp";
option domain-name-servers 8.8.8.8,8.8.4.4;

option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.10.0 netmask 255.255.255.0 {
  range 192.168.10.2 192.168.10.20;
  option broadcast-address 192.168.0.255;
  option routers 192.168.10.5;
}

Gdzie
option domain-name-servers - serwery DNS
subnet – w jakiej sieci ma pracować serwer
range – zakres przyznawanych adresów
option broadcast-address – broadcast address
option routers – brama domyśla

Oczywiście plik edytujemy wedle własnego uznania
Po czym startujemy serwer

/etc/init.d/isc-dhcp-server start

smokeping konfiguracja

Dziś przedstawię jak zainstalować i skonfigurować smokeping

Instalujemy potrzebne bajery

apt-get install smokeping fping

Edytujemy plik

nano /etc/smokeping/config.d/Targets

Wklejamy poniższą konfigurację oczywiście jak chcemy zmieniamy adresy

*** Targets ***

probe = FPing

## You have to edit and uncomment all what you want below this.
# Please, refer to smokeping_config man page for more info
# The given adresses aren't real to avoid DoS.

menu = Top
title = Tester ping - cabana home serv
remark = Witaj na stronie smokeping na Cabana Home Serv'

+ Local

menu = Local
title = Local Network

++ LocalMachine

menu = Local Machine
title = This host
host = localhost

+ Serwery

menu = Serwery
title = Serwery

++ Dom

menu = Dom
title = Sieć domowa

+++ Komputery

menu = Komputer
title = Komputery
alerts = bigloss,someloss,startloss

++++ Lapek

menu = Lapek
title = Lapek
host = 192.168.10.30

++++ Rodzice

menu = Rodzice
title = Rodzice
host = 192.168.10.11

++++ Stary

menu = Stary
title = Stary
host = 192.168.10.21

++++ Serwer

menu = Serwer
title = Serwer
host = 192.168.10.5

+++ Router

menu = Router
title = Router

++++ Router1

menu = Router1
title = Router1
host = 192.168.10.1

++++ Router2

menu = Router2
title = Router2
host = 192.168.1.1

++ Internet

menu = Internet
title = Internet

+++ Onet

menu = Onet
title = Onet.pl
host = onet.pl

+++ WP

menu = WP
title = wp.pl
host = wp.pl

+++ google

menu = Google
title = google
host = google.pl

+++ hostdell

menu = HostDell
title = hostdell.pl
host = hostdell.pl

+++ 24l

menu = 24l
title = 24l.pl
host = 24l.pl

+++ cabana.wro.com.pl

menu = cabana
title = cabana.wro.com.pl
host = cabana.wro.com.pl

+++ pro-serwer.com
menu = pro-serwer
title = pro-serwer.com
host = pro-serwer.com

Restartujemy skomeping

 /etc/init.d/smokeping restart

Czekamy z 20min i wchodzimy na stronę

Demo (tylko po IPv6 :( )

http://[2001:5c0:1400:b::c0f9]/smokeping/smokeping.cgi?target=Serwery.Internet


Linki

Meble na zamówienie, wymiar, Wrocław, Trzebnica, Oborniki Śląskie

stat4u
© 1996-2010 cabana HomePage. Wszystkie prawa zastrzeżone.
Szablon iDream: Templates Next , tłumaczenie: kredyt mieszkaniowy