Показаны сообщения с ярлыком dhcp. Показать все сообщения
Показаны сообщения с ярлыком dhcp. Показать все сообщения

четверг, 20 марта 2014 г.

Wing Motorola dhcp server on rfs 6000

Некоторое время не мог понять, почему же dhcp сервер в контроллере rfs6000 пишет в логах "Jan 02 15:54:39 2012: %DAEMON-3-ERR: dhcpd: DHCPDISCOVER from b4:c7:99:df:a8:e0 via vlan1: network vlan1: no free leases" при отсутствии вообще назначений. И тут до меня дошло :)

Смотрим на конфиг:

!
dhcp-server-policy dhcp-policy-global
 dhcp-pool WLAN1
  network 192.168.18.0/24
  excluded-address range 192.168.18.1 192.168.18.10
  default-router 192.168.18.1
  dns-server 8.8.8.8
 dhcp-pool AP-POOL
  network 192.168.19.0/24
  excluded-address range 192.168.19.1 192.168.19.10
  default-router 192.168.19.1
  dns-server 8.8.8.8
!

понедельник, 27 июня 2011 г.

Прописать dhcp helper на интерфейсе

http://mellowd.co.uk/ccie/?tag=juniper-dhcp-relay

Both IOS and JunOS allows you to configure the router as a DHCP relay agent. This is how it’s done.

On IOS it’s extremely simple. All you need to do is put the following command on the interface receiving the broadcast. In this topology it’ll be the interface connected to the switch and workstation the user is on

>conf t
# int fa0
# ip helper-address 10.1.1.1
On JunOS it’s just as simple. The configuration is not put on a particular interface, rather you specify which interface will be receiving the broadcast.

> configure
# set forwarding-options helpers bootp interface em1
# set forwarding-options helpers bootp server 10.1.1.1

UPD: На практике в junos заработало так:
forwarding-options {
    dhcp-relay {
        server-group {
            OG {
                10.19.255.255;
            }
        }
        active-server-group OG;
        group ALL {
            active-server-group OG;
            interface xe-1/2/0.215 {
                overrides {
                    allow-snooped-clients;
                }
            }
            interface xe-1/3/0.3861;
        }
    }
}

Конструкция overrides allow-snooped-clients нужна для того, чтобы через данный relay могли пролетать уже завернутые в пакет dhcp запросы. Если у вас уже на каком-то влане настроен dhcp-helper, то без этой записи запрос с него не пролетит через данный dhcp-relay