{"id":218,"date":"2023-10-01T15:24:40","date_gmt":"2023-10-01T06:24:40","guid":{"rendered":"https:\/\/mylifeisbeautiful555.net\/?page_id=218"},"modified":"2023-10-11T16:52:58","modified_gmt":"2023-10-11T07:52:58","slug":"%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%ef%bc%95","status":"publish","type":"page","link":"https:\/\/mylifeisbeautiful555.net\/?page_id=218","title":{"rendered":"BGP\u306e\u57fa\u672c\u8a2d\u5b9a"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"305\" src=\"https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10.png\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10.png 638w, https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10-300x143.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<p>\u25a0BGP\u306e\u57fa\u672c\u8a2d\u5b9a<br>R1\u3067\u57fa\u672c\u7684\u306aBGP\u306e\u8a2d\u5b9a\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<br>\u2460BGP\u30d7\u30ed\u30bb\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br>R1\uff08config\uff09#rotuer bgp [AS\u756a\u53f7]<\/p>\n\n\n\n<p>\u2461BGP\u3092\u8cbc\u308b\u30cd\u30a4\u30d0\u30fc\u3092\u8a2d\u5b9a\u3059\u308b<br>R1(config-router)#neighbor [\u30d4\u30a2\u3092\u5f35\u308b\u30eb\u30fc\u30bf\u306eIP] remote-as [AS\u756a\u53f7]<\/p>\n\n\n\n<p>\u2462\u901a\u77e5\u3059\u308b\u7d4c\u8def\u3092\u8a2d\u5b9a\u3059\u308b<br>R1(config-router)#network [\u30cd\u30c3\u30c8\u30ef\u30fc\u30afIP] mask [\u30b5\u30d6\u30cd\u30c3\u30c8\u30de\u30b9\u30af]<\/p>\n\n\n\n<p>\u2460\u2461\u2462\u306e\u7d50\u679c\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<br>R1(config)#rotuer bgp 1<br>R1(config-router)#neighbor 192.168.0.2 remote-as 2<br>R1(config-router)#network 10.10.10.0 mask 255.255.255.0<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>R1\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u8a2d\u5b9a<\/td><td>R2\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u8a2d\u5b9a<\/td><\/tr><tr><td>interface Ethernet1\/0<br>ip address 192.168.0.1 255.255.255.0<br>duplex full<br>!<br>interface Ethernet1\/1<br>ip address 10.10.10.1 255.255.255.0<br>duplex full<br>!<br>router bgp 1<br>bgp log-neighbor-changes<br>network 10.10.10.0 mask 255.255.255.0<br>neighbor 192.168.0.2 remote-as 2<\/td><td>interface Ethernet1\/0<br>ip address 192.168.0.2 255.255.255.0<br>duplex full<br>!<br>interface Ethernet1\/1<br>ip address 20.20.20.1 255.255.255.0<br>duplex full<br>!<br>router bgp 2<br>bgp log-neighbor-changes<br>network 20.20.20.0 mask 255.255.255.0<br>neighbor 192.168.0.1 remote-as 1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"305\" class=\"wp-image-274\" src=\"https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10.png\" alt=\"\" srcset=\"https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10.png 638w, https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10-300x143.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n<figure class=\"wp-block-table alignleft\"><table><tbody><tr><td>R1\u306e\u7d4c\u8def\u60c5\u5831<\/td><td>R2\u306e\u7d4c\u8def\u60c5\u5831<\/td><\/tr><tr><td>R1#show ip route<br>&lt;\u4e2d\u7565&gt;<br>Gateway of last resort is not set<br><code>10.0.0.0\/8 is variably subnetted, 2 subnets, 2 masks<\/code><br>C 10.10.10.0\/24 is directly connected, Ethernet1\/1<br>L 10.10.10.1\/32 is directly connected, Ethernet1\/1<br>20.0.0.0\/24 is subnetted, 1 subnets<br>B 20.20.20.0 [20\/0] via 192.168.0.2, 01:25:04<br>192.168.0.0\/24 is variably subnetted, 2 subnets, 2 masks<br>C 192.168.0.0\/24 is directly connected, Ethernet1\/0<br>L 192.168.0.1\/32 is directly connected, Ethernet1\/0<\/td><td>R2#show ip route<br>&lt;\u4e2d\u7565&gt;<br>Gateway of last resort is not set<br><code>10.0.0.0\/24 is subnetted, 1 subnets<\/code><br>B 10.10.10.0 [20\/0] via 192.168.0.1, 01:25:57<br>20.0.0.0\/8 is variably subnetted, 2 subnets, 2 masks<br>C 20.20.20.0\/24 is directly connected, Ethernet1\/1<br>L 20.20.20.1\/32 is directly connected, Ethernet1\/1<br>192.168.0.0\/24 is variably subnetted, 2 subnets, 2 masks<br>C 192.168.0.0\/24 is directly connected, Ethernet1\/0<br>L 192.168.0.2\/32 is directly connected, Ethernet1\/0<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><br><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u25a0\u30d9\u30b9\u30c8\u30d1\u30b9\u306e\u78ba\u8a8d<br>\u300c*\u300d\u306f\u305d\u306e\u7d4c\u8def\u60c5\u5831\u304c\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u3002<br>\u300c>\u300d\u306f\u30d9\u30b9\u30c8\u30d1\u30b9\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>R1\u306eBGP\u72b6\u614b<\/td><td>R2\u306eBGP\u72b6\u614b<\/td><\/tr><tr><td>R1#show ip bgp<br>&lt;\u4e2d\u7565><br>BGP table version is 3, local router ID is 10.10.10.1<br>Status codes: s suppressed, d damped, h history, * valid, > best, i &#8211; internal,<br>r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,<br>x best-external, a additional-path, c RIB-compressed,<br>Origin codes: i &#8211; IGP, e &#8211; EGP, ? &#8211; incomplete<br>RPKI validation codes: V valid, I invalid, N Not found<br><br><code>Network Next Hop Metric LocPrf Weight Path<\/code><br>*> 10.10.10.0\/24 0.0.0.0 0 32768 i<br>*> 20.20.20.0\/24 192.168.0.2 0 0 2 i<\/td><td>R2#show ip bgp<br>&lt;\u4e2d\u7565><br>BGP table version is 3, local router ID is 192.168.0.2<br>Status codes: s suppressed, d damped, h history, * valid, > best, i &#8211; internal,<br>r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,<br>x best-external, a additional-path, c RIB-compressed,<br>Origin codes: i &#8211; IGP, e &#8211; EGP, ? &#8211; incomplete<br>RPKI validation codes: V valid, I invalid, N Not found<br><br><code>Network Next Hop Metric LocPrf Weight Path<\/code><br>*> 10.10.10.0\/24 192.168.0.1 0 0 1 i<br>*> 20.20.20.0\/24 0.0.0.0 0 32768 i<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"305\" src=\"https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10.png\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10.png 638w, https:\/\/mylifeisbeautiful555.net\/wp-content\/uploads\/2023\/10\/image-10-300x143.png 300w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n\n\n<p>\u25a0\u8fd1\u63a5\u30eb\u30fc\u30bf\u306e\u60c5\u5831\u78ba\u8a8d<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>R1\u306eBGP\u72b6\u614b<\/td><\/tr><tr><td>R1#show ip bgp summary<br>&lt;\u4e2d\u7565><br>Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up\/Down State\/PfxRcd<br>192.168.0.2 4 2 318 320 5 0 0 04:45:18 1<\/td><\/tr><tr><td>R2\u306eBGP\u72b6\u614b<\/td><\/tr><tr><td>R2#show ip bgp summary<br>&lt;\u4e2d\u7565><br>Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up\/Down State\/PfxRcd<br>192.168.0.1 4 1 976 972 5 0 0 14:43:15 1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0BGP\u306e\u57fa\u672c\u8a2d\u5b9aR1\u3067\u57fa\u672c\u7684\u306aBGP\u306e\u8a2d\u5b9a\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u2460BGP\u30d7\u30ed\u30bb\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3002R1\uff08config\uff09#rotuer bgp [AS\u756a\u53f7] \u2461BGP\u3092\u8cbc\u308b\u30cd\u30a4\u30d0\u30fc\u3092\u8a2d\u5b9a\u3059\u308bR1(config-router)#neig [&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-218","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/218","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=218"}],"version-history":[{"count":16,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/218\/revisions"}],"predecessor-version":[{"id":302,"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=\/wp\/v2\/pages\/218\/revisions\/302"}],"wp:attachment":[{"href":"https:\/\/mylifeisbeautiful555.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}