[dhcp3] verschillende routers binnen 1 subnet

Pagina: 1
Acties:

  • cor-gijs
  • Registratie: Maart 2000
  • Laatst online: 21-09-2025

cor-gijs

Dig further for bigger hole

Topicstarter
ik wil binnen 1 subnet verschillende routers uitdelen aan verschillende pc's via dhcp.
dwz.:
de ip's 192.168.0.11 t/m 192.168.0.19 krijgen 192.168.0.10 als router.
de ip's 192.168.0.31 t/m 192.168.0.39 krijgen 192.168.0.30 als router.

de achterliggende gedachte:
1 netwerk door in 2 huizen met ieder een eigen kabelinternetverbinding en router.

ik gebruik dhcp3 in Debian 3.0
mijn dhcpd.conf ziet er op dit moment zo uit
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ddns-update-style none;
default-lease-time 28800;
max-lease-time 86400;
authoritative;
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.11 192.168.0.60;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.0.255;
  option domain-name "highway.nld";
  option domain-name-servers 192.168.0.10;

  }


#voor 192.168.0.11-192.168.0.19

  group {
   option routers 192.168.0.10;

      host bart {
      hardware ethernet 00:60:97:A0:F3:FD;
      fixed-address bart.highway.nld;
      }
    }

#voor 192.168.0.31-192.168.0.39

  group {
    option routers 192.168.0.30;

      host ronald {
      hardware ethernet 00-02-44-53-D2-52;
      fixed-address ronald.highway.nld;
      }

      host evelien {
      hardware ethernet 00-A0-24-1D-38-1C;
      fixed-address evelien.highway.nld;
      }
    }



nou weet ik zelf niet helemaal hoe ik die 'range' in moet stellen.

wat ik geprobeerd heb:
eerst alleen de 1e group invullen, dus:
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ddns-update-style none;
default-lease-time 28800;
max-lease-time 86400;
authoritative;
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.11 192.168.0.60;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.0.255;
  option domain-name "highway.nld";
  option domain-name-servers 192.168.0.10;

  }


#ip's voor 192.168.0.11-192.168.0.19
  group {
   option routers 192.168.0.10;

      host bart {
      hardware ethernet 00:60:97:A0:F3:FD;
      fixed-address bart.highway.nld;
      }
    }


dit werkt, maar zodra ik die 2e group erbij zet en dhcp3 herstart, krijg ik dit te zien in mijn syslog:

PHP:
1
2
3
4
5
6
7
8
Dec 16 22:38:01 csirac /USR/SBIN/CRON[27401]: (mail) CMD (  if [ -x /usr/sbin/exim -a -f /etc/exim/exim.conf ]; then /usr/sbin/exim -q ; fi)
Dec 16 22:38:32 csirac dhcpd: /etc/dhcp3/dhcpd.conf line 33: expecting numeric value.
Dec 16 22:38:32 csirac dhcpd:       hardware ethernet 00-02-44-53-D2-52;
Dec 16 22:38:32 csirac dhcpd:                         ^
Dec 16 22:38:32 csirac dhcpd: /etc/dhcp3/dhcpd.conf line 38: Bogus number: 00-A0-24-1D-38-1C.
Dec 16 22:38:32 csirac dhcpd:       hardware ethernet 00-A0-24-1D-38-1C;
Dec 16 22:38:32 csirac dhcpd:                         ^
Dec 16 22:38:32 csirac dhcpd: Configuration file errors encountered -- exiting


hoe krijg ik het voor elkaar om verschillende gateway's aan verschillende pc's binnen 1 subnet (of in ieder geval 1 werkgroep) te geven?

There is no adequate defense, except stupidity, against the impact of a new idea.


  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 08:31

voodooless

Sound is no voodoo!

je moet ":" gebruiken i.p.v "-" in je MAC adressen!

Do diamonds shine on the dark side of the moon :?


  • cor-gijs
  • Registratie: Maart 2000
  • Laatst online: 21-09-2025

cor-gijs

Dig further for bigger hole

Topicstarter
maar zoals ik vertelde, als ik maar 1 'group' invul werkt het wel, ook met ':' in m'n mac-adressen.

There is no adequate defense, except stupidity, against the impact of a new idea.


  • voodooless
  • Registratie: Januari 2002
  • Laatst online: 08:31

voodooless

Sound is no voodoo!

Heb je niet wat haakjes verkeerd staan? Het subnet eind-haakje moet bijvoorbeeld pas helemaal op het einde, na de 'group' dingen!

Do diamonds shine on the dark side of the moon :?


  • cor-gijs
  • Registratie: Maart 2000
  • Laatst online: 21-09-2025

cor-gijs

Dig further for bigger hole

Topicstarter
maar als ik de - vervang door : werkt het wel
[oeps]

volgens mij werkt het nu opeens
:D

There is no adequate defense, except stupidity, against the impact of a new idea.