{"id":40,"date":"2023-09-18T17:10:41","date_gmt":"2023-09-18T08:10:41","guid":{"rendered":"http:\/\/blog.takeh.org\/?p=40"},"modified":"2023-09-26T05:32:56","modified_gmt":"2023-09-25T20:32:56","slug":"openwrt-as-a-lxc-on-proxmox-arm64","status":"publish","type":"post","link":"https:\/\/blog.takeh.org\/?p=40","title":{"rendered":"OpenWrt as a LXC on Proxmox-Arm64"},"content":{"rendered":"\n<p><a href=\"http:\/\/blog.takeh.org\/?p=33\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306e\u7d9a\u304d\u3002\u3060\u3044\u3076\u6e96\u5099\u304c\u9577\u304b\u3063\u305f\u3051\u3069\u3001\u3088\u3046\u3084\u304f\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">LXC\u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b<\/h3>\n\n\n\n<p>\u4eca\u56de\u3001\u5b9f\u306f\u4e00\u756a\u96e3\u3057\u304b\u3063\u305f\u3068\u3044\u3046\u304b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u304cOpenWrt\u3092\u52d5\u304b\u3059\u3068\u3053\u308d\u3002\u7d50\u679c\u3068\u3057\u3066\u306f<a href=\"https:\/\/openwrt.org\/docs\/guide-user\/start\">\u516c\u5f0f\u306e\u30e6\u30fc\u30b6\u30ac\u30a4\u30c9<\/a>\u306b\u5f93\u3048\u3070\u3088\u304b\u3063\u305f\u306e\u3060\u3051\u3069\u3001LXC\u3068\u306f\u4f55\u304b\u306e\u7406\u89e3\u304c\u6d45\u304f\u3066\u5909\u306a\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u5f98\u5f8a\u3057\u305f\u308a\u3057\u3066\u3060\u3044\u3076\u8ff7\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u6b63\u89e3\u306f\u3001\u5358\u7d14\u660e\u5feb\u3002\u516c\u5f0f\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3057\u3066\u305d\u308c\u3092\u52d5\u4f5c\u3055\u305b\u308b\u3060\u3051\u3002<a href=\"https:\/\/openwrt.org\/docs\/guide-user\/start\">\u516c\u5f0f\u306e\u30e6\u30fc\u30b6\u30ac\u30a4\u30c9<\/a>\u306f\u5de8\u5927\u306a\u6587\u66f8\u306a\u306e\u3067\u3069\u3053\u304b\u3089\u8aad\u3081\u3070\u826f\u3044\u306e\u304b\u8ff7\u3046\u3051\u308c\u3069\u3082\u3001\u53f3\u5074\u306e\u307b\u3046\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u76ee\u6b21\u306e\u4e2d\u306b<a href=\"https:\/\/openwrt.org\/docs\/guide-user\/start#running_openwrt_in_a_virtual_machine_or_container\">Running OpenWrt in a virtual machine or conatiner<\/a>\u3068\u547c\u3070\u308c\u308b\u7ae0\u304c\u3042\u308a\u3001\u305d\u3053\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002\u305d\u3053\u306b\u98db\u3076\u3068\u3055\u3089\u306b\u5c0f\u76ee\u6b21\u304c\u3042\u308a\u3001\u305d\u306e\u4e2d\u306b<a href=\"https:\/\/openwrt.org\/docs\/guide-user\/virtualization\/lxc\">OpenWrt in LXC containers<\/a>\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u64cd\u4f5c\u624b\u9806\u306f\u3001\u901a\u5e38\u306eLXC\u74b0\u5883\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u306e\u3067\u3001proxmox\u306e\u5834\u5408\u3001rootfs\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u72ec\u81ea\u306e\u8a2d\u5b9a\/\u624b\u6bb5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306e\u96e3\u95a2\u306f\u3001LXC\u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b\u3002\u30de\u30cb\u30e5\u30a2\u30eb\u3060\u3068\u3001<a href=\"https:\/\/images.linuxcontainers.org\/\">\u30a4\u30e1\u30fc\u30b8\u30b5\u30fc\u30d0<\/a>\u304b\u3089lxc_create -d\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u3001proxmox\u3060\u3068\u9806\u5e8f\u304c\u7570\u306a\u308a\u3001rootfs\u3092\u5165\u624b\u3057\u3066\u304b\u3089\u306b\u306a\u308b\u3002<a href=\"https:\/\/images.linuxcontainers.org\/\">\u30a4\u30e1\u30fc\u30b8\u30b5\u30fc\u30d0<\/a>\u306e\u30da\u30fc\u30b8\u306b\u306f\u3001Jenkins\u306e\u30d3\u30eb\u30c7\u30a3\u30f3\u30b0\u30b5\u30fc\u30d0\u3078\u306e<a href=\"https:\/\/jenkins.linuxcontainers.org\/\">\u30ea\u30f3\u30af<\/a>\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u3053\u304b\u3089LXC\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/jenkins.linuxcontainers.org\/\">Jenkins\u306eLXC\u30d3\u30eb\u30c9\u30b5\u30fc\u30d0<\/a>\u306b\u884c\u304d\u3001<a href=\"https:\/\/jenkins.linuxcontainers.org\/job\/image-openwrt\/\">openwrt\u306e\u30da\u30fc\u30b8<\/a>\u306b\u884c\u304f\u3068daily build\u306e\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u3053\u3067\u300122.03\/arm64\u3092\u9078\u629e\u3057\u3066\u305d\u3053\u304b\u3089\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"454\" height=\"240\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-4.png\" alt=\"\" class=\"wp-image-41\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-4.png 454w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-4-300x159.png 300w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><figcaption class=\"wp-element-caption\">\u8868\u793a\u4f8b(\u30d3\u30eb\u30c9\u756a\u53f7\u306f\u3044\u3064\u30d3\u30eb\u30c9\u3057\u305f\u304b\u306b\u3088\u3063\u3066\u7570\u306a\u308b)<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u3053\u3067\u3001proxmox\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u306e\u306frootfs.tar.xz\u306b\u306a\u308b\u3002\u3053\u308c\u3092GUI\u4e0a\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u9069\u5f53\u306a\u540d\u524d\u306b\u5909\u66f4\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"466\" height=\"280\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-5.png\" alt=\"\" class=\"wp-image-42\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-5.png 466w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-5-300x180.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><figcaption class=\"wp-element-caption\">\u64cd\u4f5c\u4f8b (local\u30b9\u30c8\u30ec\u30fc\u30b8\u5185\u306eCT\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3001URL\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067URL\u3092\u8cbc\u308a\u4ed8\u3051\u3001\u4e00\u65e6\u3001\u30af\u30a8\u30eaURL\u3092\u6559\u3048\u3066\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u308f\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u306b\u5909\u66f4\u3057\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9)<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u308c\u3067\u6b63\u3057\u3044\u30a4\u30e1\u30fc\u30b8\u3092\u5165\u624b\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u3068\u8a2d\u5b9a<\/h3>\n\n\n\n<p>\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3057\u3066\u3044\u304f\u3002\u3053\u308c\u304c\u7b2c\u4e8c\u306e\u96e3\u95a2\u3001\u3068\u3044\u3046\u306e\u3082\u3053\u3053\u3067\u306funmanaged\u3068\u547c\u3070\u308c\u308bos type\u3092\u5229\u7528\u3057\u3066\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3060\u304c\u3001\u4f5c\u6210\u306bGUI\u306f\u5229\u7528\u3067\u304d\u305a\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3082\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308b\u304b\u3089\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ sudo pct create 105 \/var\/lib\/vz\/template\/cache\/openwrt-22.03-lxc.tar.xz --arch aarch64 --hostname openwrt --rootfs local-lvm:16 --memory 2048 --cores 4 --ostype unmanaged --unprivileged 1<\/pre>\n\n\n\n<p>\u3053\u3053\u3067\u3001create\u306e\u5f8c\u306e105\u306fID\u306a\u306e\u3067\u3001\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3059\u308b\u3002\u305d\u306e\u6b21\u306e\u5f15\u6570\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u307b\u304b\u306e\u6307\u5b9a\u65b9\u6cd5\u3082\u3042\u308b\u3051\u308c\u3069\u3082\u3001\u4eca\u56de\u306f\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3067\u305d\u306e\u307e\u307e\u6307\u5b9a\u3057\u3066\u3044\u308b\u3002\u6b21\u306e\u5f15\u6570\u306f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u6307\u5b9a\u3002Orange Pi\u306e\u5834\u5408\u306faarch64\u3001\u6b21\u306f\u30db\u30b9\u30c8\u540d\u3002\u3053\u308c\u3082\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3002rootfs\u306elocal-lvm:16\u306fGB\u5358\u4f4d\u3067\u306e\u6307\u5b9a\u3002\u6b63\u76f4\u3001OpenWrt\u306f\u30d7\u30a2\u306a\u30eb\u30fc\u30bf\u6a5f\u5668\u306b\u5165\u308c\u308b\u60f3\u5b9a\u306a\u306e\u3067\u30011GiB\u3067\u3082\u5341\u4e8c\u5206\u3059\u304e\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u30e1\u30e2\u30ea\u3001\u30b3\u30a2\u306e\u6307\u5b9a\u3002\u6b21\u306eostype\u304c\u91cd\u8981\u3067\u3053\u3053\u3092unmanaged\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u6700\u5f8c\u306f\u975e\u7279\u6a29\u30b3\u30f3\u30c6\u30ca\u306e\u6307\u5b9a\u3002<\/p>\n\n\n\n<p>\u3046\u3061\u306e\u74b0\u5883\u306f\u4e0a\u6d411Gbps\u3001\u4e0b\u6d412.5Gbps\u3001\u7279\u306b\u5927\u3057\u3066\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3082\u6d41\u3055\u306a\u3044\u306e\u3067\u3001\u3081\u3061\u3083\u304f\u3061\u3083\u30ea\u30bd\u30fc\u30b9\u306f\u4f59\u3063\u3066\u3044\u308b\u30021\u65e5\u52d5\u304b\u3057\u305f\u611f\u3058\u3060\u3068\u30e1\u30e2\u30ea\u306f\u6700\u5927\u30678MiB\u7a0b\u5ea6\u3001CPU\u4f7f\u7528\u7387\u306f0.9%(4core)\u304f\u3089\u3044\u3067\u3042\u3063\u305f\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u304b\u3089\u3044\u308d\u3044\u308d\u306a\u8a2d\u5b9a\u3092\u5165\u308c\u308b\u3068\u591a\u5c11\u306f\u4f7f\u3046\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-6-1024x485.png\" alt=\"\" class=\"wp-image-43\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-6-1024x485.png 1024w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-6-300x142.png 300w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-6-768x363.png 768w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-6-1536x727.png 1536w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-6.png 1587w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5f8c\u3067\u3082\u3088\u3044\u306e\u3060\u304c\u3001\u8d77\u52d5\u3059\u308b\u524d\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304f\u3002<br>WAN\u5074\u3068LAN\u5074\u3067\u4f7f\u3046IF\u3092\u6c7a\u3081\u3001\u30d6\u30ea\u30c3\u30b8\u3092\u5229\u7528\u3057\u3066\u304a\u304f\u3002Orange Pi 5 Plus\u3067Debian\u3092\u52d5\u304b\u3059\u3068\u79c1\u306e\u74b0\u5883\u3067\u306f\u3001enP3p49s0\u3068enP4p65s0\u304c\u3001\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u305f\u3002\u3053\u3053\u3067\u3001\u3069\u3061\u3089\u3092WAN\u3001\u3069\u3061\u3089\u3092LAN\u306b\u5272\u308a\u5f53\u3066\u308b\u306e\u304b\u3092\u6c7a\u5b9a\u3057\u3001GUI\u4e0a\u3067\u3001Linux\u30d6\u30ea\u30c3\u30b8\u3092\u305d\u308c\u305e\u308c\u306b\u5272\u308a\u5f53\u3066\u3066\u4f5c\u6210\u3057\u3066\u304a\u304f\u3002vmbr0(LAN)\u3001vmbr1(WAN)\u3067\u4f5c\u6210\u3057\u305f\u3002vmbr0\u306b\u306f\u3001LAN\u5074\u3067\u30db\u30b9\u30c8\u306b\u5272\u308a\u632f\u3063\u305f\u30a2\u30c9\u30ec\u30b9\u8a2d\u5b9a\u3092\u5165\u308c\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"236\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-7-1024x236.png\" alt=\"\" class=\"wp-image-44\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-7-1024x236.png 1024w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-7-300x69.png 300w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-7-768x177.png 768w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-7-1536x354.png 1536w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-7.png 1605w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6b21\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u5074\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u3067\u3001eth0\u306bWAN\u3001eth1\u306bLAN\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002WAN\u5074\u306f\u79c1\u306e\u74b0\u5883\u3060\u3068dhcp\u3001LAN\u5074\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3068\u306a\u308b\u30eb\u30fc\u30bf\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308b\u306e\u3060\u304c\u3001\u4eca\u306f\u5225\u306eIP\u3092\u3068\u308a\u3042\u3048\u305a\u632f\u3063\u3066\u304a\u3044\u305f\u3002(\u307e\u3060\u3001\u5143\u306e\u30eb\u30fc\u30bf\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u305f\u3081)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"172\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-8-1024x172.png\" alt=\"\" class=\"wp-image-45\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-8-1024x172.png 1024w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-8-300x50.png 300w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-8-768x129.png 768w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-8.png 1181w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">OpenWrt\u306e\u8d77\u52d5\u3068\u8a2d\u5b9a<\/h3>\n\n\n\n<p>\u30a4\u30e1\u30fc\u30b8\u3092\u6b63\u3057\u304f\u9078\u629e\u3067\u304d\u3066\u3044\u308b\u3068\u8d77\u52d5\u306f\u305f\u3076\u3093\u554f\u984c\u306a\u3044\u3002\u305f\u3060\u3057\u3001\u6b21\u304c\u6700\u5927\u306e\u96e3\u95a2\u3002\u77e5\u3089\u306a\u3044\u3068\u307e\u305a\u30af\u30ea\u30a2\u3067\u304d\u306a\u3044\u3002\u30b3\u30f3\u30c6\u30ca\u8a2d\u5b9a\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u3092\u3057\u3066\u3082\u6b8b\u5ff5\u306a\u304c\u3089unmanaged\u306a\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u4e2d\u306b\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\u3002\u307e\u305f\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u306f\u307e\u3060\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u7ba1\u7406Web\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002\u3055\u3066\u3001\u3069\u3046\u3059\u308b\u304b\u3002<\/p>\n\n\n\n<p>\u6b63\u89e3\u306f\u3001\u30db\u30b9\u30c8\u304b\u3089\u30b3\u30f3\u30c6\u30ca\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ sudo pct enter 105\n\n\nBusyBox v1.35.0 (2023-04-27 20:28:15 UTC) built-in shell (ash)\n\n\/ #<\/pre>\n\n\n\n<p>105\u306fID\u306a\u306e\u3067\u3053\u3053\u306f\u9069\u5b9c\u5909\u66f4\u3059\u308b\u3002\u3053\u308c\u3067\u52d5\u4f5c\u4e2d\u306eOpenWrt\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u3063\u305f\u3002\u3053\u3053\u304b\u3089\u306f\u3001OpenWrt\u306e\u77e5\u8b58\u306e\u554f\u984c\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/ # cat \/etc\/config\/network\n\nconfig interface 'loopback'\n        option proto 'static'\n        option ipaddr '127.0.0.1'\n        option netmask '255.0.0.0'\n        option device 'lo'\n\nconfig interface 'wan'\n        option proto 'dhcp'\n        option device 'eth0'\n\nconfig interface 'wan6'\n        option proto 'dhcpv6'\n        option device 'eth0'\n<\/pre>\n\n\n\n<p>\u521d\u671f\u8a2d\u5b9a\u3067\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3053\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">config interface 'lan'\n        option proto 'static'\n        option netmask '255.255.255.0'\n        option device 'eth1'\n        option ipaddr 'xxx.xxx.xxx.xxx'<\/pre>\n\n\n\n<p>\u3053\u3053\u3067ipaddr\u306b\u30b3\u30f3\u30c6\u30ca\u8a2d\u5b9a\u3067\u8a8d\u8b58\u3055\u305b\u305f\u30a2\u30c9\u30ec\u30b9\/netmask\u3092\u767b\u9332\u3057\u3066\u304a\u304f\u3002\u3053\u308c\u3067\u30db\u30b9\u30c8\u304b\u3089\u898b\u305f\u30b3\u30f3\u30c6\u30ca\u306eIP\u3068\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u8a2d\u5b9a\u304c\u4e00\u81f4\u3057\u3001\u7121\u4e8b\u7ba1\u7406\u753b\u9762\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002\u3042\u3068\u306f\u3001passwd\u30b3\u30de\u30f3\u30c9\u3067root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u3001http:\/\/&lt;ipaddr&gt;\/ \u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u7121\u4e8b\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3057\u3001OpenWrt\u306eGUI\u64cd\u4f5c\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"367\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-9.png\" alt=\"\" class=\"wp-image-46\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-9.png 939w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-9-300x117.png 300w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-9-768x300.png 768w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\/etc\/config\/network\u306e\u8a2d\u5b9a\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u521d\u671f\u8a2d\u5b9a\u304c\u3055\u308c\u308b\u3002\u753b\u9762\u30ad\u30e3\u30d7\u30c1\u30e3\u306f\u53d6\u3063\u3066\u3044\u306a\u3044\u306e\u3060\u3051\u3069\u3001Network\u2192Interfaces\u306e\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u300c\u521d\u671f\u5316\u3059\u308b\u300d\u307f\u305f\u3044\u306a\u8868\u793a\u304c\u51fa\u3066\u3001\u7121\u4e8bOpenWrt\u306e\u8a2d\u5b9a\u753b\u9762\u3068\u306a\u308b\u3002System\u3067\u3001\u30db\u30b9\u30c8\u540d\u3001\u8aac\u660e\u3001\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3001\u6642\u523b\u540c\u671f\u306a\u3069\u3092\u521d\u671f\u8a2d\u5b9a\u3057\u305f\u5f8c\u3001NVR-500\u3092\u4e00\u65e6\u505c\u6b62\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u30a2\u30c9\u30ec\u30b9\u306b\u8a2d\u5b9a\u3057\u305f\u4e0a\u3067\u5165\u308c\u66ff\u3048\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DHCP\u306e\u505c\u6b62<\/h3>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fDHCP\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3082\u3068\u3082\u3068\u79fb\u884c\u306e\u305f\u3081\u306b\u3001\u30eb\u30fc\u30bf\u304b\u3089WiFi\u30a2\u30af\u30bb\u30b9\u30dd\u30a4\u30f3\u30c8\u306bDHCP\u30b5\u30fc\u30d0\u3092\u79fb\u7ba1\u3057\u3066\u3044\u305f\u306e\u3067\u3001DHCP\u306f\u4e0d\u8981\u3001\u3068\u3044\u3046\u304b\u3001\u81ea\u5b85\u74b0\u5883\u3060\u3068\u6709\u7dda\u6a5f\u5668\u306f\u3001\u307b\u3068\u3093\u3069\u56fa\u5b9aIP\u3092\u5272\u308a\u632f\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u6a5f\u5668\u30e1\u30f3\u30c6\u306e\u305f\u3081\u306b\u3082\u3053\u306e\u65b9\u304c\u671b\u307e\u3057\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067DHCP\u3092\u505c\u6b62\u3055\u305b\u305f\u304c\u3001OpenWrt\u3067\u306f\u3053\u306e\u753b\u9762\u306e\u5834\u6240\u304c\u308f\u304b\u308a\u3065\u3089\u3044\u3002\u6b63\u89e3\u306fNetwork\u2192Interfaces\u304b\u3089\u3001lan\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u9078\u629e\u3057\u3001Edit\u3092\u62bc\u4e0b\u3057\u3066DHCP Server\u306e\u30bf\u30d6\u3092\u9078\u3076\u3002DHCP&amp;DNS\u304b\u3089\u3067\u306f\u305f\u3069\u308c\u306a\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u5fd8\u308c\u305d\u3046\u306a\u306e\u3067\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"614\" src=\"http:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-10.png\" alt=\"\" class=\"wp-image-47\" srcset=\"https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-10.png 1009w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-10-300x183.png 300w, https:\/\/blog.takeh.org\/wp-content\/uploads\/2023\/09\/image-10-768x467.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/figure>\n\n\n\n<p>\u3053\u308c\u3067\u4e00\u65e6\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3002NVR-500\u3067\u8a2d\u5b9a\u3057\u3066\u305f\u5916\u90e8\u63a5\u7d9a\u5468\u308a\u306e\u8a2d\u5b9a\u306f\u4e00\u65e6\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u3051\u3069\u3001\u307e\u3042\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u95b2\u89a7\u3060\u3068\u3053\u308c\u3067\u4e00\u65e6\u52d5\u304f\u306e\u3067\u3042\u3068\u306f\u5225\u306e\u65e5\u306b\u3084\u308b\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u8a18\u4e8b\u306e\u7d9a\u304d\u3002\u3060\u3044\u3076\u6e96\u5099\u304c\u9577\u304b\u3063\u305f\u3051\u3069\u3001\u3088\u3046\u3084\u304f\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u3067\u304d\u308b\u3002 LXC\u30a4\u30e1\u30fc\u30b8\u306e\u5165\u624b \u4eca\u56de\u3001\u5b9f\u306f\u4e00\u756a\u96e3\u3057\u304b\u3063\u305f\u3068\u3044\u3046\u304b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u304cOpenWrt\u3092\u52d5\u304b\u3059\u3068\u3053\u308d\u3002\u7d50\u679c\u3068\u3057\u3066\u306f\u516c\u5f0f\u306e\u30e6\u30fc\u30b6\u30ac\u30a4\u30c9\u306b\u5f93\u3048\u3070\u3088\u304b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[12,9,7,8,4],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-homelab","tag-lxc","tag-openwrt","tag-proxmox","tag-proxmox-arm64","tag-sbc"],"_links":{"self":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":4,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.takeh.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}