GR2000 で IPv6 を使う

設定例が豊富な日本語マニュアルがあるのでそれなりに楽だが、Gatedがベースなので、Ciscoに慣れているとかなり違和感を感じる。

設定例

ルーティング IPv4: OSPF / IPv6: RIPng / BGP4+
ethernet 2/0 と 2/1 はデュアルスタック、serial 0/0 はIPv6専用
ebgp-tun0 (トンネル) で外部AS(64513)と接続
#Last modified by operator at Dec 10 13:34:58 2001 with version 05-00-/A dns_resolver yes { hostname router.example.jp; nameserver 192.168.1.1; nameserver 192.168.2.1; }; line v6-lan1 ethernet 2/0; ip v6-lan1 { 192.168.10.1/29; 2001:2a8:0:fff1::/64; }; line v6-lan2 ethernet 2/1; ip v6-lan2 { 192.168.10.9/29; 2001:2a8:0:fff2::/64; }; ra yes { interface all disable; }; routerid 10.0.0.1; ospf yes { multipath; area 0.0.0.0 { interface v6-lan1; interface v6-lan2; }; }; ripng yes { interface all ripin ripout; interface ebgp-tun0 noripin noripout; }; options max-paths 2 ; router { name "router"; contact "CTNet IPv6 Team [ipv6@ctnet.ad.jp]"; location "Motomachi Office"; remote_access 192.168.1.0 mask 255.255.255.0; remote_access 2001:2a8:: prefixlen 48; local_address 2001:2a8:0:abcd:0:1:2:1; rlogin disable; local_address 192.168.255.1; }; export proto ospfase { proto direct; proto static; }; autonomoussystem 64512; line hsd serial 0/0; ppp hsd; ip hsd { 2001:2a8:0:efab:121:221:1:1/126 destination_ip_address 2001:2a8:0:efab:121:221:1:2; }; bgp4+ yes { group type routing peeras 64512 lcladdr 2001:2a8:0:abcd:0:1:2:1 { peer 2001:2a8:0:abcd:0:1:1:1; }; group type external peeras 64513 { peer 2001:2a8:0:a:b:c:0:2; }; }; tunnel ebgp-tun0 { 192.168.255.1 remote 172.16.1.1; description "to_EXTERNAL_AS"; }; ip ebgp-tun0 { 2001:2a8:0:a:b:c:0:1/126 destination_ip_address 2001:2a8:0:a:b:c:0:2; }; export proto bgp4+ as 64512 { proto bgp4+ autonomoussystem 64513; }; import proto bgp4+ autonomoussystem 64513 { all preference 200; }; export proto bgp4+ as 64513 { proto bgp4+ aspath ^$ origin any; };

もどる