交换机上的运行配置: switch-1# ip dhcp relay address 1.1.1.2 j2模板: {% for ip in dhcp_servers%} ip dhcp relay address {{ ip }} - 1.1.1.2- 1.1.1.3
- 1.1.1.4 预期使用j2创建的配置<
我正在开发一个自定义的Ubuntu20.04服务器,并试图为它获得一个dhcp。到目前为止,服务器已经在静态IP上运行,当我运行dhcp或dhclient时,它说是dhcpd: command not found和dhclient: command not found。/sbin没有dhcpd或dhclient目录,但是有一个/etc/dhcp文件夹,其中包含带有脚本的dhclient-enter-hooks.d dhclient-exit-hooks.d,我认为其中的脚本是开始/停止dhcp