Hozzászólások
köszi holnap megpróbállom.Nekem axelerom van az is dinamikus
- A hozzászóláshoz be kell jelentkezni
Sziasztok.
Átirtam a dhcp beállításokat ugy ahogy itt irtam de nem indul a szerver
dhcpd failed to start - check syslog for diagnostics.
Tudna valaki egy kompett dhcpd.conf fájlt mutatni?
- A hozzászóláshoz be kell jelentkezni
Egy jó pár napja indítottam ugyan egy Tűzfal és DHCP fórumot, de tudásom hiányának köszönhetően már az 5. oldalnál tartok, ezért gondoltam kettéválasztom. Ezért mindenkitől elnézést kérek :(
Adott egy tűzfal, melynek belső lábán (eth0) egy DHCP szervert szeretnék beüzemelni.... eddig mindhiába. A belső hálózatról ez a gép (ami most frankón megy statikus ip-vel) hiába kér ip-t, a kérés még a tűzfalig sem jut el (nincs nyoma a var/log/messages-ben). Pedig fut a dhcpd.
Ami eddig történt:
1. apt-get install dhcpd
2. a dhcpd.conf szerkesztése. most így néz ki:
# dhcpd.conf
default-lease-time 14400;
max-lease-time 14400;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.254;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name "***.***.hu";
option domain-name-servers 193.6.48.95, 193.6.50.100;
}
Ez az első dhcpd.conf-om, szóval lehet, hogy valami hiányzik belőle és azért nem megy.
3. Az init.d dhcpd daemonja alapértelmezettként az eth0-n indul, szóval nem ez a baj.
Mit szúrtam el?
- A hozzászóláshoz be kell jelentkezni
Ez így tuti megy:
ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0E:2E:26:73:61
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe26:7361/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
option domain-name-servers a.b.c.d;
option domain-name "mydomain.org";
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.10 10.0.0.20;
}
ddns-update-style none;
tcpdump-al nézzed az interface-t (tcpdump -i ethx), hogy jön e kérés az kérő géptől és kap e választ. Nálam az volt a gond egyszer, hogy a tűzfalam nem engedte be a dhcp kéréseket. Nézzed ezt is meg.
- A hozzászóláshoz be kell jelentkezni
Apr 18 18:50:58 localhost dhcpd: No subnet declaration for eth0 (10.0.0.1).
Apr 18 18:50:58 localhost dhcpd: Please write a subnet declaration in your dhcpd.conf file for the
Apr 18 18:50:58 localhost dhcpd: network segment to which interface eth0 is attached.
Apr 18 18:50:58 localhost dhcpd: exiting.
syslogba ez a hiba van
- A hozzászóláshoz be kell jelentkezni
a network/interface nálad hogynéz ki?
- A hozzászóláshoz be kell jelentkezni
Ha még valakit érint, itt megtaláltam a megoldást:
http://tldp.fsf.hu/HOWTO/DHCP-hu/x374.html
egy jó kis leírás a DHCP szerver telepítéséről, és a buktatókról :)
Sziasztok!
- A hozzászóláshoz be kell jelentkezni
Végigolvasva az említett thread-et úgy tűnik az eth1-re kellene állítani a dhcp-t
Üdv: tom
- A hozzászóláshoz be kell jelentkezni
A belső láb az eth0, szóval jól helyre lett volna beállítva, csak a dhcpd indulásakor nem figyelte az egyik kártyát sem, hiába volt az etc/init.d/dhcp -ben ez a sor:
#INTERFACES="eth0"
Az indítást a következő parancssorral követtem el:
#dhcpd eth0
, így már jó lett.
Azért köszönöm :)
- A hozzászóláshoz be kell jelentkezni
Ha debian, akkor szerintem a /etc/defaults konyvtaron beluli beallitasok felulirjak a /etc/init.d/dhcp-ben megadottakat.
- A hozzászóláshoz be kell jelentkezni
Köszi! Igazad volt.
- A hozzászóláshoz be kell jelentkezni
Ok ezzel megy.Mit kell beállítanom a windowsos gépemen hogy menjen a net?
- A hozzászóláshoz be kell jelentkezni
Valamiért nem megy a dhcp beállítás.2 hálókártya eth0 a net eth1 a hálóra néz
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).# The loopback network interface
auto lo
iface lo inet loopback# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.0.0.255auto eth1
iface eth1 inet static
address 192.168.1.0
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255
A /etc/dhcpd.conf pedig igy
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.4.2.2 2002/07/10 03:50:33 peloy Exp $
## option definitions common to all supported networks...
option domain-name "fugue.com";
option domain-name-servers 195.228.240.249,195.228.242.180;option subnet-mask 192.168.1.0;
default-lease-time 43200;
max-lease-time 86400;#subnet 192.168.1.1 netmask 255.255.255.0 {
# range 192.168.1.2 192.168.1.254;
# option broadcast-address 192.168.1.255;
# option routers 192.,168.1.1;
#}
az /etc/init.d/dhcp
INTERFACES="eth1"
restartolom a dhcp szervert és ezt a hibát kapom a syslog ba
Apr 19 17:18:55 polgar dhcpd: No subnet declaration for eth1 (192.168.1.1).
Apr 19 17:18:55 polgar dhcpd: Please write a subnet declaration in your dhcpd.conf file for the
Apr 19 17:18:55 polgar dhcpd: network segment to which interface eth1 is attached.
Apr 19 17:18:55 polgar dhcpd: exiting.
Mit és hol rontottam el?Köszi
- A hozzászóláshoz be kell jelentkezni
nem hianyik innen egy:
subnet x.x.x.x netmask y.y.y.y {
range x.x.x.10 x.x.x.200;
}
resz?
a Te esetedben valami ilyesmi:
subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.0.0.10 10.255.255.200;
}
- A hozzászóláshoz be kell jelentkezni
honnan hiányzik?
ha beírom a dhcp.conf ba
Apr 19 17:59:54 polgar dhcpd: No memory for new_address_range.
Apr 19 17:59:54 polgar dhcpd: No memory for address range 10.0.0.10-10.255.255.200.
Apr 19 17:59:54 polgar dhcpd: exiting.
- A hozzászóláshoz be kell jelentkezni
hat a dhcpd.conf -bol
valami ilyesmi a felepitese:
--globalis beallitasok (pl. option domain-name "belsohalo";
--alhalozatokra vonatkozo beallitasok ilyen formaban:
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.254;
option subnet-mask 255.255.255.0;
range 192.168.0.65 192.168.0.125;
}
szoval egy subnet resz hianyzik szerintem (ki van kommentezve, amit bemasoltal)
- A hozzászóláshoz be kell jelentkezni
[quote:35c42da0a2="polgar79"]honnan hiányzik?
ha beírom a dhcp.conf ba
Apr 19 17:59:54 polgar dhcpd: No memory for new_address_range.
Apr 19 17:59:54 polgar dhcpd: No memory for address range 10.0.0.10-10.255.255.200.
Apr 19 17:59:54 polgar dhcpd: exiting.
igen, de Te meghatarozod, hogy interfaces = eth1, viszont az eth1 NEM a 10.x.x.x tartomanyban van a /etc/network/interfaces file alapjan
- A hozzászóláshoz be kell jelentkezni
Ez az eredeti leírnád melyik adatokat hova.
eth1 eth 0 a előző leírások alapján köszi.
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.4.2.2 2002/07/10 03:50:33 peloy Exp $
## option definitions common to all supported networks...
option domain-name "fugue.com";
option domain-name-servers toccata.fugue.com;option subnet-mask 255.255.255.224;
default-lease-time 600;
max-lease-time 7200;#subnet 204.254.239.0 netmask 255.255.255.224 {
# range 204.254.239.10 204.254.239.20;
# option broadcast-address 204.254.239.31;
# option routers prelude.fugue.com;
#}# The other subnet that shares this physical network
#subnet 204.254.239.32 netmask 255.255.255.224 {
# range dynamic-bootp 204.254.239.10 204.254.239.20;
# option broadcast-address 204.254.239.31;
# option routers snarg.fugue.com;
#}#subnet 192.5.5.0 netmask 255.255.255.224 {
# range 192.5.5.26 192.5.5.30;
# option name-servers bb.home.vix.com, gw.home.vix.com;
# option domain-name "vix.com";
# option routers 192.5.5.1;
# option subnet-mask 255.255.255.224;
# option broadcast-address 192.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.#host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.fugue.com";
#}# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host fantasia {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address fantasia.fugue.com;
#}# If a DHCP or BOOTP client is mobile and might be connected to a variety
# of networks, more than one fixed address for that host can be specified.
# Hosts can have fixed addresses on some networks, but receive dynamically
# allocated address on other subnets; in order to support this, a host
# declaration for that client must be given which does not have a fixed
# address. If a client should get different parameters depending on
# what subnet it boots on, host declarations for each such network should
# be given. Finally, if a domain name is given for a host's fixed address
# and that domain name evaluates to more than one address, the address
# corresponding to the network to which the client is attached, if any,
# will be assigned.
#host confusia {
# hardware ethernet 02:03:04:05:06:07;
# fixed-address confusia-1.fugue.com, confusia-2.fugue.com;
# filename "vmunix.confusia";
# server-name "toccata.fugue.com";
#}#host confusia {
# hardware ethernet 02:03:04:05:06:07;
# fixed-address confusia-3.fugue.com;
# filename "vmunix.confusia";
# server-name "snarg.fugue.com";
#}#host confusia {
# hardware ethernet 02:03:04:05:06:07;
# filename "vmunix.confusia";
# server-name "bb.home.vix.com";
#}
- A hozzászóláshoz be kell jelentkezni
Na, szoval:
eth1 nez a net fele, eth0 -n akarsz dhcp-vel ip-t osztani a 10.0.0.0/8 -as tartomanybol. Az eth0 IP cime: 10.0.0.1/8
1. lepes: /etc/default/dhcp
[code:1:148b4aed43]INTERFACES="eth0"[/code:1:148b4aed43]
2. lepes: /etc/dhcpd.conf
[code:1:148b4aed43]
option domain-name "valami";
option domain-name-servers dns_server_IP_cime;
default-lease-time 259200;
max-lease-time 259200;
subnet 10.0.0.0 netmask 255.0.0.0 {
option routers 10.0.0.1;
option subnet-mask 255.0.0.0;
range 10.0.0.10 10.255.255.200;
}
[/code:1:148b4aed43]
3. lepes: dhcpd restart
[code:1:148b4aed43]/etc/init.d/dhcpd restart[/code:1:148b4aed43]
arra kell meg odafigyelni, hogy - ha van - a tuzfalon az udp 67-68 -as portot nyisd ki az eth0 iranyaban
[code:1:148b4aed43]iptables -A INPUT -p UDP -i $LAN_IFACE --dport 67 --sport 68 -j ACCEPT[/code:1:148b4aed43]
- A hozzászóláshoz be kell jelentkezni
Na, szoval:
eth1 nez a net fele, eth0 -n akarsz dhcp-vel ip-t osztani a 10.0.0.0/8 -as tartomanybol. Az eth0 IP cime: 10.0.0.1/8
1. lepes: /etc/default/dhcp
[code:1:01042aba95]INTERFACES="eth0"[/code:1:01042aba95]
2. lepes: /etc/dhcpd.conf
[code:1:01042aba95]
option domain-name "valami";
option domain-name-servers dns_server_IP_cime;
default-lease-time 259200;
max-lease-time 259200;
subnet 10.0.0.0 netmask 255.0.0.0 {
option routers 10.0.0.1;
option subnet-mask 255.0.0.0;
range 10.0.0.10 10.255.255.200;
}
[/code:1:01042aba95]
3. lepes: dhcpd restart
[code:1:01042aba95]/etc/init.d/dhcpd restart[/code:1:01042aba95]
arra kell meg odafigyelni, hogy - ha van - a tuzfalon az udp 67-68 -as portot nyisd ki az eth0 iranyaban
[code:1:01042aba95]iptables -A INPUT -p UDP -i eth0 --dport 67 --sport 68 -j ACCEPT[/code:1:01042aba95]
- A hozzászóláshoz be kell jelentkezni
Köszi.Akkor nekem csak ezt kell átírogatnom a network/interfaces az jó ugy ahogy van.?
- A hozzászóláshoz be kell jelentkezni
[quote:d86c290e99="polgar79"]Köszi.Akkor nekem csak ezt kell átírogatnom a network/interfaces az jó ugy ahogy van.?
ha igaz a hozzaszolasom elejen az allitas, akkor igen
- A hozzászóláshoz be kell jelentkezni
eth0 a net
az eth1 a háló lenne azon osztok
- A hozzászóláshoz be kell jelentkezni
[quote:87ccc88d9f="polgar79"]eth0 a net
az eth1 a háló lenne azon osztok
akkor:
/etc/network/interfaces eth1 resze:
(az address resznel nem lehet az utoso byte 0, ha az alhalozati maszk 255.255.255.0)
[code:1:87ccc88d9f]
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
[/code:1:87ccc88d9f]
/etc/default/dhcp
[code:1:87ccc88d9f]INTERFACES="eth1"[/code:1:87ccc88d9f]
/etc/dhcpd.conf
[code:1:87ccc88d9f]
option domain-name "valami";
option domain-name-servers dns_server_IP_cime;
default-lease-time 259200;
max-lease-time 259200;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
range 192.168.1.10 192.168.1.200;
}
[/code:1:87ccc88d9f]
majd dhcp restart
- A hozzászóláshoz be kell jelentkezni
Ugyan az a hiba mint 1*nekem.
Tudnál egy komplett működő /etc/interfaces -t és egy működő /etc/dhcpd.conf beírni
Köszi hogy küzdesz velem.
- A hozzászóláshoz be kell jelentkezni
itt a routerem konfigja: egy chello dinamikus ip-s hozzaferesen van, eth0 a net, eth1 a belso halo fele:
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0 eth1
iface eth0 inet dhcp
iface eth1 inet static
address 192.168.0.254
netmask 255.255.255.0
/etc/dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "homeland";
option domain-name-servers 192.168.0.254;
default-lease-time 259200;
max-lease-time 259200;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.254;
option subnet-mask 255.255.255.0;
range 192.168.0.65 192.168.0.125;
}
a /etc/default/dhcp -be (NEM /etc/init.d/dhcp) INTERFACES="eth1"
ennyi
- A hozzászóláshoz be kell jelentkezni