VyOS1.3でのDHCPサーバーの設定例です。
service { dhcp-server { shared-network-name INSIDE { authoritative subnet 192.168.0.0/24 { default-router 192.168.0.1 dns-server 192.168.0.10 domain-name si1230.com lease 86400 range 0 { start 192.168.0.100 stop 192.168.0.199 } } } } }
コマンドは下記の通りです。
set service dhcp-server shared-network-name INSIDE authoritative set service dhcp-server shared-network-name INSIDE subnet 192.168.0.0/24 default-router '192.168.0.1' set service dhcp-server shared-network-name INSIDE subnet 192.168.0.0/24 dns-server '192.168.0.10' set service dhcp-server shared-network-name INSIDE subnet 192.168.0.0/24 domain-name 'si1230.com' set service dhcp-server shared-network-name INSIDE subnet 192.168.0.0/24 lease '86400' set service dhcp-server shared-network-name INSIDE subnet 192.168.0.0/24 range 0 start '192.168.0.100' set service dhcp-server shared-network-name INSIDE subnet 192.168.0.0/24 range 0 stop '192.168.0.199'
VyOS DHCPサーバー