{"id":3147,"date":"2023-02-11T05:32:09","date_gmt":"2023-02-10T20:32:09","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=3147"},"modified":"2023-07-29T16:12:42","modified_gmt":"2023-07-29T07:12:42","slug":"%ef%bc%98%ef%bc%9a%e3%83%96%e3%83%aa%e3%83%83%e3%82%b8br0%e3%82%92%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=3147","title":{"rendered":"\uff17\uff1a\u30d6\u30ea\u30c3\u30b8(br0)\u3092\u4f5c\u6210"},"content":{"rendered":"\r\n<p>\u53c2\u8003\uff1ahttps:\/\/centossrv.com\/almalinux\/softethervpnserver.shtml \u306e\u25a0VPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089VPN\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u8a2d\u5b9a<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">nmcli device<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u7269\u7406\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540d\u78ba\u8a8d<br \/><span style=\"color: #ff6600;\">DEVICE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STATE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CONNECTION <\/span><br \/><span style=\"color: #ff6600;\">enp37s0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ethernet \u00a0 \u00a0 \u63a5\u7d9a\u6e08\u307f\u00a0\u00a0\u00a0 enp37s0 <\/span><br \/><span style=\"color: #ff6600;\">wlp38s0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 wifi\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u5207\u65ad\u6e08\u307f &#8212; <\/span><br \/><span style=\"color: #ff6600;\">p2p-dev-wlp38s0\u00a0 wifi-p2p\u00a0\u00a0\u00a0\u00a0 \u5207\u65ad\u6e08\u307f &#8212; <\/span><br \/><span style=\"color: #ff6600;\">lo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 loopback\u00a0\u00a0 \u7ba1\u7406\u7121\u3057 &#8212;<\/span> <br \/><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">nmcli c add type bridge ifname br0<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u30d6\u30ea\u30c3\u30b8\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9br0\u4f5c\u6210<br \/><span style=\"color: #ff6600;\">\u63a5\u7d9a &#8216;bridge-br0&#8217; (8d7a1c76-46d6-4792-a303-51e0636e7a9d) \u304c\u6b63\u5e38\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<br \/><\/span><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">nmcli con modify bridge-br0 bridge.stp no<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u30d6\u30ea\u30c3\u30b8\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9br0\u306eSTP\u3092\u7121\u52b9\u5316<\/span> <br \/><span class=\"EXPLAIN-FONT\"><span style=\"color: #ff6600;\"><\/span><\/span><span class=\"EXPLAIN-FONT\"><span style=\"color: #ff6600;\"># <\/span><\/span><span style=\"color: #008000;\">nmcli con modify bridge-br0 ipv4.method manual ipv4.addresses 192.168.4.45\/24 ipv4.gateway 192.168.4.1 ipv4.dns &#8220;192.168.4.1 8.8.8.8&#8221;<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u30d6\u30ea\u30c3\u30b8\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9br0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a<\/span> <span class=\"EXPLAIN-FONT\">\u203b\u4f8b:IP\u30a2\u30c9\u30ec\u30b9\u3092192.168.4.45\u3001\u30cd\u30c3\u30c8\u30de\u30b9\u30af\u309224\u3001\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3092192.168.4.1\u3001DNS\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3092192.168.4.1 \u00a0\u00a0 8.8.8.8\u3068\u3059\u308b<\/span> <br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">nmcli con add type bridge-slave ifname enp37s0 master bridge-br0<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u7269\u7406\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9enp37s0\u3092\u30d6\u30ea\u30c3\u30b8\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9br0\u306b\u63a5\u7d9a<br \/><span style=\"color: #ff6600;\">\u63a5\u7d9a &#8216;bridge-slave-enp37s0&#8217; (60c828c4-88d8-4e22-a739-835a8d830d0d) \u304c\u6b63\u5e38\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/span><br \/><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">nmcli c del enp37s0<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u7269\u7406\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9enp37s0\u524a\u9664<br \/><span style=\"color: #ff6600;\">\u63a5\u7d9a &#8216;enp37s0&#8217; (cba75ec1-c383-33f0-b3fd-0f48e0cce1e6) \u304c\u6b63\u5e38\u306b\u524a\u9664\u3055\u308c\u307e\u3057\u305f<\/span><br \/><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">reboot<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u30b7\u30b9\u30c6\u30e0\u518d\u8d77\u52d5<br \/><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">dnf install -y bridge-utils<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000brctl\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">brctl show<\/span><span class=\"EXPLAIN-FONT\">\u3000\u2190\u3000\u30d6\u30ea\u30c3\u30b8\u63a5\u7d9a\u72b6\u614b\u7167\u4f1a<br \/><span style=\"color: #ff6600;\">bridge name\u00a0\u00a0 bridge id\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STP enabled \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 interfaces<\/span><br \/><span style=\"color: #ff6600;\">br0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8000.309c23a7851f\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 no\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 enp37s0<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">ifconfig<\/span><br \/><\/span><span style=\"color: #ff6600;\">br0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; mtu 1500<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 inet 192.168.4.45 netmask 255.255.255.0 broadcast 192.168.4.255<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ether 30:9c:23:a7:85:1f txqueuelen 1000 (Ethernet)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX packets 4071 bytes 4118294 (3.9 MiB)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX errors 0 dropped 6 overruns 0 frame 0<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX packets 3403 bytes 593116 (579.2 KiB)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">enp37s0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; mtu 1500<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ether 30:9c:23:a7:85:1f txqueuelen 1000 (Ethernet)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX packets 4450 bytes 4201103 (4.0 MiB)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX errors 0 dropped 6 overruns 0 frame 0<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX packets 3588 bytes 602736 (588.6 KiB)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt; mtu 65536<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 inet 127.0.0.1 netmask 255.0.0.0<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 inet6 ::1 prefixlen 128 scopeid 0x10&lt;host&gt;<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 loop txqueuelen 1000 (Local Loopback)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX packets 149 bytes 11677 (11.4 KiB)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX errors 0 dropped 0 overruns 0 frame 0<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX packets 149 bytes 11677 (11.4 KiB)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">wlp38s0: flags=4099&lt;UP,BROADCAST,MULTICAST&gt; mtu 1500<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ether 6a:11:31:fb:08:1e txqueuelen 1000 (Ethernet)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX packets 0 bytes 0 (0.0 B)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX errors 0 dropped 0 overruns 0 frame 0<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX packets 0 bytes 0 (0.0 B)<\/span><br \/><span style=\"color: #ff6600;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br \/><span style=\"color: #333333;\">br0\u306bIP\u304c\u3042\u308a\u3001enp37s0\u306b\u306fIP\u304c\u7121\u3044\u3002<\/span><\/span><span class=\"EXPLAIN-FONT\"><\/span><span class=\"EXPLAIN-FONT\"><\/span><span class=\"EXPLAIN-FONT\"><\/span><\/p>\r\n<p><a href=\"https:\/\/milestone-of-se.nesuke.com\/sv-basic\/linux-basic\/nmcli\/\" target=\"_blank\" rel=\"noopener\">nmcli\u306e\u4f7f\u7528\u65b9\u306f\u3053\u3053\u3092\u53c2\u7167<\/a><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\uff1ahttps:\/\/centossrv.com\/almalinux\/softethervpnserver.shtml \u306e\u25a0VPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089VPN\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u8a2d\u5b9a# nmcli device\u3000\u2190\u3000\u7269\u7406\u30a4\u30f3\u30bf &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=3147\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[27],"tags":[],"class_list":["post-3147","post","type-post","status-publish","format-standard","hentry","category-almalinux"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3147"}],"version-history":[{"count":11,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3147\/revisions"}],"predecessor-version":[{"id":3392,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3147\/revisions\/3392"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}