查看: 8499|回复: 18

杀猪刀的U-NAS Home Edition系列教程 十七

[复制链接]
发表于 2011-10-1 12:11:39 | 显示全部楼层 |阅读模式
本帖最后由 mjyu51 于 2011-10-2 03:00 编辑

十七、U-NAS双网卡融合 [注意:测试发现有问题,请先不要尝试。修复后会报告]
U-NAS支持多个网卡,并且支持多网卡融合技术。比如双网卡融合,可用于加快传输速度或坐位冗余,一块卡死了另一块可以接替工作。以下教程假设你的主板有两个网卡,如果没有,请不要尝试。
1.  登录U-NAS,进行设置。
1.jpg


2.       选了bonding模式后悔需要重新登录在U-NAS,登录后发现网卡变成了“绑定1”,点击“修改配置”
2.jpg
选择你需要的bonding模式,然后点:“提交”:
3.jpg
提交后需要重新登录U-NAS (也可以等待,但时间较长)
至此,双网卡bonding已经完成。enjoy
回复

使用道具 举报

发表于 2011-10-1 16:55:05 | 显示全部楼层
本帖最后由 HKDepartment 于 2011-10-2 00:04 编辑

不行, 選做back up mode後reboot, 就不能進入 UNAS, 有方法還原?
回复 支持 反对

使用道具 举报

发表于 2011-10-2 00:03:40 | 显示全部楼层
是不是要連接了兩個RJ45才可以選BONDING?
因為沒有連接之前都找不到此選項
回复 支持 反对

使用道具 举报

发表于 2011-10-2 00:04:59 | 显示全部楼层
HKDepartment 发表于 2011-10-1 16:55
不行, 選做back up mode後reboot, 就不能進入 UNAS, 有方法還原?

最後再用installer 重置software
回复 支持 反对

使用道具 举报

发表于 2011-10-2 00:06:03 | 显示全部楼层
100MB + 1000MB Lan
也不能用上
回复 支持 反对

使用道具 举报

发表于 2011-10-2 00:38:21 | 显示全部楼层
另外想知道眾多Bonding Mode中既分別同優缺點
謝謝
回复 支持 反对

使用道具 举报

发表于 2011-10-2 01:30:46 | 显示全部楼层
Bonding mode可否只將两張網卡結合一個ip而另一張網卡使用另一ip?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-2 02:48:17 | 显示全部楼层
HKDepartment 发表于 2011-10-2 00:38
另外想知道眾多Bonding Mode中既分別同優缺點
謝謝

The Linux bonding driver aggregating policies
Bonding policies (mode)
Description
balance-rr or 0
Round-robin policy to transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.
active-backup or 1
Active-backup policy. Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. This mode provides fault tolerance.
balance-xor or 2
Transmit based on the selected transmit hash policy. The default policy is a simple [(source MAC address XOR'd with destination MAC address) modulo slave count]. This mode provides load balancing and fault tolerance.
broadcast or 3
Transmits everything on all slave interfaces. This mode provides fault tolerance.
802.3ad or 4
Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification. Most network switches will require some type of configuration to enable 802.3ad mode.
balance-tlb or 5
Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave.
balance-alb or 6
Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support. The receive load balancing is achieved by ARP negotiation.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-2 04:02:30 | 显示全部楼层
本帖最后由 mjyu51 于 2011-10-2 04:03 编辑
HKDepartment 发表于 2011-10-1 16:55
不行, 選做back up mode後reboot, 就不能進入 UNAS, 有方法還原?


网卡bonding后改回普通模式
Bonding后,由于通过网络无法访问,所以需要给U-NAS接上键盘和显示器
登录后,
执行如下命令:
sudo nano /etc/network/interfaces
然后把里面的内容改成:

iface eth0 inet static
    address 192.168.1.110
    netmask 255.255.255.0
    network 192.168.1.0
    gateway 192.168.1.1

然后用ctrl-x保存。
执行: sudo /etc/init.d/networking restart
执行: sudo ifconfig eth0 up
执行: sudo ifconfig eth0 192.168.1.110
应该能连上了。

我再去看看bonding到底啥问题。


回复 支持 反对

使用道具 举报

发表于 2011-10-2 16:04:54 | 显示全部楼层
mjyu51 发表于 2011-10-2 04:02
网卡bonding后改回普通模式
Bonding后,由于通过网络无法访问,所以需要给U-NAS接上键盘和显示器
登录后 ...

已還原
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-5-2 07:53 , Processed in 0.067481 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表