Last active
February 13, 2019 06:03
-
-
Save kyokuheki/30220de736df9f9b21660a1d9ac671ef to your computer and use it in GitHub Desktop.
DHCPで静的経路の配布 (Classless Static Routes) ref: https://qiita.com/kyokuheki/items/ccf770c6475a236d2035
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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