VRFとGRE over IPsecの設定・検証2 / 5
Innerとouterを分けるGRE
GREは別のpacketをencapsulateして運ぶ。GRE over IPv4はIP protocol47を使い、TCP/UDP port47ではない。GRE自体には暗号化がなく、保護にはIPsec等を組み合わせる。
R1の外側interfaceは192.0.2.1、R2は198.51.100.2で、外側のIP到達性を構成済みとする。内側はBLUEの10.0.0.0/30で接続する。R1側のtunnelの例は次のようになる。
interface Tunnel10
vrf forwarding BLUE
ip address 10.0.0.1 255.255.255.252
tunnel source GigabitEthernet0/0
tunnel destination 198.51.100.2
tunnel mode gre ip
tunnel protection ipsec profile BLUE-IPSEC
R2では内側10.0.0.2、外側のsource/destinationを逆にし、対向のLANへのrouteを対応させる。この例のouterはglobal routing、innerはBLUEである。outerも別VRFへ置く場合はtunnel vrf等で外側のlookupを対応させる。inner宛先のrouteを増やすだけでは、outerの対向addressへの到達性は直らない。