cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1030
Views
0
Helpful
0
Replies

DHCP with OPTION 230

DHCP with OPTION 230

Hello Team! 

I have to send an option 230 named portal-addr with a url. is this configuration correct?

 

ip dhcp pool Client
network 192.168.0.0 255.255.240.0
default-router 192.168.0.1
dns-server 8.8.8.8 8.8.4.4

option 230 ascii 'URL'

option 230 ascii URL 

option 230 ascii "'URL'"

option 230 ascii "URL" 

 

which one is correct?

NONE WORKS

is there something else missing?

in linux it is very simple, but I can't find it here

 

in mikrotik this is config: 

/ip dhcp-server option
add code=230 name=portal-addr value=\
"'http://url.url'"
/ip dhcp-server option sets
add name=portal-addr options=portal-addr

/ip dhcp-server
add address-pool=dhcp_pool2 dhcp-option-set=portal-addr disabled=no \
interface=DHCP-IPTV name=dhcp1

 

in linux 

cat /etc/dhcpc/dhcpcd-eth0.info

IPADDR=9.9.9.188

NETMASK=255.255.255.0

BROADCAST=9.9.9.255

DNS=9.9.9.228

INTERFACE='eth0'

PORTALADDR=url-url-url

0 Replies 0