szukseges csomagok: bridge-utils es dhcp3-server
/etc/network/interfaces:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
auto eth1
iface eth1 inet dhcp
pre-up brctl addbr eth1
pre-up brctl addif eth1 eth0
post-down brctl delif eth1 eth0
post-down brctl delbr eth1
/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;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
deny unknown-clients;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name "localdomain";
option domain-name-servers 192.168.0.1;
range 192.168.0.32 192.168.0.63;
host ismert {
hardware ethernet 00:11:22:33:44:55;
}
}
A csomagok telepitese es a konfigfajlok beallitasa utan ujra kell inditani a demonokat:
/etc/init.d/networking restart
/etc/init.d/dhcp3-server restart
Beallitasok ellenorzese:
ifconfig
route
Logok ellenorzese:
cat /var/log/syslog|grep dhcpd
- colos blogja
- A hozzászóláshoz be kell jelentkezni
- 708 megtekintés