Strona 1 z 1

konfiguracja DHCP z dwoma podsieciami

: 12 marca 2007, 19:10
autor: malinkalive
/etc/dhcp.conf

Kod: Zaznacz cały


subnet 192.168.0.0, 192.168.3.0

netmask 255.255.255.0 {

option domain-name "access_point";

option domain-name-servers 192.168.0.0, 192.168.3.0, 194.204.159.1;

option broadcast-address 192.168.0.255, 192.168.3.255;

option routers 192.168.3.1, 192.168.0.1;
}

host user1 {hardware ethernet 00:4f:62:02:b3:00;fixed-address 192.168.3.251;}
host user2 {hardware ethernet 00:4f:62:02:b3:11;fixed-address 192.168.0.250;}
dhcp sie nie uruchamia a syslog pokazuje

Kod: Zaznacz cały

Mar 12 18:48:48 server dhcpd: /etc/dhcpd.conf line 2: Expecting netmask
Mar 12 18:48:48 server dhcpd: subnet 192.168.0.0,
Mar 12 18:48:48 server dhcpd:                    ^
Mar 12 18:48:48 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:48:48 server dhcpd: exiting.
Mar 12 18:49:26 server dhcpd: /etc/dhcpd.conf line 2: Expecting netmask
Mar 12 18:49:26 server dhcpd: subnet 192.168.0.0 192.
Mar 12 18:49:26 server dhcpd:                    ^
Mar 12 18:49:26 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:49:26 server dhcpd: exiting.
Mar 12 18:49:58 server dhcpd: /etc/dhcpd.conf line 3: Expecting netmask
Mar 12 18:49:58 server dhcpd: subnet
Mar 12 18:49:58 server dhcpd: ^
Mar 12 18:49:58 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:49:58 server dhcpd: exiting.
Mar 12 18:53:42 server dhcpd: /etc/dhcpd.conf line 2: Expecting netmask
Mar 12 18:53:42 server dhcpd: subnet 192.168.0.0,
Mar 12 18:53:42 server dhcpd:                    ^
Mar 12 18:53:42 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:53:42 server dhcpd: exiting.
Mar 12 18:54:18 server dhcpd: /etc/dhcpd.conf line 15: semicolon expected.
Mar 12 18:54:18 server dhcpd: option broadcast-address 192.168.0.255,
Mar 12 18:54:18 server dhcpd:                                        ^
Mar 12 18:54:18 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:54:18 server dhcpd: exiting.
Mar 12 18:54:47 server dhcpd: /etc/dhcpd.conf line 2: Expecting netmask
Mar 12 18:54:47 server dhcpd: subnet 192.168.0.0 ,
Mar 12 18:54:47 server dhcpd:                    ^
Mar 12 18:54:47 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:54:47 server dhcpd: exiting.
Mar 12 18:55:40 server dhcpd: /etc/dhcpd.conf line 3: Expecting netmask
Mar 12 18:55:40 server dhcpd: subnet
Mar 12 18:55:40 server dhcpd: ^
Mar 12 18:55:40 server dhcpd: Configuration file errors encountered -- exiting
Mar 12 18:55:40 server dhcpd: exiting.
probowalem roznych kombinacji ale nie bardzo mi sie to udaje :(

Re: konfiguracja DHCP z dwoma podsieciami

: 12 marca 2007, 19:30
autor: dodi
malinkalive pisze:/etc/dhcp.conf

Kod: Zaznacz cały


subnet 192.168.0.0, 192.168.3.0

netmask 255.255.255.0 {
...
probowalem roznych kombinacji ale nie bardzo mi sie to udaje :(
Błąd składni, zdecyduj się czy chcesz mieć adres sieci 192.168.3.0 czy 192.168.0.0. np.

Kod: Zaznacz cały

subnet 192.168.3.0 netmask 255.255.255.0 {...

: 12 marca 2007, 21:19
autor: malinkalive
Probem w tym ze potrzebuje dhcp w dwoch podsieciach 192.168.0.0 oraz 192.168.3.0

: 13 marca 2007, 17:06
autor: joannes
to co za problem utworzyć dwie sekcje subnet