Category Archives: Juniper

Juniper: warning: dhcp-service subsystem not running

I have done custom binding in DHCP
set system services dhcp static-binding 01:0x:0x:0x:0x:0x fixed-address 192.168.0.120
and wanted to clear a previous one.
root@juniper> clear dhcp server binding 192.168.0.105
warning: dhcp-service subsystem not running - not needed by configuration.

What?

There are actually two completely different DHCP daemons in Junos now – dhcpd and jdhcpd.
When you configure statements under system / services / dhcp you are using dhcpd and will need to use:
show system services dhcp server binding
restart dhcp

When you configure statements under system / services / dhcp-local-server you are affecting jdhcpd and need to use:
show dhcp server binding
restart dhcp-service

So in this case I need to run this command:
clear system services dhcp binding 192.168.0.105

Juniper: Securing root access

Setup one additional user with superuser rights and also one operator, so you can use the operator more often than the superuser.
Make sure that the accounts name is meaningless and it is not your forename or surname for instance.
cli
conf
edit system login

set user walker class superuser
set user walker authentication plain-text-password

It would be even better to use SSH key based login for the superuser.

set user walker class operator
set user walker authentication plain-text-password

Login Classes

run show system users
conf
set system services ssh root-login deny