{"id":660,"date":"2021-05-05T23:34:38","date_gmt":"2021-05-05T14:34:38","guid":{"rendered":"https:\/\/wp.zassoul.com\/?p=660"},"modified":"2021-05-05T23:34:39","modified_gmt":"2021-05-05T14:34:39","slug":"nic%e3%81%aeteaming%e8%a8%ad%e5%ae%9arhel","status":"publish","type":"post","link":"https:\/\/wp.zassoul.com\/?p=660","title":{"rendered":"NIC\u306eTeaming\u8a2d\u5b9a(RHEL)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u60f3\u5b9a\u69cb\u6210<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u69cb\u6210\u306710Gbps\u306eNIC\u30922\u672c\u675f\u306d\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"93\" src=\"https:\/\/wp.zassoul.com\/wp-content\/uploads\/2021\/05\/image.png\" alt=\"\" class=\"wp-image-661\" srcset=\"https:\/\/wp.zassoul.com\/wp-content\/uploads\/2021\/05\/image.png 432w, https:\/\/wp.zassoul.com\/wp-content\/uploads\/2021\/05\/image-300x65.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/figure>\n\n\n\n<p>\u53c2\u8003URL <a href=\"https:\/\/access.redhat.com\/documentation\/ja-jp\/red_hat_enterprise_linux\/7\/html\/networking_guide\/sec-configure_a_network_team_using-the_command_line#sec-Configure_Network_Teaming_Using_nmcli\" data-type=\"URL\" data-id=\"https:\/\/access.redhat.com\/documentation\/ja-jp\/red_hat_enterprise_linux\/7\/html\/networking_guide\/sec-configure_a_network_team_using-the_command_line#sec-Configure_Network_Teaming_Using_nmcli\" target=\"_blank\" rel=\"noreferrer noopener\">\u00a0nmcli \u3092\u4f7f\u7528\u3057\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c1\u30fc\u30df\u30f3\u30b0\u306e\u8a2d\u5b9a<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30c1\u30fc\u30df\u30f3\u30b0\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210<\/li><li>\u7269\u7406IF\u3092\u30c1\u30fc\u30df\u30f3\u30b0\u306b\u6240\u5c5e<\/li><li>\u30c1\u30fc\u30df\u30f3\u30b0IF\u3092\u6709\u52b9\u5316<\/li><\/ol>\n\n\n\n<p>teaming\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306b\u306f\u3044\u304f\u3064\u304b\u3042\u308b\u304c\uff0c\u3053\u3053\u3067\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6700\u521d\u306b\u51fa\u3066\u304f\u308bnmcli\u3092\u5229\u7528\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3002\u306a\u304a\uff0cteamd\u306f\u6c38\u7d9a\u6027\u304c\u306a\u3044\u305f\u3081nmcli\u3084ifcfg\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3059\u308b\u65b9\u304c\u3088\u3055\u305d\u3046\u3002<\/p>\n\n\n\n<p>\u60f3\u5b9a\u3059\u308b\u8a2d\u5b9a\u306f\uff0c<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>interface\u306f\u300cenp1s0f0\u300d\u300cenp1s0f1\u300d\u306e2\u3064\u3092\u5229\u7528\u3002<\/li><li> LACP\u5229\u7528<\/li><li>\u9001\u4fe1\u8ca0\u8377\u5206\u6563\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u306bmac address(scx\/dst), ip address(src\/dst), tcp port(src\/dst) \u306e3\u3064\u3092\u542b\u3081\u308b\u3002<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Teaming\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u4f5c\u6210<\/h2>\n\n\n\n<p>nmcli\u30b3\u30de\u30f3\u30c9\u3067Teaming\u306e\u8ad6\u7406\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># nmcli connection add type team ifname team0 con-name team0 config '{\"device\": \"team0\", \"runner\": {\"name\": \"lacp\", \"active\": true, \"fast_rate\": true, \"tx_hash\":  &#91;\"eth\", \"ipv4\", \"ipv6\", \"l4\"]}, \"link_watch\": {\"name\": \"ethtool\"}}'\r\n\u63a5\u7d9a 'team0' (380df2de-dcef-4436-aded-9c4ab20e13e6) \u304c\u6b63\u5e38\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\r\n\r<\/code><\/pre>\n\n\n\n<p>team0\u306b\u6240\u5c5e\u3055\u305b\u308b\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u300ccon-name\u300d\u3092\u3064\u3051\u308b\u3068\u5225\u540d\u3067\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u304c\u6307\u5b9a\u3057\u306a\u3044\u3068\u300cteam-slave-enp1s0f0\u300d\u306e\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># nmcli con add type team-slave ifname enp1s0f0 master team0\n# nmcli con add type team-slave ifname enp1s0f1 master team0\r<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">IF\u306e\u6709\u52b9\u5316<\/h2>\n\n\n\n<p>\u7269\u7406IF\uff0cTeamingIF\u306e\u3069\u3061\u3089\u3092\u6709\u52b9\u306b\u3057\u3066\u3082\u3088\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># nmcli con up team-slave-enp1s0f0\r\n\u63a5\u7d9a\u304c\u6b63\u5e38\u306b\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3055\u308c\u307e\u3057\u305f (D-Bus \u30a2\u30af\u30c6\u30a3\u30d6\u30d1\u30b9: \/org\/freedesktop\/NetworkManager\/ActiveConnection\/22)\r\n# nmcli con up team-slave-enp1s0f1\r\n\u63a5\u7d9a\u304c\u6b63\u5e38\u306b\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3055\u308c\u307e\u3057\u305f (D-Bus \u30a2\u30af\u30c6\u30a3\u30d6\u30d1\u30b9: \/org\/freedesktop\/NetworkManager\/ActiveConnection\/25)\r\n\n# nmclie con up team0\n# ip link\r\n18: team0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000\r\n    link\/ether 00:1b:21:6e:82:1d brd ff:ff:ff:ff:ff:ff<\/code><\/pre>\n\n\n\n<p>IP\u30a2\u30c9\u30ec\u30b9\u304c\u8a2d\u5b9a\u3055\u308c\u306a\u3044\u3068UP\u306b\u306a\u3089\u306a\u3044\u304c\uff0c\u5f8c\u3005\u5185\u90e8\u30d6\u30ea\u30c3\u30b8\u306b\u63a5\u7d9a\u3055\u305b\u308b\u4e88\u5b9a\u306a\u306e\u3067\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60f3\u5b9a\u69cb\u6210 \u4ee5\u4e0b\u69cb\u6210\u306710Gbps\u306eNIC\u30922\u672c\u675f\u306d\u308b\u3002 \u53c2\u8003URL \u00a0nmcli \u3092\u4f7f\u7528\u3057\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c1\u30fc\u30df\u30f3\u30b0\u306e\u8a2d\u5b9a \u30c1\u30fc\u30df\u30f3\u30b0\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210 \u7269\u7406IF\u3092\u30c1\u30fc\u30df\u30f3\u30b0\u306b\u6240\u5c5e \u30c1\u30fc\u30df\u30f3\u30b0IF\u3092\u6709\u52b9\u5316 teaming\u2026 <span class=\"read-more\"><a href=\"https:\/\/wp.zassoul.com\/?p=660\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,6,13,8],"tags":[80,79,81],"class_list":["post-660","post","type-post","status-publish","format-standard","hentry","category-10g","category-it","category-linux","category-8","tag-lag","tag-rhel","tag-teaming"],"_links":{"self":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=660"}],"version-history":[{"count":9,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":670,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions\/670"}],"wp:attachment":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}