{"id":119,"date":"2012-09-07T19:04:18","date_gmt":"2012-09-07T10:04:18","guid":{"rendered":"http:\/\/blog.k-goo.net\/?p=119"},"modified":"2012-09-07T19:04:18","modified_gmt":"2012-09-07T10:04:18","slug":"cisco-simulator-mpls","status":"publish","type":"post","link":"https:\/\/blog.k-goo.net\/?p=119","title":{"rendered":"cisco simulator \u2013 mpls"},"content":{"rendered":"<p>\u25cbcisco simulator\u306e\u7d9a\u304d<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001PE-P-PE\u306eRouter\u9593\u306flabel switch\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u69cb\u6210\u56f3\u306f<a href=\"https:\/\/blog.k-goo.net\/wp-content\/uploads\/2012\/09\/mpls3.jpg\">\u3053\u3061\u3089<\/a><\/p>\n<p>(\u524d\u63d0)<br \/>\nMPLS\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u78ba\u7acb\u3059\u308b\u305f\u3081\u3001\u30ea\u30f3\u30af\u30b9\u30c6\u30fc\u30c8\u306aIGP(OSPF\/IS-IS)\u3067pureIP\u7db2\u3092\u69cb\u6210\u3059\u308b<br \/>\n\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/br><br \/>\n\uff0aIGP\u3067\u3001LDP or RSVP\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u914d\u5e03\u3057\u3066\u3082\u3089\u3044\u307e\u3059\u3002<\/p>\n<p><tt><\/p>\n<pre>\r\nMPLS\u3092enable\u306b\u3057\u3066\u3001OSPF\u3067pureIP\u7db2\u3092\u69cb\u6210\u3057\u307e\u3059\u3002\r\n\u25cbR1\u306e\u8a2d\u5b9a\r\n<p style=\"background-color: #e6e6fa; border: 1px dotted #CCCCCC; padding: 5px;\">\r\n* MPLS\u3092\u4f7f\u7528\u3059\u308b\u3068\u304d\u306f\u3001cef(Cisco Express Forwarding)\u3092enable\u306b\u3059\u308b\r\nR1(config)# ip cef\r\n* MPLS\u30b3\u30a2\u3092\u63a5\u7d9a\u3059\u308binterface\u3067mpls\u3092enable\u306b\r\nR1(config-if)# mpls ip\r\n* ospf \u306e\u8a2d\u5b9a (loopback + Labelswitch\u3055\u305b\u308bip-interface)\r\nR1(config)# router ospf 100\r\nR1(config-router)# router-id 10.10.10.1\r\nR1(config-router)# log-adjacency-changes\r\nR1(config-router)# redistribute connected subnets < -- CE-CE\u306e\u5230\u9054\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u4e00\u6642\u7684\u306bospf\u3078redis\r\nR1(config-router)# network 10.10.10.0 0.0.0.255 area 0\r\nR1(config-router)# network 192.168.12.0 0.0.0.255 area 0\r\nR1(config-router)# network 192.168.13.0 0.0.0.255 area 0\r\nR1(config-router)# network 192.168.14.0 0.0.0.255 area 0\r\n<\/p>\r\n\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3092\u3001R1-R4(P,PE-Router)\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\r\n\u3067\u3001\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002\r\n<p style=\"background-color: #e6e6fa; border: 1px dotted #CCCCCC; padding: 5px;\">\r\n* mpls-inerface\u3092\u78ba\u8a8d\u3059\u308b\r\nR1# show mpls interface\r\nInterface              IP            Tunnel   BGP Static Operational\r\nSerial1\/0              Yes (ldp)     No       No  No     Yes\r\nSerial1\/1              Yes (ldp)     No       No  No     Yes\r\n\r\n* ldp neighbor\u3092\u78ba\u8a8d\u3059\u308b\r\nR1# show mpls ldp neighbor\r\n    Peer LDP Ident: 10.10.10.4:0; Local LDP Ident 10.10.10.1:0\r\n        TCP connection: 10.10.10.4.65201 - 10.10.10.1.646\r\n        State: Oper; Msgs sent\/rcvd: 37\/37; Downstream\r\n        Up time: 00:19:50\r\n        LDP discovery sources:\r\n          Serial1\/0, Src IP addr: 192.168.14.4\r\n        Addresses bound to peer LDP Ident:\r\n          192.168.24.4    10.10.10.4      192.168.34.4    192.168.14.4\r\n    Peer LDP Ident: 10.10.10.2:0; Local LDP Ident 10.10.10.1:0\r\n        TCP connection: 10.10.10.2.28725 - 10.10.10.1.646\r\n        State: Oper; Msgs sent\/rcvd: 37\/37; Downstream\r\n        Up time: 00:19:48\r\n        LDP discovery sources:\r\n          Serial1\/1, Src IP addr: 192.168.12.2\r\n        Addresses bound to peer LDP Ident:\r\n          192.168.24.2    10.10.10.2      192.168.12.2    192.168.23.2\r\n\"Peer LDP Ident\"\u3068\u3057\u3066\u3001\u96a3\u63a5Router\u306eLoopback\u304c\u307f\u3048\u3066\u3044\u307e\u3059\u3002\r\n\r\n* LIB(Label information base)\u3068\u547c\u3070\u308c\u308b\u3001\u3084\u308a\u3068\u308a\u3057\u305flabel\u306e\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\r\nR1# show mpls ldp bindings\r\n  lib entry: 10.10.10.1\/32, rev 8\r\n        local binding:  label: imp-null\r\n        remote binding: lsr: 10.10.10.4:0, label: 18\r\n        remote binding: lsr: 10.10.10.2:0, label: 21\r\n  lib entry: 10.10.10.2\/32, rev 14\r\n        local binding:  label: 18\r\n        remote binding: lsr: 10.10.10.4:0, label: 17\r\n        remote binding: lsr: 10.10.10.2:0, label: imp-null\r\n  lib entry: 10.10.10.3\/32, rev 12\r\n        local binding:  label: 17\r\n        remote binding: lsr: 10.10.10.4:0, label: 16\r\n        remote binding: lsr: 10.10.10.2:0, label: 16\r\n\u30fb\u30fb\u30fb\u7701\u7565\r\n\r\n* MPLS\u306eFIB\u3068\u306a\u308bLFIB(label fowarding information base)\u3092\u78ba\u8a8d\u3057\u307e\u3059\r\nPE-R1#show mpls forwarding-table\r\nLocal      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop\r\nLabel      Label      or Tunnel Id     Switched      interface\r\n16         Pop Label  10.10.10.4\/32    0             Se1\/0      point2point\r\n17         16         10.10.10.3\/32    0             Se1\/1      point2point\r\n           16         10.10.10.3\/32    0             Se1\/0      point2point\r\n18         Pop Label  10.10.10.2\/32    44            Se1\/1      point2point\r\n19         Pop Label  192.168.34.0\/24  0             Se1\/0      point2point\r\n20         Pop Label  192.168.24.0\/24  0             Se1\/1      point2point\r\n           Pop Label  192.168.24.0\/24  0             Se1\/0      point2point\r\n21         Pop Label  192.168.23.0\/24  0             Se1\/1      point2point\r\n22         18         192.168.13.0\/24  0             Se1\/1      point2point\r\n           20         192.168.13.0\/24  0             Se1\/0      point2point\r\n23         19         192.168.36.0\/24  0             Se1\/1      point2point  *1)\r\n           22         192.168.36.0\/24  0             Se1\/0      point2point\r\n\r\n\"Local Label\"    -- > \u81ea\u5206\u304c\u3064\u3051\u305flabel\r\n\"Outgoing Label\" -- > \u8ee2\u9001\u3059\u308b\u3068\u304d\u306b\u4ed8\u4e0e\u3059\u308blabel,Pop Label\u306flabel\u3092\u306f\u305a\u3057\u3066\u8ee2\u9001\r\n\"Prefix or Tunnel\"- > \u5bfe\u8c61\u306eprefix or tunnel\r\n\"Out-int\"        -- > \u3069\u306einterface\u304b\u3089\u8ee2\u9001\u3059\u308b\u304b\r\n\r\nCisco\u3060\u3068\u3001default\u3067PHP(Penultimate Hop Popping)\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u3066\u3001\r\nlast-hop-Router\u306e\u624b\u524d\u3067label\u3092\u306f\u305a\u3057\u307e\u3059\u3002\r\nLSP\u3067QoS\u5236\u5fa1\u3059\u308b\u306a\u3069\u3057\u305f\u5834\u5408\u306blast-hop-Router\u3067\u5229\u304b\u306a\u3044\u3068\u3044\u3046\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002 \r\nR(config)# mpls ldp explicit-null\r\n\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u56de\u907f\u53ef\u80fd\r\n\r\n* \u5b9f\u969b\u306b\"Label Switch\"\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\r\nR2# debug mpls packet\r\n\u3068\u3057\u3066\u304b\u3089 CE\u3067\u3042\u308bR5\u2192R6\u3078ping\u3092\u306a\u3052\u307e\u3059\u3002\r\nR5# ping 192.168.36.6\r\nR2# \r\n*Sep  7 16:51:13.303: MPLS turbo: Se1\/0: rx: Len 108 Stack {19 0 254} - ipv4 data\r\n*Sep  7 16:51:13.375: MPLS turbo: Se1\/0: rx: Len 108 Stack {19 0 254} - ipv4 data\r\n*Sep  7 16:51:13.403: MPLS turbo: Se1\/0: rx: Len 108 Stack {19 0 254} - ipv4 data\r\n\r\nR1\u306eLFIB\u3000*1)\u3092\u307f\u3066\u304f\u3060\u3055\u3044\u3002\r\n\"prefix\"         -- > 192.168.36.0\/24\r\n\"Out-int\"        -- > Se1\/1 (R2\u306einterface)\r\n\"Outgoing Label\" -- > 19\r\nR2\u306eSe1\/0 rx \u306719\u306eLabel-packet\u3092\u53d7\u4fe1\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\r\n<\/tt><\/pre>\n<pre>\r\n\u3053\u3053\u307e\u3067\u3067\u3001\u3088\u3046\u3084\u304fLabel Switching\u304c\u3067\u304d\u307e\u3057\u305f\u3002\r\n\u7686\u3055\u3093\u3054\u627f\u77e5\u306e\u3068\u304a\u308a\u3001pureIP\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u306f\u3001MPLS\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u305b\u3093\u3002\r\n(label\u3067routing\u3057\u306a\u304f\u3066\u3082\u7d50\u679c\u306f\u540c\u3058\u3060)\r\n\r\n\u6b21\u56de\u304b\u3089\u3001\r\n\u30fbMPLS VPN (L3\/L2)\r\n  point L3\u306fPE\u3067VRF\u3092\u52d5\u304b\u3057\u3066\u3001Customer\u7d4c\u8def\u306eRoutingTable\u3092\u308f\u3051\u307e\u3059\u3002\r\n        L2\u3067\u306fPE\u9593\u3067tunnel\u3092\u8a2d\u5b9a\u3057\u3066\u3001connect\u3059\u308bimage\u3067\r\n\u30fbRSVP-TE\r\n  point tunnel\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u7d4c\u8def\u3068\u5e2f\u57df\u5e45\u3092\u6307\u5b9a\u3057\u3066\u3001traffic ngineering\u3057\u307e\u3059\u3002\r\n\r\n\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u304d\u307e\u3059\u3002\r\n\r\n\u25cb\u304a\u307e\u3051\r\n@IT\u3055\u3093\u306e\u53e4\u3044\u8a18\u4e8b\u3067\u3059\u3002\u57fa\u672c\u306e\u5fa9\u7fd2\u306f\u5927\u4e8b\r\nhttp:\/\/www.atmarkit.co.jp\/fnetwork\/tokusyuu\/11mpls\/mpls01.html\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u25cbcisco simulator\u306e\u7d9a\u304d \u3068\u308a\u3042\u3048\u305a\u3001PE-P-PE\u306eRouter\u9593\u306flabel switch\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u3066\u307f\u307e\u3059\u3002 \u69cb\u6210\u56f3\u306f\u3053\u3061\u3089 (\u524d\u63d0) MPLS\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u78ba\u7acb\u3059\u308b\u305f\u3081\u3001\u30ea\u30f3\u30af\u30b9\u30c6\u30fc\u30c8\u306aIGP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6,8],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-cisco","category-lab","category-mpls"],"_links":{"self":[{"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":33,"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":310,"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/310"}],"wp:attachment":[{"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.k-goo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}