其中 4网段IP可用来上网,3 网段用来内网
界面显示:
配置文件:
01-network-manager-all.yaml
放在
/etc/netplan/
# Let NetworkManager manage all devices on this systemnetwork:version: 2renderer: networkdethernets:eth0:dhcp4: falsedhcp6: falseaccept-ra: nolink-local: [ ]addresses:- 192.168.4.120/24routes:- to: 192.168.4.0/24via: 192.168.4.1nameservers:addresses: [114.114.114.114]eth1:dhcp4: falsedhcp6: falseaccept-ra: nolink-local: [ ]addresses:- 192.168.4.220/24- 192.168.3.120/24routes:- to: 192.168.4.0/24via: 192.168.4.1- to: 192.168.3.0/24via: 192.168.3.1nameservers:addresses: [114.114.114.114]