Skip to content

语法格式 ​

shell
pct set <ctid> --net<网卡序号> name=net<网卡序号>,bridge=<桥接接口>,ip=<ip表达式>,gw=<网关>

案例 ​

静态配置 ​

执行前 ​

image-1724342098339

开始执行 ​

shell
root@pve:~# pct set 109 --net3 name=eth3,bridge=vmbr0,ip=172.22.11.195/24,gw=172.22.11.254
root@pve:~#

效果 ​

image-1724342159200

DHCP ​

shell
root@pve:~# pct set 109 --net5 name=dhcp5,bridge=vmbr0,ip=dhcp
root@pve:~#

image-1724342255896

Last updated:

♪ 准备播放...