typora-copy-images-to: …\Desktop\模板\img
linux和windows网线直连
linux
pi@raspberrypi:~$ vim /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
wifis:
renderer: networkd
wlan0:
access-points:
Timecho:
password: woyaoshangwang
addresses:
- 192.168.100.200/24
dhcp4: false
gateway4: 192.168.100.254
optional: true
ethernets:
eth0:
addresses:
- 192.168.137.103/24
# 和windows配置同一网段就好
pi@raspberrypi:~$ sudo netplan apply
windows
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-pZZUEcWm-1657165680481)(C:\Users\0\Desktop\模板\img\1652951409560.png)]
然后就能相互ping通
EcWm-1657165680481)]