免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3897 | 回复: 2
打印 上一主题 下一主题

[网络管理] 3g上网卡如何bonding成一块提高带宽? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-17 16:24 |只看该作者 |倒序浏览
你好,系统有两块3g上网卡,usb的,相当于两块usb modem,插进去后系统生成/dev/ttyACM0设备,通过pppd 拨号/dev/ttyACM0 和/dev/ttyACM1 拨号上网,一块的速度太慢了,想用bonding把这两块usb网卡捆绑成一块虚拟网卡,bonding似乎只支持eth0等的网卡,请问该怎么办?
/ # ifconfig bond0 192.168.12.1
/ # /sbin/ifconfig bond0 hw ether 22:33:1a:11:11:31
/ # ifenslave bond0 ppp0
bonding: bond0: Warning: The first slave device specified does not support sett.
bonding: bond0: enslaving ppp0 as an active interface with an up link.
/ # ifenslave bond0 ppp1
Illegal operation: The specified master interface 'bond0' is not ethernet-like.
This program is designed to work with ethernet-like network interfaces.
Use the '-f' option to force the operation.
/ #

[ 本帖最后由 goon86 于 2009-6-19 15:20 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-06-18 16:27 |只看该作者
先顶一下,请问有办法把usb虚拟成usb0吗?象eth0一样。ifconfig -a看,没有usb的网口,但pppd拨号后会多一个ppp0

[root@202 network-scripts]# ifconfig -a
bond0     Link encap:Ethernet  HWaddr 22:33:1A:11:11:31  
          inet addr:192.168.12.1  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:04:23:03:BB:5A  
          inet addr:192.168.0.142  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fe03:bb5a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229441 errors:0 dropped:0 overruns:0 frame:0
          TX packets:215069 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:120530236 (114.9 MiB)  TX bytes:129955185 (123.9 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3692 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3692 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5082420 (4.8 MiB)  TX bytes:5082420 (4.8 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@202 network-scripts]#

[ 本帖最后由 goon86 于 2009-6-19 09:09 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2009-06-19 11:16 |只看该作者
简单点来说就是如何把usb设备虚拟成网卡?请教有人做过吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP