From 2053539a7d532941e2cdbcc37fff26a1b9c95447 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 4 Sep 2018 19:47:43 +0200 Subject: T823: extend the new DHCP op mode. --- op-mode-definitions/dhcp.xml | 111 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 op-mode-definitions/dhcp.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/dhcp.xml b/op-mode-definitions/dhcp.xml new file mode 100644 index 000000000..eb57f8f1f --- /dev/null +++ b/op-mode-definitions/dhcp.xml @@ -0,0 +1,111 @@ + + + + + + + Show DHCP (Dynamic Host Configuration Protocol) information + + + + + Show DHCP information + + + + + Show DHCP server leases + + sudo ${vyos_op_scripts_dir}/show_dhcp.py --leases + + + + Show DHCP leases for a specific pool + + sudo ${vyos_op_scripts_dir}/show_dhcp.py --leases --pool $4 + + + + + + Show DHCP server statistics + + sudo ${vyos_op_scripts_dir}/show_dhcp.py --statistics + + + + Show DHCP server statistics for a specific pool + + sudo ${vyos_op_scripts_dir}/show_dhcp.py --statistics --pool $4 + + + + + + + + + + Show DHCPv6 (IPv6 Dynamic Host Configuration Protocol) information + + + + + Show DHCPv6 server information + + + + + Show DHCPv6 server leases + + sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases + + + + + + + + + + + + Restart DHCP processes + + + + + Restart the DHCP server process + + sudo systemctl restart isc-dhcp-server.service + + + + Restart the DHCP server process + + sudo /opt/vyatta/sbin/dhcrelay-starter.pl --op-mode --init='/opt/vyatta/sbin/dhcrelay.init' + + + + + + Restart DHCPv6 processes + + + + + Restart the DHCPv6 server process + + sudo systemctl restart isc-dhcpv6-server.service + + + + Restart the DHCP server process + + sudo /opt/vyatta/sbin/dhcv6relay-starter.pl --op_mode --config_action ACTIVE + + + + + + -- cgit v1.2.3