1 2 3 4 5 6 7 |
set service dhcp-server hostfile-update set service dhcp-server shared-network-name NET-VYOS subnet 172.16.0.0/16 option default-router '172.16.0.1' set service dhcp-server shared-network-name NET-VYOS subnet 172.16.0.0/16 option name-server '8.8.8.8' set service dhcp-server shared-network-name NET-VYOS subnet 172.16.0.0/16 option domain-name 'vyos.net' set service dhcp-server shared-network-name NET-VYOS subnet 172.16.0.0/16 range 0 start '172.16.101.1' set service dhcp-server shared-network-name NET-VYOS subnet 172.16.0.0/16 range 0 stop '172.16.101.254' set service dhcp-server shared-network-name NET-VYOS subnet 172.16.0.0/16 subnet-id '1' |
このように設定されれば機能するはず。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dhcp-server { hostfile-update shared-network-name NET-VYOS { subnet 172.16.0.0/16 { option { default-router 172.16.0.1 domain-name vyos.net name-server 8.8.8.8 } range 0 { start 172.16.101.1 stop 172.16.101.254 } subnet-id 1 } } } |