DHCP server on the Network-interface of SSR


https://docs.128technology.com/docs/config_dhcp/#basic-configuration


Add New DHCP server service
Host service

Network-interface > address 

Add Host Services

DHCP server

Add Address Pool

PCLI

NTP check IP@ instead

dhcp
admin@node1.branch1# show config running authority router branch1 system

config authority router branch1 system ntp server 0.uk.pool.ntp.org ip-address  0.uk.pool.ntp.org


config

    authority

        router  branch1
            name    branch1

            system

                ntp

                    server  0.uk.pool.ntp.org
                        ip-address  0.uk.pool.ntp.org
                    exit
                exit
            exit
        exit
    exit
exit


Conductor

Operation: Router > Node > DHCP 


Show commands

show dhcp 

show dhcp
admin@node1.branch1# show dhcp mappings node node1
Wed 2021-06-30 11:39:30 UTC

Retrieving from 'node1.branch1'...

================= ================== ====== ============== ================ =============
 Src Device Port   Dest Device Port   VLAN   Mapping Type   IP Family Type   Config Type
================= ================== ====== ============== ================ =============
               1                  0      0   originating    ipv4             client  <<<<<<<<<<<<< Allocated by the SSR
               3                250      0   originating    ipv4             server
             250                  3      0   derived        ipv4             server
Troubleshoot

show network-interface application

dhcp server
admin@node0.90ec7734d5b1# show network-interface application name ge-0-2
Thu 2023-03-09 15:42:28 UTC
Retrieving network-interface application data...

========================================================================
 Application Data
========================================================================

 Interface:                                    node0.unavailable:ge-0-2
 dhcp-server:
     kea-service-target-status:
       active since Thu 2023-03-09 15:26:21 UTC
     kea-status:
       active (running/success) since Thu 2023-03-09 15:26:21 UTC
     kea-ctrl-status:
       active (running/success) since Thu 2023-03-09 15:26:21 UTC
     metrics:
         declined-addresses:                   0
         reclaimed-declined-addresses:         0
         reclaimed-leases:                     0
         subnet[1].assigned-addresses:         2  <<<<<<<<<< 2 clients / 2 leases
         subnet[1].declined-addresses:         0
         subnet[1].reclaimed-declined-addresses:0
         subnet[1].reclaimed-leases:           0
         subnet[1].total-addresses:            10
     subnets:
         subnet:
           current-lease-count:                2
           current-leases:
               lease:
                 client-last-transaction-time: 2023-03-09 15:25:50
                 hostname:                     unboxed
                 hw-address:                   b8:27:eb:6c:0c:b9
                 ip-address:                   10.10.11.10
                 valid-lifetime:               86400
               lease:
                 client-last-transaction-time: 2023-03-09 15:14:03
                 hostname:                     unboxed
                 hw-address:                   b8:27:eb:6c:0c:b9
                 ip-address:                   10.10.11.11
                 valid-lifetime:               86400
           subnet:                             10.10.11.1/24
     ha-heartbeat:
       role:                                   primary
       state:                                  standalone

Completed in 0.39 seconds
admin@node0.90ec7734d5b1#


dhcp client or dhclient

Release and request

sudo dhclient -r eth0 && sudo dhclient eth0


DHCP did not start

show network-interface application name ge-0-2

dhcp did not start
admin@node0.90ec7734d5b1# show network-interface application name ge-0-2
Wed 2023-08-30 10:54:56 UTC
Retrieving network-interface application data...

=========================================================================
 Application Data
=========================================================================

 Interface:                                    node0.90ec7734d5b1:ge-0-2
 state:                                        Application not running


Solution

Reboot the SSR

may be restart the DHCP process or disable / enable the dhcp interface ??