Chinaunix

标题: 3g上网卡如何bonding成一块提高带宽? [打印本页]

作者: goon86    时间: 2009-06-17 16:24
标题: 3g上网卡如何bonding成一块提高带宽?
你好,系统有两块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 编辑 ]
作者: goon86    时间: 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 编辑 ]
作者: goon86    时间: 2009-06-19 11:16
简单点来说就是如何把usb设备虚拟成网卡?请教有人做过吗?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2