linux和windows网线直连(Ubuntu)
windows[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-pZZUEcWm-1657165680481)(C:\Users\0\Desktop\模板\img\1652951409560.png)]EcWm-1657165680481)]
·
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)]
然后就能相互ping通
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)