手当たり次第に書くんだ

飽きっぽいのは本能

VyOS 1.4 IPv6 IPoE インターネット接続設定

VyOS 1.4 で IPv6 IPoE を使う設定例です。RA による IPv6 アドレス取得、firewall、LAN 側 RA、必要に応じた nat66 を分けて整理します。

IPoE の考え方

IPoE は PPPoE のように PPP セッションを張る方式ではなく、Ethernet 上で IPv6 をそのまま扱う方式です。プロバイダーから RA が届く環境では、WAN 側で IPv6 autoconf を使います。

WAN 側 IPv6 autoconf

configure
set interfaces ethernet eth0 address 'autoconf'
set interfaces ethernet eth0 ipv6 address autoconf
set interfaces ethernet eth0 description 'wan-ipv6-ipoe'
commit
save

IPv6 firewall

configure
set firewall ipv6-name outside6-in default-action 'drop'
set firewall ipv6-name outside6-in rule 10 action 'accept'
set firewall ipv6-name outside6-in rule 10 state established 'enable'
set firewall ipv6-name outside6-in rule 10 state related 'enable'
set interfaces ethernet eth0 firewall in ipv6-name 'outside6-in'
commit
save

LAN 側 RA

configure
set interfaces ethernet eth1 address 'fd00::1/64'
set service router-advert interface eth1 prefix fd00::/64
commit
save

nat66 を使う場合

IPv6 では通常 NAT を前提にしません。ただし、ULA を使った内部設計や prefix 変更への対処として nat66 を検証したい場合があります。

configure
set nat66 source rule 5000 outbound-interface 'eth0'
set nat66 source rule 5000 source prefix 'fd00::/64'
set nat66 source rule 5000 translation address 'masquerade'
commit
save

確認

show interfaces ethernet eth0
show ipv6 route
show nat66 source rules
ping6 2001:4860:4860::8888

まとめ

IPv6 IPoE は PPPoE より構成がシンプルですが、RA、firewall、LAN 側 prefix、DNS、必要に応じた nat66 の関係を整理する必要があります。IPv6 NAT は例外的な設計として、目的を明確にして使います。

VyOS 1.4 IPv6 IPoE インターネット接続設定

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

トップへ戻る