{"id":1701,"date":"2025-12-01T12:30:32","date_gmt":"2025-12-01T03:30:32","guid":{"rendered":"https:\/\/mylifeisbeautiful555.net\/?page_id=1701"},"modified":"2025-12-01T12:30:32","modified_gmt":"2025-12-01T03:30:32","slug":"%e3%82%a2%e3%83%88%e3%83%aa%e3%83%93%e3%83%a5%e3%83%bc%e3%83%88-next-hop","status":"publish","type":"page","link":"https:\/\/mylifeisbeautiful555.net\/?page_id=1701","title":{"rendered":"\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8 NEXT HOP"},"content":{"rendered":"\n<p><strong>BGP \u3067\u7d4c\u8def\u3092\u5b66\u7fd2\u3057\u305f\u3068\u304d\u306b\u3001\u305d\u306e\u5b9b\u5148\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u5230\u9054\u3059\u308b\u305f\u3081\u306b\u4f7f\u3046\u3079\u304d IP \u30a2\u30c9\u30ec\u30b9\u306e\u3053\u3068\u3002<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30eb\u30fc\u30bf\u30fc\u304c BGP \u3067\u53d7\u3051\u53d6\u3063\u305f\u7d4c\u8def\u306b\u5bfe\u3057\u3066<br>\u300c\u3053\u306e IP \u306b\u5411\u3051\u3066\u30d1\u30b1\u30c3\u30c8\u3092\u9001\u308c\u3070\u76ee\u7684\u5730\u306b\u5c4a\u304f\u3088\u300d<br>\u3068\u6559\u3048\u3066\u304f\u308c\u308b\u5024\u304c <strong>NEXT_HOP<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">Next-Hop \u306e\u6c7a\u307e\u308a\u3054\u3068<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1. <strong>EBGP \u3067\u306f Next-hop \u3092\u9001\u4fe1\u5143\u306e IP \u306b\u66f8\u304d\u63db\u3048\u308b<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5916\u90e8 BGP\uff08EBGP\uff09\u306f\u7570\u306a\u308b AS \u306a\u306e\u3067\u3001<br><strong>\u9001\u4fe1\u5143 Router \u306e IP \u30a2\u30c9\u30ec\u30b9\u306b Next-Hop \u3092\u66f8\u304d\u63db\u3048\u308b<\/strong>\u306e\u304c\u901a\u5e38\u52d5\u4f5c\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4f8b<br>AS 65001 \u2192 AS 65002 \u306b\u5e83\u544a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>65002 \u5074\u304c\u53d7\u3051\u308b\u7d4c\u8def\u306e NEXT_HOP \u306f\u300c65001 \u5074\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9 IP\u300d\u306b\u306a\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2. <strong>IBGP \u3067\u306f Next-hop \u3092\u66f8\u304d\u63db\u3048\u306a\u3044\uff08\u305d\u306e\u307e\u307e\u6e21\u3059\uff09<\/strong><\/h2>\n\n\n\n<p>\u2192 <strong>\u8d85\u91cd\u8981\uff01\u591a\u304f\u306e\u30c8\u30e9\u30d6\u30eb\u539f\u56e0\uff01<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5185\u90e8 BGP\uff08IBGP\uff09\u306f\u300cNext-hop \u3092\u5909\u66f4\u3057\u306a\u3044\u300d\u3068\u3044\u3046\u4ed5\u69d8\u3002<\/li>\n\n\n\n<li>\u3064\u307e\u308a\u3001EBGP \u304b\u3089\u53d7\u3051\u53d6\u3063\u305f next-hop \u3092 <strong>\u305d\u306e\u307e\u307e IBGP \u30d4\u30a2\u306b\u6d41\u3059<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4f8b<br>R1\uff08EBGP\uff09 \u2192 R2\uff08IBGP\uff09 \u2192 R3\uff08IBGP\uff09<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>R1 \u304c EBGP \u3067\u53d7\u3051\u53d6\u3063\u305f NEXT_HOP \u306f<br>R2 \u2192 R3 \u306b\u305d\u306e\u307e\u307e\u6e21\u3055\u308c\u308b<br>\u2192 R3 \u304b\u3089\u898b\u308b\u3068 <strong>R1 \u306e IP \u304c NEXT_HOP \u306b\u306a\u308b<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u3053\u3067\u554f\u984c<\/h3>\n\n\n\n<p>R3 \u304c R1 \u306e Next-hop \u3092 <strong>IGP \u3067\u5230\u9054\u3067\u304d\u306a\u3044\u5834\u5408\u3001BGP \u7d4c\u8def\u3092\u4f7f\u3048\u306a\u3044<\/strong>\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u304c\u300cBGP\u306f Next-hop \u3092\u89e3\u6c7a\u3067\u304d\u306a\u3044\u3068\u7d4c\u8def\u3092 FIB\uff08\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\uff09\u306b\u5165\u308c\u306a\u3044\u300d\u3068\u3044\u3046\u4ed5\u69d8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Next-hop \u3092 IGP\uff08OSPF \/ IS-IS \/ static\uff09\u3067\u5230\u9054\u53ef\u80fd\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BGP \u306e Next-hop \u306f <strong>IGP \u304c\u89e3\u6c7a\u3067\u304d\u3066\u521d\u3081\u3066\u4f7f\u3048\u308b<\/strong>\u3002<\/li>\n\n\n\n<li>BGP \u306f IGP\u3092\u898b\u3066\u300c\u3053\u306e Next-hop \u306e IP \u306b\u884c\u3051\u308b\uff1f\u300d\u3068\u5224\u65ad\u3059\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u5230\u9054\u3067\u304d\u306a\u3051\u308c\u3070<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BGP table\uff08BGP RIB\uff09\u306b\u306f\u8f09\u308b<\/li>\n\n\n\n<li><strong>Routing table\uff08FIB \/ RIB\uff09\u306b\u306f\u8f09\u3089\u306a\u3044<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u2192 <strong>BGP \u304c\u30d6\u30e9\u30c3\u30af\u30db\u30fc\u30eb\u306b\u306a\u308b or \u7d4c\u8def\u304c\u4f7f\u308f\u308c\u306a\u3044<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Next-Hop \u306b\u95a2\u3059\u308b\u4ee3\u8868\u7684\u30b3\u30de\u30f3\u30c9<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Cisco<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>show ip bgp\nshow ip bgp &lt;prefix&gt;\nshow ip route &lt;nexthop&gt;<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u30c8\u30e9\u30d6\u30eb\u3068\u539f\u56e0<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30e9\u30d6\u30eb1\uff1aIBGP \u3067\u5b66\u7fd2\u3057\u305f\u7d4c\u8def\u304cRIB\u306b\u5165\u3089\u306a\u3044<\/h2>\n\n\n\n<p>\u539f\u56e0\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Next-hop \u306e IP \u306b IGP \u304c\u5230\u9054\u3067\u304d\u306a\u3044<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\uff1a<br>R3 \u304b\u3089\u898b\u3066\u3001Next-hop R1 \u306e\u30a2\u30c9\u30ec\u30b9\u304c IGP \u306b\u7121\u3044 \u2192 BGP \u7d4c\u8def\u304c\u7121\u52b9\u5316\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30e9\u30d6\u30eb2\uff1aEBGP \u30de\u30eb\u30c1\u30db\u30c3\u30d7\u3067 Next-hop \u304c\u5916\u5411\u304dIF\u306b\u306a\u3063\u3066\u3057\u307e\u3046<\/h2>\n\n\n\n<p>\u5bfe\u7b56\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>next-hop-self<\/code><\/li>\n\n\n\n<li>static route<\/li>\n\n\n\n<li>route-map \u3067 next-hop \u6307\u5b9a<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c8\u30e9\u30d6\u30eb3\uff1aRoute Reflector \u3067 Next-hop \u304c\u5909\u308f\u3089\u306a\u3044\u554f\u984c<\/h2>\n\n\n\n<p>\u53cd\u5c04\u30eb\u30fc\u30bf\u30fc\uff08RR\uff09\u306f next-hop \u3092\u5909\u66f4\u3057\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u5bfe\u7b56\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>RR \u306b <code>next-hop-self<\/code> \u3092\u4ed8\u3051\u308b<\/li>\n\n\n\n<li>RR \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u540c\u58eb\u3067 Next-hop \u89e3\u6c7a\u3067\u304d\u308b IGP \u3092\u7d44\u3080<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u5bfe\u7b56\uff1aNext-hop \u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1. next-hop-self\uff08IBGP\u3067\u5fc5\u9808\u30ec\u30d9\u30eb\uff09<\/h2>\n\n\n\n<p>Cisco:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>router bgp 65001\n neighbor 10.0.0.2 next-hop-self<\/code><\/pre>\n\n\n\n<p>IBGP \u306e\u7d4c\u8def\u3092\u6e21\u3059\u3068\u304d\u306b next-hop \u3092 <strong>\u81ea\u5206\u306e IP \u306b\u66f8\u304d\u63db\u3048\u308b<\/strong>\u8a2d\u5b9a\u3002<br>\u2192 Route Reflector \u3067\u306f\u5fc5\u9808\u7d1a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. route-map \u3067 next-hop \u3092\u610f\u56f3\u7684\u306b\u8a2d\u5b9a<\/h2>\n\n\n\n<p>Cisco:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>route-map SETNH permit 10\n  set ip next-hop 192.0.2.1\n\nrouter bgp 65001\n  neighbor 10.0.0.2 route-map SETNH out<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>\u5185\u5bb9<\/th><\/tr><\/thead><tbody><tr><td>EBGP<\/td><td>next-hop \u3092\u81ea\u52d5\u3067\u66f8\u304d\u63db\u3048\u308b<\/td><\/tr><tr><td>IBGP<\/td><td>next-hop \u3092\u66f8\u304d\u63db\u3048\u306a\u3044\uff08\u305d\u306e\u307e\u307e\u6e21\u3059\uff09<\/td><\/tr><tr><td>BGP<\/td><td>next-hop \u304c IGP \u3067\u89e3\u6c7a\u3067\u304d\u306a\u3051\u308c\u3070\u7d4c\u8def\u3092\u4f7f\u308f\u306a\u3044<\/td><\/tr><tr><td>\u5bfe\u7b56<\/td><td>next-hop-self \/ IGP \u3067 Next-hop \u3092\u5230\u9054\u53ef\u80fd\u306b\u3059\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>BGP \u3067\u7d4c\u8def\u3092\u5b66\u7fd2\u3057\u305f\u3068\u304d\u306b\u3001\u305d\u306e\u5b9b\u5148\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u5230\u9054\u3059\u308b\u305f\u3081\u306b\u4f7f\u3046\u3079\u304d IP \u30a2\u30c9\u30ec\u30b9\u306e\u3053\u3068\u3002 Next-Hop \u306e\u6c7a\u307e\u308a\u3054\u3068 1. EBGP \u3067\u306f Next-hop \u3092\u9001\u4fe1\u5143\u306e IP \u306b\u66f8\u304d\u63db\u3048\u308b \u4f8bAS 650 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1701","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/1701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1701"}],"version-history":[{"count":1,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/1701\/revisions"}],"predecessor-version":[{"id":1704,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/1701\/revisions\/1704"}],"wp:attachment":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}