IP-IPトンネル(固定アドレス)
固定のIPアドレス間でIP-IPトンネルを構成する設定例
このタスクについて
VPNを構成する各拠点のIPv4アドレスが固定割り当てである場合の設定例です。
ここでは、3つの拠点でメッシュ型のVPNを構成するコンフィグを紹介します。
固定のIPアドレス間でIP-IPトンネルを構成する設定例
VPNを構成する各拠点のIPv4アドレスが固定割り当てである場合の設定例です。
ここでは、3つの拠点でメッシュ型のVPNを構成するコンフィグを紹介します。
| 項目 | 値 | 備考 |
|---|---|---|
| 拠点AのIPアドレス | 198.51.100.1 |
拠点Aの接続元IPアドレスとなります |
| 拠点BのIPアドレス | 192.0.2.2 |
拠点Bの接続元IPアドレスとなります |
| 拠点CのIPアドレス | 203.0.113.3 |
拠点Cの接続元IPアドレスとなります |
| 拠点AのLAN側ネットワークアドレス | 192.168.1.0/24 |
|
| 拠点BのLAN側ネットワークアドレス | 192.168.2.0/24 |
|
| 拠点CのLAN側ネットワークアドレス | 192.168.3.0/24 |
interface.tunnel2.ipv4.source : 198.51.100.1
interface.tunnel2.ipv4.destination : 192.0.2.2
route.ipv4.20.destination : 192.168.2.0/24
route.ipv4.20.gateway : tunnel2
interface.tunnel3.ipv4.source : 198.51.100.1
interface.tunnel3.ipv4.destination : 203.0.113.3
route.ipv4.30.destination : 192.168.3.0/24
route.ipv4.30.gateway : tunnel3
interface.tunnel1.ipv4.source : 192.0.2.2
interface.tunnel1.ipv4.destination : 198.51.100.1
route.ipv4.10.destination : 192.168.1.0/24
route.ipv4.10.gateway : tunnel1
interface.tunnel3.ipv4.source : 192.0.2.2
interface.tunnel3.ipv4.destination : 203.0.113.3
route.ipv4.30.destination : 192.168.3.0/24
route.ipv4.30.gateway : tunnel3
interface.tunnel1.ipv4.source : 203.0.113.3
interface.tunnel1.ipv4.destination : 198.51.100.1
route.ipv4.10.destination : 192.168.1.0/24
route.ipv4.10.gateway : tunnel1
interface.tunnel2.ipv4.source : 203.0.113.3
interface.tunnel2.ipv4.destination : 192.0.2.2
route.ipv4.20.destination : 192.168.2.0/24
route.ipv4.20.gateway : tunnel2