netplan apply报错

root@zdcy-Super-Server:~# netplan apply

** (generate:5726): WARNING **: 11:25:46.530: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in br0 but also in br1

** (process:5724): WARNING **: 11:25:47.506: Problem encountered while validating default route consistency.Please set up multiple routing tables and use `routing-policy` instead.
Error: Conflicting default route declarations for IPv4 (table: main, metric: default), first declared in br0 but also in br1

解决方法:
netplan apply会根据gateway4生成默认路由,保留一个gateway4即可

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐