[Seek Help] deepin关于绑定双网卡怎么弄?
Tofloor
poster avatar
a***1@163.com
deepin
2021-05-18 18:53
Author

家用一台NAS服务器,windows2016server环境。

打算换成deepin或uos。

最先要解决的问题就是多网卡绑定这个事。

服务器是三网口,分别是板载1个网口和一块独立pcie的双网口网卡。

在win下面绑定了板载口和独立网卡的其中一个口做高可用冗余也就是模式1。

但是到了uos下没有相关的文档,借鉴ubuntu等文档操作均未成功。

https://bbs.deepin.org/zh/post/5947

深度论坛里查看之前有人弄过,但隔了好几年了。。。

想问问现在怎么弄??

Reply Favorite View the author
All Replies
lindorx
deepin
2021-05-18 23:45
#1

你是指linux里的多网卡bond吗?

Reply View the author
lindorx
deepin
2021-05-18 23:51
#2

创造名为bond0的网卡,bond模式设为0

nmcli connection add type bond con-name bond0 ifname bond0 mode 0

 

设置bond0地址(这里假设为10.100.2.200,掩码为255.255.255.0)

nmcli connection modify bond0 ipv4.method manual ipv4.addresses 10.100.2.200/24

 

添加需要绑定的网卡enp33s0f0和enp33s0f1

nmcli connection add type bond-slave ifname enp33s0f0 master bond0

nmcli connection add type bond-slave ifname enp33s0f1 master bond0

 

启动

nmcli connection up bond-slave-enp33s0f0

nmcli connection up bond-slave-enp33s0f1

nmcli connection up bond0

 

Reply View the author
a***1@163.com
deepin
2021-05-19 00:08
#3
lindorx

创造名为bond0的网卡,bond模式设为0

nmcli connection add type bond con-name bond0 ifname bond0 mode 0

 

设置bond0地址(这里假设为10.100.2.200,掩码为255.255.255.0)

nmcli connection modify bond0 ipv4.method manual ipv4.addresses 10.100.2.200/24

 

添加需要绑定的网卡enp33s0f0和enp33s0f1

nmcli connection add type bond-slave ifname enp33s0f0 master bond0

nmcli connection add type bond-slave ifname enp33s0f1 master bond0

 

启动

nmcli connection up bond-slave-enp33s0f0

nmcli connection up bond-slave-enp33s0f1

nmcli connection up bond0

 

还是论坛给力,应该是你这个办法。

先谢了。后天测测看

Reply View the author