Portál AbcLinuxu, 31. října 2025 06:01
Dobrý den
mám problem s nastavením dhcp serveru, tento problem se tu uz resil nekolikrat ale stejne sem se nebyl chopen dobrat reseni. mam pocitac se dvema sitovkama eth0 je pripojena ven a ma pridelovanou adresu z dhcp.
soubor /etc/network/intarfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth0
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
auto eth1
mam debian s nainstalovanym balikem dhcp3-server, ale pri pokusu o jeho spusteni to vypise failed.
v syslogu je toto:
No subnet declaration for eth1 (192.168.1.1).
Ignoring requests on eth1.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eth1 is attached. **
Not configured to listen on any interfaces!
pritom naslouchani na etc1 mam zapnute v souboru /etc/default/dhcp3-server mam INTERFACES="eth1"
muj soubor dhcpd.conf vypada takto
subnet 168.192.1.0 netmask 255.255.255.0 {
  range 168.192.1.30 168.192.1.90;
  option domain-name-servers 195.113.176.229;
  option domain-name "mojedomena.cz";
  option routers 192.168.1.1;
  option broadcast-address 168.192.1.1;
  default-lease-time 600;
  max-lease-time 7200;
host homer {
  hardware ethernet 00:12:0E:90:88:0C;
  fixed-address 192.168.1.2;
}
}
dekuji za kazdou pomoc
No subnet declaration for eth1 (192.168.1.1).
subnet 168.192.1.0 netmask 255.255.255.0 {
Máte prohozené bajty IP adresy (192.168 × 168.192).
            
        Tiskni
            
                Sdílej:
                 
                 
                 
                 
                 
                 
            
    
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.