【vyOS】インストール&初期設定(その1)
前回の記事でvyOSのISOイメージをビルドしたので、続けてインストール&仮想ルータとして動かしてみます。
とりあえずはsshできるようになるまで設定します。
ネットワーク概略図
[インターネット] - [WANルータ] - ( Outside Network ) - [仮想ルータ] - ( Inside Network )
- Outside Network: 192.168.0.0/24
- Inside Network: 192.168.1.0/24
- WANルータ(Outside側): 192.168.0.254/24
- 仮想ルータ(Outside側): 192.168.0.1/24
- 仮想ルータ(Inside側): 192.168.1.254/24
スペック
以下の仮想マシンを構成してISOブートします。
- vCPU: 1
- RAM: 512MB
- Disk: 2GB
- NIC: 2枚
ログイン
- ユーザ名: vyos
- 初期パスワード: vyos
インストール
# インストール開始、以降は質問に答えながら進みます $ install image # インストール完了後、OSシャットダウンしてISOをアンマウントします $ poweroff
初期設定
外部からSSH可能になるまで
# 設定モードへ移行 $ configure # sshの有効化 set service ssh # デフォルトゲートウェイの設定 set protocols static route 0.0.0.0/0 next-hop 192.168.0.254 # IPアドレスの設定 set interfaces ethernet eth0 address 192.168.0.1/24 set interfaces ethernet eth0 description OUTSIDE set interfaces ethernet eth1 address 192.168.1.254/24 set interfaces ethernet eth1 description INSIDE # 設定内容の確認 compare # 設定の有効化 commit # 設定の保存 save