rootでログインして下記をカーネルを再構築します cd /usr/sys/conf config GENERIC Don't forget to run "make depend" cd ../GENERIC make depend make cp vmunix / 0168ナイコンさん垢版2019/10/06(日) 07:12:05.29>>162-167 Raspberry Pi Zeroでやってみたができた OSはRaspbian buster
/etc/network/interfaces下のように変更する sudo vi /etc/network/interfaces
/etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet manual up ip link set eth0 promisc on up up ip address flush eth0 down ip link set eth0 promisc off down auto br0 iface br0 inet dhcp pre-up ip tuntap add dev tap0 mode tap user pi pre-up ip link set tap0 up bridge_ports all tap0 eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 post-down ip link set tap0 down post-down ip tuntap del dev tap0 mode tap
それで再起動するとtap0とbri0が追加される あとは同じやり方でやって出来た 0170ナイコンさん垢版2019/10/09(水) 06:53:15.89 上のはコピペミス もう1度コピペします Raspberry Pi zeroにUSBLANを付けてやったら上の方法ではうまくいかなかった tap0-up.shは使わずに別の方法でbr0を作成する /etc/network/interfaces下のように変更する sudo vi /etc/network/interfaces
/etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet manual up ip link set eth0 promisc on up up ip address flush eth0 down ip link set eth0 promisc off down auto br0 iface br0 inet dhcp pre-up ip tuntap add dev tap0 mode tap user pi pre-up ip link set tap0 up bridge_ports all tap0 eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 post-down ip link set tap0 down post-down ip tuntap del dev tap0 mode tap
それで再起動するとtap0とbri0が追加される 0171ナイコンさん垢版2019/10/09(水) 06:58:26.40 行先頭のスペースが省略されてしまうので行先頭のスペースを全角にしてもう一度コピペ Raspberry Pi zeroにUSBLANを付けてやったら上の方法ではうまくいかなかった tap0-up.shは使わずに別の方法でbr0を作成する /etc/network/interfaces下のように変更する sudo vi /etc/network/interfaces
/etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet manual up ip link set eth0 promisc on up up ip address flush eth0 down ip link set eth0 promisc off down auto br0 iface br0 inet dhcp pre-up ip tuntap add dev tap0 mode tap user pi pre-up ip link set tap0 up bridge_ports all tap0 eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 post-down ip link set tap0 down post-down ip tuntap del dev tap0 mode tap
それで再起動するとtap0とbri0が追加される あとは同じやり方でやって出来た 0172ナイコンさん垢版2019/10/09(水) 07:02:37.44 IPを固定にしたければこんな感じで (コピペのために行先頭の空白は全角にしてあります、コピペするときは行先頭の空白を半角にしてください)) # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet manual up ip link set eth0 promisc on up up ip address flush eth0 down ip link set eth0 promisc off down iface br0 inet static address 192.168.0.10 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 bridge-ports all tap0 eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 pre-up ip tuntap add dev tap0 mode tap user pi pre-up ip link set tap0 up post-down ip link set tap0 down post-down ip tuntap del dev tap0 mode tap 0173ナイコンさん垢版2019/10/09(水) 07:05:39.09 抜けがあったのでもう一度コピペ
IPを固定にしたければこんな感じで (コピペのために行先頭の空白は全角にしてあります、コピペするときは行先頭の空白を半角にしてください)) # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback auto eth0 iface eth0 inet manual up ip link set eth0 promisc on up up ip address flush eth0 down ip link set eth0 promisc off down auto br0 iface br0 inet static address 192.168.0.10 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.1 bridge-ports all tap0 eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0 pre-up ip tuntap add dev tap0 mode tap user pi pre-up ip link set tap0 up post-down ip link set tap0 down post-down ip tuntap del dev tap0 mode tap 0174ナイコンさん垢版2019/10/09(水) 07:10:39.17 コピペミス iface eth0 inet manual のところは先頭の空白をなくして iface eth0 inet manual です 0175ナイコンさん垢版2020/08/05(水) 21:33:28.57 ワロタ 0176ナイコンさん垢版2022/04/25(月) 22:05:39.72 ワロタ 0177ナイコンさん垢版2022/10/02(日) 11:57:40.68 ワロタ 0178ナイコンさん垢版2022/10/02(日) 18:15:50.70 いまはnetplan を使うんだよ 0179ナイコンさん垢版2023/03/31(金) 20:13:12.10 あり 0180人 工 知 能 戦 争 垢版2023/05/06(土) 08:31:35.71 リーマンショックの頃は、まだVAX使ってる会社もあったよね