USB LAN変換アダプタがubuntu22.04で認識しない時の対応
Keyword:USB LAN ehternet アダプタ ubuntu etc netplan
(1)>ip addrで、
8: enx207bd2222d29: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 20:7b:d2:22:2d:29 brd ff:ff:ff:ff:ff:ff
みたいな奴をみつける
(2)/etc/netplan/99_config.yamlで、以下のよう書き替える
network:
version: 2
renderer: networkd
ethernets:
eth0:
# dhcp4: false
addresses:
- 192.168.101.30/24
routes:
- {to: default, via: 192.168.101.1}
# addresses:
# - 192.168.0.15/24
enx207bd2222d29:
dhcp4: false
addresses:
- 192.168.0.15/24
renderer: networkd
ethernets:
eth0:
# dhcp4: false
addresses:
- 192.168.101.30/24
routes:
- {to: default, via: 192.168.101.1}
# addresses:
# - 192.168.0.15/24
enx207bd2222d29:
dhcp4: false
addresses:
- 192.168.0.15/24
(3) sudo netplan apply でネットワーク再起動