20. インストール例 1
vyos loign: vyos
Password: vyos
$ install image
Would you like to continue? (Yes/No) [Yes]: (Enter)
Partition (Auto/Parted/Skip) [Auto]: (Enter)
Install the image on? [sda]: (Enter)
This will destroy all data on /dev/sda.
Continue? (Yes/No) [No]: Yes(Enter)
Would you like me to keep SSH keys on new install? (Yes/No) [Yes]:
(Enter)
21. インストール例 2
How big of a root partition should I create? (1000MB – 21474MB)
[21474]MB: (Enter)
※表示されるディスク容量は契約時期等により変わりますがそのまま
What would you like to name this image? [1.0.4]: (Enter)
※インストールするバージョンにより変わりますがそのまま
Which one should I copy to sda? [/config/config.boot]: (Enter)
Enter password for user 'vyos': (新しいパスワードを入力)
Which drive should GRUB modify the boot partition on? [sda]: (Enter)
$ reboot
Proceed with reboot? (Yes/No) [No] Yes(Enter)
24. VyOS ネットワーク基本設定
$ configure
設定モード
# set interfaces ethernet eth0 address 59.106.176.???/23
IPアドレス,ネットマスクを eth0 に設定
# set system gateway-address 59.106.176.1
ゲートウェイアドレスを設定
# set system name-server 210.188.224.10
# set system name-server 210.188.224.11
ネームサーバを設定(2個)
25. VyOS SSHポート変更、設定反映
# set service ssh port 60022
sshポートを 22 -> 60022 に変更(セキュリティ対策)
# commit
設定を反映
# save
設定を保存
# exit
設定を終了
外部からSSH接続出来るハズ、確認しよう!
26. VyOS NTP , ホスト名設定
( configure で設定 , commit 反映 , save 保存 以降省略)
delete system ntp
set system ntp server ntp1.jst.mfeed.ad.jp
set system ntp server ntp2.jst.mfeed.ad.jp
set system ntp server ntp3.jst.mfeed.ad.jp
set system time-zone Asia/Tokyo
※国内のNTPサーバ,タイムゾーンを設定
set system host-name VR-1
※ホスト名設定例
27. VyOS 確認コマンド
$ show interface
インタフェース状態を表示
$ show configuration
設定を表示
$ show configuration commands
設定をコマンド形式で表示
$ history
コマンド履歴を確認