linux虚拟网桥创建
- ethernet
- https://www.youtube.com/watch?v=rSxK_08LSZw&ab_channel=SethJennings
- https://wiki.archlinux.org/title/Network_bridge
- https://apiraino.github.io/qemu-bridge-networking/
- https://wiki.artixlinux.org/runit/NetworkConfiguration
arch
创建网桥br1
1 | ip link add name br1 type bridge |
启动网桥br1
1 | ip link set dev br1 up |
接入网桥的网卡
1 | ip link set dev <网卡名> master <网桥名> |
移除
1 | ip link set dev <网卡名> nomaster <网桥名> |
删除网桥
1 | ip link delete dev <网桥名> |
qemu中使用网桥
1 | -net nic -net bridge, br=<网桥名> |
samba usage
testparm 测试
smbstatus
/etc/samba/smb.conf
routing
(host)virtual interface — bridge —- (guest) interface