Skip to content

Impossible to disable all DHCP clients with 'enabled false' #412

Description

@troglobit

Disabling DHCP with enabled false does not bite.

admin@infix-00-00-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
e0              ethernet   UP          02:00:00:00:00:00                        
                ipv6                   fe80::ff:fe00:0/64 (link-layer)
lo              ethernet   UP          00:00:00:00:00:00                        
                ipv4                   127.0.0.1/8 (static)
                ipv6                   ::1/128 (static)
admin@infix-00-00-00:/> configure 
admin@infix-00-00-00:/config/> set dhcp-client client-if e0
admin@infix-00-00-00:/config/> leave
admin@infix-00-00-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
e0              ethernet   UP          02:00:00:00:00:00                        
                ipv6                   fe80::ff:fe00:0/64 (link-layer)
lo              ethernet   UP          00:00:00:00:00:00                        
                ipv4                   127.0.0.1/8 (static)
                ipv6                   ::1/128 (static)
admin@infix-00-00-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
e0              ethernet   UP          02:00:00:00:00:00                        
                ipv4                   192.168.122.160/24 (dhcp)
                ipv6                   fe80::ff:fe00:0/64 (link-layer)
lo              ethernet   UP          00:00:00:00:00:00                        
                ipv4                   127.0.0.1/8 (static)
                ipv6                   ::1/128 (static)
admin@infix-00-00-00:/> configure
admin@infix-00-00-00:/config/> set dhcp-client enabled false
admin@infix-00-00-00:/config/> leave
admin@infix-00-00-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
e0              ethernet   UP          02:00:00:00:00:00                        
                ipv4                   192.168.122.160/24 (dhcp)
                ipv6                   fe80::ff:fe00:0/64 (link-layer)
lo              ethernet   UP          00:00:00:00:00:00                        
                ipv4                   127.0.0.1/8 (static)
                ipv6                   ::1/128 (static)
admin@infix-00-00-00:/> exit
admin@infix-00-00-00:~$ initctl
PID   IDENT       STATUS   RUNLEVELS     DESCRIPTION                                                                                                                                                           
1183  udevd       running  [S-12345-789] Device event daemon (udev)
2259  dbus        running  [S-123456789] D-Bus message bus daemon
2411  confd       running  [S-12345----] Configuration daemon
2726  netopeer    running  [--12345----] NETCONF server
2415  dnsmasq     running  [S-12345----] DHCP/DNS proxy
2736  execd       running  [---2345----] Container job runner
2740  tty:hvc0    running  [--12345-789] Getty on hvc0
2741  iitod       running  [S0123456789] LED daemon
2742  klishd      running  [---2345----] CLI backend daemon
2755  mdns-alias  running  [---2345----] mDNS alias advertiser 
2746  rauc        running  [---2345----] Software update service
2750  sshd        running  [---2345----] OpenSSH daemon
2683  statd       running  [S-12345----] Status daemon
2230  syslogd     running  [S0123456789] System log daemon
2421  watchdogd   running  [S0123456789] System watchdog daemon
2753  zebra       running  [---2345----] Zebra routing daemon
2754  mdns        running  [---2345----] Avahi mDNS-SD daemon
2756  lldpd       running  [---2345----] LLDP daemon (IEEE 802.1ab)
2757  netbrowse   running  [---2345----] Network browser
2758  nginx       running  [---2345----] Web server
2759  ttyd        running  [---2345----] Web terminal daemon (ttyd)
2909  dhcp:e0     running  [---2345----] DHCP client @e0
admin@infix-00-00-00:~$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions