嵌入式爱好者

linux-3568-同网卡配置多网段

2023-6-27 14:23| 发布者: PaperLove| 查看: 208| 评论: 0

类目: RK3568系列产品  >  Linux     文档编号: 1026

修改/etc/network/inte**ces文件如下图:比如配置net3-6网口为多网段,可以添加如下内容:

auto net3-6

iface net3-6 inet static

address 172.16.0.169

netmask 255.255.255.0

gateway 172.16.0.218

auto net3-6:1

iface net3-6:1 inet static

address 172.16.1.169

netmask 255.255.255.0

gateway 172.16.1.1

这样net3-6网口就有两个网段了,分别是172.16.0.***和172.16.1.***网段。


已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-9-19 09:08

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部