{"id":307639,"date":"2020-07-28T21:00:55","date_gmt":"2020-07-28T21:00:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=307639"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=307639","title":{"rendered":"802.1Q \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f L2VPN \u0413\u041e\u0421\u0422 \u0438\u043b\u0438 \u043a\u0430\u043a \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u041f\u041e"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/512850\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/of\/yz\/y1\/ofyzy1y2s4edvqpybdgdyod0xqu.png\"><\/p>\n<h3>\u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u042f \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u043d\u044f\u0442\u044c VPN \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0430\u043c\u0438 \u0432 \u0441\u0435\u0442\u0438. \u0412 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0431\u044b\u043b\u0438 \u0448\u043b\u044e\u0437\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0421-\u0422\u0435\u0440\u0440\u0430 \u0428\u043b\u044e\u0437 \u0432\u0435\u0440\u0441\u0438\u0438 4.2. \u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f. \u0412\u0435\u043d\u0434\u043e\u0440 \u0434\u0430\u0436\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041d\u043e\u2026 \u0432 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0440\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0430 \u043d\u0430 \u043c\u043e\u0438\u0445 \u0448\u043b\u044e\u0437\u0430\u0445 \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430.<\/p>\n<p>  \u0417\u0430\u0432\u0430\u0440\u0438\u0432\u0430\u044e \u043a\u043e\u0444\u0435, \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u0441\u0432\u043e\u0439 CCNA \u0438 \u043f\u0440\u043e\u0431\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u2013 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430\u0445. <br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041c\u043e\u044f \u0441\u0435\u0442\u044c<\/h3>\n<p>  \u041c\u043e\u044f \u0441\u0435\u0442\u044c \u2013 \u044d\u0442\u043e \u0434\u0432\u0435 \u0442\u0435\u0440\u0440\u0438\u0442\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c broadcast \u0434\u043e\u043c\u0435\u043d\u0435. \u0410\u0434\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e: 10.10.205.0\/24:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xt\/yl\/od\/xtylod9wi-ka5t3rmxxcaeqp8um.png\"><\/p>\n<p>  \u041d\u0430 \u0440\u0443\u043a\u0430\u0445 \u0434\u0432\u0430 \u0448\u043b\u044e\u0437\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0421-\u0422\u0435\u0440\u0440\u0430 \u0428\u043b\u044e\u0437 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u0441 \u043f\u0430\u043a\u0435\u0442\u043e\u043c \u0421-\u0422\u0435\u0440\u0440\u0430 L2.   <\/p>\n<blockquote><p><b>\u041e \u043f\u0430\u043a\u0435\u0442\u0435 \u0421-\u0422\u0435\u0440\u0440\u0430 L2<\/b><\/p>\n<p>  \u041f\u0430\u043a\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0448\u043b\u044e\u0437\u0430 \u0432 PROMISC \u0440\u0435\u0436\u0438\u043c. PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0440\u0435\u0439\u043c\u044b \u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0430 \u0421-\u0422\u0435\u0440\u0440\u0430 L2 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u0438\u0445 \u0432 UDP.<br \/>  \u0414\u0430\u043b\u0435\u0435 UDP \u043f\u0430\u043a\u0435\u0442\u044b \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f (\u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 ESP). \u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f L2-over-L3 VPN \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435. \u0421-\u0422\u0435\u0440\u0440\u0430 L2 \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u0432\u0441\u0435 \u0448\u043b\u044e\u0437\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.<\/p><\/blockquote>\n<p>  \u0412 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0448\u043b\u044e\u0437\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0441\u0435\u0442\u0438, \u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4v\/hk\/ww\/4vhkwwvjtu2xl7p4psh3fk-erek.png\"> <\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u043e\u043f\u0438\u0448\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b:<\/p>\n<ul>\n<li>Gi0\/0 \u2013 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b;<\/li>\n<li>Gi0\/1 \u2013 L3 WAN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b;<\/li>\n<li>Gi0\/2 \u2013 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u042f \u0442\u0430\u043a \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u0448\u043b\u044e\u0437\u043e\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 VPN \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043a\u0440\u0443\u0436\u043a\u0430 \u043a\u043e\u0444\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c, \u043f\u043e\u043a\u0430 \u044f \u0447\u0438\u0442\u0430\u043b \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e 802.1Q \u2013 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u043b CCNA. \u0412\u0442\u043e\u0440\u0430\u044f \u043a\u0440\u0443\u0436\u043a\u0430 \u043e\u0441\u0442\u044b\u043b\u0430 (\u043f\u043e\u0433\u0440\u0435\u044e \u0432 \u043c\u0438\u043a\u0440\u043e\u0432\u043e\u043b\u043d\u043e\u0432\u043a\u0435), \u043f\u043e\u043a\u0430 \u043a\u043e\u043c\u043c\u0443\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ws\/hx\/bv\/wshxbvgobzk31tbxbrdoy0xnn08.png\"><\/p>\n<p>  \u0412\u044b\u0434\u0435\u043b\u044f\u044e \u0442\u0440\u0438 \u0442\u0438\u043f\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430:<\/p>\n<ul>\n<li>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043c\u0435\u0436\u0434\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 R1 \u0438 R2. \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0443 \u043a\u0430\u043a BULK DATA \u0438 \u0432\u044b\u043d\u0435\u0441\u0443 \u0432 VLAN 205. \u041f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0430\u043c\u0438 BULK DATA \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d;<\/li>\n<li>\u0422\u0440\u0430\u0444\u0438\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0448\u043b\u044e\u0437\u0430\u043c\u0438 \u2013 MGMT. \u0412\u044b\u043d\u0435\u0441\u0443 \u0432 VLAN 10. MGMT \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043e \u0448\u043b\u044e\u0437\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d;<\/li>\n<li>BULK DATA \u0438 MGMT \u043f\u043e\u0441\u043b\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0443 \u043a\u0430\u043a ESP DATA \u0438 \u0432\u044b\u043d\u0435\u0441\u0443 \u0432 VLAN 100.<\/li>\n<\/ul>\n<p>  \u041f\u043e \u043c\u043e\u0438\u043c \u043f\u0440\u0438\u043a\u0438\u0434\u043a\u0430\u043c, \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 BULK DATA\/ESP DATA \u0432 \u0441\u0435\u0442\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a (\u0437\u0435\u043b\u0435\u043d\u044b\u043c\u0438 \u043b\u0438\u043d\u0438\u044f\u043c\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u043b \u043d\u0435\u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a, \u043a\u0440\u0430\u0441\u043d\u044b\u043c\u0438 \u2013 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439):<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rj\/so\/gq\/rjsogqw6l9aembxnwt-ops963tw.png\"><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 MGMT \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0448\u043b\u044e\u0437\u043e\u043c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wz\/sw\/w0\/wzsww0eue7o6fh-g5jqq1enpvyu.png\"><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 MGMT\/ESP DATA \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0448\u043b\u044e\u0437\u043e\u043c \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/oa\/w4\/lf\/oaw4lffykpbizv1fgjrz48gzt5u.png\"><\/p>\n<h3>5 \u0448\u0430\u0433\u043e\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/h3>\n<p>  <b>\u0428\u0430\u0433 1. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0441 BULK DATA<\/b><\/p>\n<p>  \u0412\u044b\u0434\u0435\u043b\u044f\u044e \u0434\u043b\u044f BULK DATA \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 VLAN 205. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Gi0\/2 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 SW1 \u0438 SW2 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e \u0432 access mode \u0441 VLAN 205:<\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface gi0\/2     description BULK_TO_R1     switchport access vlan 205     no shutdown  sw2(config)# interface gi0\/2   description BULK_TO_R2   switchport access vlan 205   no shutdown<\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u044e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b Gi0\/0 \u0448\u043b\u044e\u0437\u043e\u0432 GW1 \u0438 GW2 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c\u0438. \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c BULK DATA \u043d\u0430 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e trunk \u0434\u043e PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:<\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface gi0\/0   description LINK_TO_PROMISC_GW1   switchport mode trunk   switchport trunk allowed vlan 205   switchport trunk encapsulation dot1q   no shutdown  sw2(config)# interface gi0\/0   description LINK_TO_PROMISC_GW2   switchport mode trunk   switchport trunk allowed vlan 205   switchport trunk encapsulation dot1q   no shutdown<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/b1\/5o\/1u\/b15o1uggzlhuv0sbhc1fjq6qzz4.png\"><\/p>\n<p>  <b>\u0428\u0430\u0433 2. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c MGMT<\/b><\/p>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u043b\u0430\u043d\u0443, MGMT \u0442\u0440\u0430\u0444\u0438\u043a \u0432\u044b\u043d\u043e\u0448\u0443\u0432 VLAN 10. \u0410\u0434\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0434\u043b\u044f VLAN 10: 10.76.76.128\/28.<\/p>\n<p>  \u041d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 SW1 \u0438 SW2 \u0441\u043e\u0437\u0434\u0430\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b vlan10:<\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface vlan10   ip address 10.76.76.129 255.255.255.240   no shutdown   sw2(config)# interface vlan10   ip address 10.76.76.142 255.255.255.240   no shutdown<\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u044e VLAN 10 native VLAN\u2019\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c 802.1Q \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043d\u0430 \u0448\u043b\u044e\u0437\u0435: <\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface gi0\/1   description LINK_TO_WAN_GW1   switchport mode trunk   switchport trunk allowed vlan 10   switchport trunk native vlan 10   switchport trunk encapsulation dot1q   no shutdown  sw2(config)# interface gi0\/1   description LINK_TO_WAN_GW2   switchport mode trunk   switchport trunk allowed vlan 10   switchport trunk native vlan 10   switchport trunk encapsulation dot1q   no shutdown<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hn\/ow\/hx\/hnowhxb7xzkwzcpnruz6al2d3m0.png\"><\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b Gi0\/1 \u0448\u043b\u044e\u0437\u043e\u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# interface gi0\/1    ip address 10.76.76.137 255.255.255.240    no shutdown  GW2(config)# interface gi0\/1   ip address 10.76.76.138 255.255.255.240   no shutdown<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c GW1 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e SSH \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 SW1:<\/p>\n<pre><code class=\"plaintext\">sw1#ssh \u2013l root 10.76.76.137 Password: S-Terra Gate 4.2.18201 (amd64) root@GW1~#<\/code><\/pre>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e GW2 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e SSH \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 SW2:<\/p>\n<pre><code class=\"plaintext\">sw2#ssh \u2013l root 10.76.76.138 Password: S-Terra Gate 4.2.18201 (amd64) root@GW2~#<\/code><\/pre>\n<p>  \u041d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u0430\u043b\u0438\u043b \u0435\u0449\u0435 \u043a\u0440\u0443\u0436\u0435\u0447\u043a\u0443 \u043a\u043e\u0444\u0435.<\/p>\n<p>  <b>\u0428\u0430\u0433 3. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0441 MGMT \u0434\u043e \u0448\u043b\u044e\u0437\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435<\/b><\/p>\n<p>  MGMT \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043e \u0448\u043b\u044e\u0437\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u043a\u0438\u043d\u0443 VLAN 10 \u0447\u0435\u0440\u0435\u0437 VPN. \u0412 VPN \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a, \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0441 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u0414\u043e\u0431\u0430\u0432\u043b\u044e \u0432 trunk \u0434\u043e PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 VLAN 10:<\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface gi0\/0   description LINK_TO_PROMISC_GW1     switchport trunk allowed vlan 10, 205  sw2(config)# interface gi0\/0   description LINK_TO_PROMISC_GW1     switchport trunk allowed vlan 10, 205<\/code><\/pre>\n<p>  <\/p>\n<blockquote><p><b>\u041d\u0435 \u0442\u0440\u0430\u0442\u044c\u0442\u0435 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 \u043d\u0430 \u0442\u0440\u0430\u0431\u043b\u0448\u0443\u0442\u0438\u043d\u0433!<\/b><\/p>\n<p>  \u041d\u0430 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c ESP DATA, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c VLAN 100 \u0438\u0437 \u0442\u0440\u0430\u043d\u043a\u043e\u0432 LINK_TO_PROMISC_GW1 \u0438 LINK_TO_PROMISC_GW2 \u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445:<\/p>\n<p>  <code>switchport trunk allowed vlan 1-99,101-4096<\/code><\/p><\/blockquote>\n<p>  <b>\u0428\u0430\u0433 4. \u0414\u043e\u0448\u0435\u043b \u0434\u043e ESP DATA<\/b><\/p>\n<p>  \u0412\u044b\u0434\u0435\u043b\u044f\u044e ESP DATA \u0432 VLAN 100 \u043d\u0430 \u0448\u043b\u044e\u0437\u0430\u0445 GW1 \u0438 GW2. \u0410\u0434\u0440\u0435\u0441\u043d\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0434\u043b\u044f VLAN 100: 192.168.10.0\/30<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430 WAN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Gi0\/1 \u0448\u043b\u044e\u0437\u043e\u0432 GW1 \u0438 GW2 \u0441\u043e\u0437\u0434\u0430\u044e 802.1Q \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Gi0\/1.100. <br \/>  \u0412\u044b\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0441 \u0442\u0430\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442\u044c VLAN 100:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# interface gi0\/1.100    ip address 192.168.10.1 255.255.255.252    no shutdown  GW2(config)# interface gi0\/1.100   ip address 192.168.10.2 255.255.255.252   no shutdown <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zt\/ux\/mg\/ztuxmgcv8oopfa_kdd4_g5q_uei.png\"><\/p>\n<p>  \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u044e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 VLAN 100 \u0432 trunk LINK_TO_WAN_GW1 \u0438 LINK_TO_WAN_GW2:<\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface gi0\/1   description LINK_TO_WAN_GW1   switchport trunk allowed vlan 10,100  sw2(config)# interface gi0\/1   description LINK_TO_WAN_GW2   switchport trunk allowed vlan 10,100<\/code><\/pre>\n<p>  \u041b\u0438\u043d\u043a \u043c\u0435\u0436\u0434\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 SW1 \u0438 SW2 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0442\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 VLAN 100 \u0442\u0440\u0430\u0444\u0438\u043a:<\/p>\n<pre><code class=\"plaintext\">sw1(config)# interface gi0\/3   description LINK_TO_SW2   switchport mode trunk   switchport trunk allowed vlan 100   switchport trunk encapsulation dot1q   no shutdown  sw2(config)# interface gi0\/3   description LINK_TO_SW1   switchport mode trunk   switchport trunk allowed vlan 100   switchport trunk encapsulation dot1q   no shutdown<\/code><\/pre>\n<p>  <b>\u0428\u0430\u0433 5. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e \u0421-\u0422\u0435\u0440\u0440\u0430 L2 \u0438 IPsec VPN \u0441 \u0413\u041e\u0421\u0422\u043e\u043c<\/b><\/p>\n<p>  \u0421-\u0422\u0435\u0440\u0440\u0430 L2 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \/opt\/VPNagent\/etc\/l2.conf. \u0414\u043b\u044f GW1:<\/p>\n<pre><code class=\"plaintext\">vif tap0 bridge br0 capture eth0 remote 192.168.10.2 mssfix 1400 passtos<\/code><\/pre>\n<p>  \u0433\u0434\u0435:<\/p>\n<p>  capture eth0 \u2013 \u0432\u044b\u0431\u043e\u0440 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, remote 192.168.10.2 \u2013 IP \u0430\u0434\u0440\u0435\u0441 IPsec \u043f\u0438\u0440\u0430 (Gi0\/1.100 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0448\u043b\u044e\u0437\u0430 GW2).<\/p>\n<p>  \u0414\u043b\u044f GW2:<\/p>\n<pre><code class=\"plaintext\">vif tap0 bridge br0 capture eth0 remote 192.168.10.1 mssfix 1400 passtos <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b IKE\/IPsec. \u0414\u043b\u044f GW1:<br \/>  \u0428\u043b\u044e\u0437\u044b \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 hostname, \u0437\u0430\u0434\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 (\u041f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b, \u043f\u043e\u043c\u0435\u043d\u044f\u044e \u043f\u043e\u0442\u043e\u043c):<\/p>\n<pre><code class=\"plaintext\">GW1(config)# crypto isakmp identity hostname ip host GW2 192.168.10.2 crypto isakmp key KEY hostname GW2<\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b dead peer detection (DPD):<\/p>\n<pre><code class=\"plaintext\">GW1(config)# crypto isakmp keepalive 10 2 crypto isakmp keepalive retry-count 5<\/code><\/pre>\n<p>  \u0417\u0430\u0434\u0430\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b IPsec Phase I:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# crypto isakmp policy 1   encr gost   hash gost3411-256-tc26   auth pre-share   group vko2<\/code><\/pre>\n<p>  \u0417\u0430\u0434\u0430\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b IPsec Phase II:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# crypto ipsec transform-set TSET esp-gost28147-4m-imit    mode tunnel<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0447\u0435\u043d\u043d\u044b\u0435 PROMISC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c L2 \u0444\u0440\u0435\u0439\u043c\u044b \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 UDP, \u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043b\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# ip access-list extended LIST    permit udp host 192.168.10.1 host 192.168.10.2<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u043a\u0430\u0440\u0442\u0443 \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u044e \u0435\u0435 \u043a Gi0\/1.100:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# crypto map CMAP 1 ipsec-isakmp   match address LIST   set transform-set TSET   set peer 192.168.10.2 interface gi0\/1.100   crypto map CMAP<\/code><\/pre>\n<p>  \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0447\u0435\u0440\u0435\u0437 IP \u0430\u0434\u0440\u0435\u0441 IPsec \u043f\u0438\u0440\u0430:<\/p>\n<pre><code class=\"plaintext\">GW1(config)# ip route 0.0.0.0 0.0.0.0 192.168.10.2 \t <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0448\u043b\u044e\u0437\u0430 GW2:<\/p>\n<pre><code class=\"plaintext\">GW2(config)# crypto isakmp identity hostname ip host GW1 192.168.10.1 crypto isakmp key KEY hostname GW1 crypto isakmp keepalive 10 2 crypto isakmp keepalive retry-count 5 crypto isakmp policy 1   encr gost   hash gost3411-256-tc26   auth pre-share   group vko2 crypto ipsec transform-set TSET esp-gost28147-4m-imit   mode tunnel ip access-list extended LIST   permit udp host 192.168.10.2 host 192.168.10.1 crypto map CMAP 1 ipsec-isakmp   match address LIST   set transform-set TSET   set peer 192.168.10.1 interface gi0\/1.100   crypto map CMAP ip route 0.0.0.0 0.0.0.0 192.168.10.1<\/code><\/pre>\n<p>  <\/p>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c?<\/h3>\n<p>  \u0421 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 R1 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e ping \u0434\u043e R2:<\/p>\n<pre><code class=\"plaintext\">R1#ping 10.10.205.2  Type escape sequence to abort.   Sending 5, 100-byte ICMP Echos to 10.10.205.2, timeout is 2 seconds:  !!!!!  Success rate is 100 percent (5\/5), round-trip min\/avg\/max = 2\/2\/3 ms&lt;\/code&gt;  R2 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 ICMP. \u041d\u0435\u0443\u0436\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c? \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u044e ARP \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 R1 \u0438 R2:  &lt;source&gt;R1#show arp  Protocol  Address          Age (min)  Hardware Addr   Type   Interface  Internet  10.10.205.1             -   aabb.cc00.5020  ARPA   GigabitEthernet0\/2  Internet  10.10.205.2            54   aabb.cc00.6020  ARPA   GigabitEthernet0\/2  R2#show arp  Protocol  Address          Age (min)  Hardware Addr   Type   Interface  Internet  10.10.205.1            52   aabb.cc00.5020  ARPA   GigabitEthernet0\/2  Internet  10.10.205.2             -   aabb.cc00.6020  ARPA   GigabitEthernet0\/2<\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 R1 \u0438 R2 \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 broadcast \u043f\u043e\u0434\u0441\u0435\u0442\u0438. <\/p>\n<p>  \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 SW1 \u0438 SW2 \u0441\u0447\u0438\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u0432\u0443\u043c\u044f \u043b\u0438\u043d\u043a\u0430\u043c\u0438:<\/p>\n<pre><code class=\"plaintext\">sw1#show cdp neighbors Device ID    Local Intrfce   Holdtme     Capability  Platform  Port ID  sw2          Gi0\/0           146             R S I  Linux Uni Gi0\/0  sw2          Gi0\/3           146             R S I  Linux Uni Gi0\/3  R1           Gi0\/2           156              R B   Linux Uni Gi0\/2  sw2#show cdp neighbors Device ID    Local Intrfce   Holdtme     Capability  Platform  Port ID  sw1          Gi0\/0           140             R S I  Linux Uni Gi0\/0  sw1          Gi0\/3           140             R S I  Linux Uni Gi0\/3  R2           Gi0\/2           156              R B   Linux Uni Gi0\/2<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u0443\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a GW2 \u043f\u043e SSH \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 SW1:<\/p>\n<pre><code class=\"plaintext\">sw1#ssh \u2013l root 10.76.76.138 Password: S-Terra Gate 4.2.18201 (amd64) root@GW2~#<\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434: \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438 1 \u0438 2 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 broadcast \u0434\u043e\u043c\u0435\u043d. \u041f\u0440\u043e\u0432\u0435\u0440\u044e, \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u043a\u0430\u043d\u0430\u043b\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<p>  \u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 IPsec \u0442\u0443\u043d\u043d\u0435\u043b\u044f \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 GW1:<\/p>\n<pre><code class=\"plaintext\">root@GW1:~# sa_mgr show  ISAKMP sessions: 0 initiated, 0 responded  ISAKMP connections:  Num Conn-id (Local Addr,Port)-(Remote Addr,Port) State Sent Rcvd  1 2 (192.168.10.1,500)-(192.168.10.2,500) active 31378 31502  IPsec connections:  Num Conn-id (Local Addr,Port)-(Remote Addr,Port) Protocol Action Type Sent Rcvd  1 2 (192.168.10.1,*)-(192.168.10.2,*) 17 ESP tunn 508224 27672<\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043d\u044f\u0442 IPsec \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u043c\u0435\u0436\u0434\u0443 192.168.10.1 \u0438 192.168.10.2.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b, \u043c\u0435\u0436\u0434\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 SW1 \u0438 SW2 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e ESP \u0442\u0440\u0430\u0444\u0438\u043a, \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f STP. \u0412\u043e\u0442 \u0434\u0430\u043c\u043f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 gi0\/3 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 SW1:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/e2\/-e\/iy\/e2-eiykc2pvlf6omenysrwajnc0.png\"><\/p>\n<h3>\u0412 \u0438\u0442\u043e\u0433\u0435<\/h3>\n<p>  \u0412\u044b\u043f\u0438\u043b \u0442\u0440\u0438 \u043a\u0440\u0443\u0436\u043a\u0438 \u043a\u043e\u0444\u0435 \u2013 \u043f\u043e\u0442\u043e\u043c \u043d\u0435 \u0441\u043f\u0430\u043b \u0432\u0441\u044e \u043d\u043e\u0447\u044c, \u043d\u043e \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f. \u041c\u043e\u0436\u0435\u0442 \u0438 \u0441\u0442\u043e\u0438\u043b\u043e, \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 4.3 \u0432\u0435\u043d\u0434\u043e\u0440 \u0434\u043e\u0432\u0435\u043b L2 \u0434\u043e \u0443\u043c\u0430. \u0414\u0443\u043c\u0430\u044e \u0432\u0437\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e 4.3 \u043d\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>  <i>\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440<br \/>  t.me\/anonimous_engineer<\/i><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/512850\/\"> https:\/\/habr.com\/ru\/post\/512850\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/512850\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/of\/yz\/y1\/ofyzy1y2s4edvqpybdgdyod0xqu.png\"><\/p>\n<h3>\u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u042f \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u043d\u044f\u0442\u044c VPN \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0430\u043c\u0438 \u0432 \u0441\u0435\u0442\u0438. \u0412 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0431\u044b\u043b\u0438 \u0448\u043b\u044e\u0437\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0421-\u0422\u0435\u0440\u0440\u0430 \u0428\u043b\u044e\u0437 \u0432\u0435\u0440\u0441\u0438\u0438 4.2. \u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f. \u0412\u0435\u043d\u0434\u043e\u0440 \u0434\u0430\u0436\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u041d\u043e\u2026 \u0432 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0440\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0430 \u043d\u0430 \u043c\u043e\u0438\u0445 \u0448\u043b\u044e\u0437\u0430\u0445 \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430.<\/p>\n<p>  \u0417\u0430\u0432\u0430\u0440\u0438\u0432\u0430\u044e \u043a\u043e\u0444\u0435, \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u0441\u0432\u043e\u0439 CCNA \u0438 \u043f\u0440\u043e\u0431\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u2013 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b \u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430\u0445.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-307639","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/307639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307639"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/307639\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}