Skip to content

Instantly share code, notes, and snippets.

@kyokuheki
Last active February 13, 2019 06:03
Show Gist options
  • Save kyokuheki/30220de736df9f9b21660a1d9ac671ef to your computer and use it in GitHub Desktop.
Save kyokuheki/30220de736df9f9b21660a1d9ac671ef to your computer and use it in GitHub Desktop.
DHCPで静的経路の配布 (Classless Static Routes) ref: https://qiita.com/kyokuheki/items/ccf770c6475a236d2035
option rfc3442-classless-static-routes code 121 = array of integer 8;
option rfc3442-classless-static-routes 24, 192,168,30, 192,168,1,254, 0, 192,168,1,1;
dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8
ip dhcp pool SAMPLE
network 192.168.1.0 255.255.255.0
dns-server 192.168.1.1 8.8.8.8
! option 121 ip 0.0.0.0 192.168.1.1 24.192.168.30 192.168.1.254
! ip指定だとデフォルトゲートウェイが設定できない
option 121 hex 00:c0:a8:01:01:18:c0:a8:1e:c0:a8:01:fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment