linux-3568-同网卡配置多网段
修改/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.***网段。 |




