Code: Select all
:global eruGuestInterface ERUwlan-guest
:global eruGuestSSID ERUGuestSSID
:global eruGuestProfile ERUGuestProfile
:global eruGuestPassword ERUGuestPassword
:global eruGuestDHCPPool ERUGuestPool
:global eruGuestDHCPName ERUGuestDHCP
:global eruGuestDHCPIP 10.10.10.50-10.10.10.99
:global eruGuestDHCPNetwork 10.10.10.0/24
/interface wireless security-profiles
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=\
$eruGuestProfile supplicant-identity="" wpa2-pre-shared-key=$eruGuestPassword
/interface wireless
add comment="ERU Guest Virtual Interface" disabled=no keepalive-frames=\
disabled mac-address=BA:69:F4:F5:53:C2 master-interface=wlan1 \
multicast-buffering=disabled name=$eruGuestInterface security-profile=$eruGuestProfile \
ssid=$eruGuestSSID wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
/ip pool
add name=$eruGuestDHCPPool ranges=$eruGuestDHCPIP
/ip dhcp-server
add address-pool=$eruGuestDHCPPool interface=$eruGuestInterface name=$eruGuestDHCPName disabled=yes
But if I make the last line:
Code: Select all
/ip dhcp-server
add address-pool=$eruGuestDHCPPool interface=$eruGuestInterface name=$eruGuestDHCPName disabled=no
If I create the same DHCP server from Winbox, with the same values, it starts as disabled, and I can enable it.
Why does creating the DHCP server with disabled=yes break it?