BIG-IPの一番最初に行う初期設定をまとめます。ホスト名, DNS, NTPなど一番最初に行う設定をCLIで素早く思い出すためのメモ資料です。
ホスト名
以下のコマンドでホスト名を設定します。
modify sys global-settings hostname <FQDN>
操作例は以下の通りです。入力後にプロンプトがlocalhostからbigip02に変わっています。
root@(localhost)(cfg-sync Standalone)(Active)(/Common)(tmos)# modify sys global-settings hostname bigip02.gokatei.go root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)#
時刻同期関連
タイムゾーンおよびNTPサーバの指定は以下のコマンドです。
modify sys ntp timezone Asia/Tokyo
modify sys ntp servers replace-all-with { <NTPサーバ> }
操作例は以下の通りです。
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)# modify sys ntp timezone Asia/Tokyo
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)# modify sys ntp servers replace-all-with { 192.168.1.221 }
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)#
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)#
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)# quit
[root@bigip02:Active:Standalone] config #
[root@bigip02:Active:Standalone] config #
[root@bigip02:Active:Standalone] config # ntpq -np
remote refid st t when poll reach delay offset jitter
==============================================================================
*192.168.1.221 133.243.238.243 2 u 20 64 1 0.702 0.609 0.351
[root@bigip02:Active:Standalone] config #
名前解決
DNSサーバおよび入力補完するドメイン名の指定は以下の通りです。
modify sys dns name-servers replace-all-with { <DNSサーバ> }
modify sys dns search replace-all-with { <ドメイン名> }
操作例は以下の通りです。
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)# modify sys dns name-servers replace-all-with { 192.168.1.221 }
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)# modify sys dns search replace-all-with { gokatei.go }
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)#
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)#
root@(bigip02)(cfg-sync Standalone)(Active)(/Common)(tmos)# quit
[root@bigip02:Active:Standalone] config #
[root@bigip02:Active:Standalone] config #
[root@bigip02:Active:Standalone] config # nslookup vcenter01.gokatei.go
Server: 192.168.1.221
Address: 192.168.1.221#53
Name: vcenter01.gokatei.go
Address: 192.168.2.171
[root@bigip02:Active:Standalone] config #
