Wenn ich zwei Internetverbindungen unter osx habe, wie kann ich beide dazu verwenden, meine Bandbreite zu erhöhen?

16429
Jameson Quinn

Ich verstehe, dass jede Verbindung (z. B. ein Nicht-P2P-Download) nur eine der Verbindungen verwenden wird. Da die meisten normalen Aktivitäten jedoch mehrere Verbindungen gleichzeitig umfassen, kann ich theoretisch immer noch meine Gesamtbandbreite vergrößern, indem ich über jede Verbindung etwas Verkehr schicke .

Siehe auch die folgenden ähnlichen Fragen, von denen die meisten für Windows gelten:

Kann man zwei Internetverbindungen kombinieren, um die Leistung zu steigern?

Wie kann ich bestimmte Anwendungen dazu zwingen, bestimmte Netzwerkverbindungen zu verwenden?

Ich habe sowohl Kabel als auch DSL zu Hause. Wie nütze ich das?

Wie kann ich zwei Internetverbindungen gleichzeitig nutzen?

https://superuser.com/questions/246173/wie-can-i-set-my-computer-up-to-use-to-use-different-internet-connections-simultane

Hier ist meine teilweise Selbstantwort:

Sie können ipfw verwenden, um ausgehenden Datenverkehr zu leiten. Wenn Sie beispielsweise möchten, dass udp (z. B. der meiste Bittorrent-Verkehr) eine Verbindung verwendet, während alle anderen Verbindungen die andere verwenden, stellen Sie sicher, dass sich die allgemein verwendbare Verbindung oben in der Netzwerksteuerung befindet. Geben Sie dann Folgendes ein:

ipfw add fwd ip.for.bittorrent.router udp from any to any out 

in der Befehlszeile. (Oder verwenden Sie WaterRoof, die ipfw-GUI; dann brauchen Sie nicht den Teil "ipfw add".) Beachten Sie, dass dies die Router-IP ist (normalerweise ähnlich Ihrer IP, aber mit der Endung .1).

17
Ich habe diese Frage mir selbst gestellt. Obwohl dies auf Hardwareebene möglich sein sollte, kann einem Computer nur eine IP zugewiesen werden und er bleibt nur mit einem DHCP in Verbindung. Ich glaube, das gilt auch für Router (dh, es wird nicht funktionieren, um DHCP auf Ihrem Router zu deaktivieren). Vielleicht ist dies mit ausreichendem Wissen möglich, es würde jedoch viel Reverse Engineering erfordern und kann nicht bei gestrandeten Betriebssystemen durchgeführt werden. November November vor 12 Jahren 0
Nicht wahr - ein Computer kann eine beliebige Anzahl von IP-Adressen haben. Kevin Panko vor 12 Jahren 1
[Windows kann mehrere IP-Adressen verwenden] (http://www.itsyourip.com/networking/how-to-add-multiple-ip-address-in-windows-2000xp2003/), aber manchmal verursacht dieses Setup Probleme unter Windows. Unsere Unix-Telefonanlage wurde für die Verwendung von zwei IP-Adressen entwickelt und funktioniert mit beiden gut. steampowered vor 12 Jahren 0

4 Antworten auf die Frage

7
smokris

Bonding.

  • Open System Preferences > Network
  • Click the gear icon, then Manage Virtual Interfaces...
  • Click +, then New Link Aggregate...
  • Give it a name, and select the ethernet interfaces you'd like to bond

Note: works for ethernet interfaces only supporting the Link Aggregation Control Protocol. Does not work for other interfaces e.g. 3G modem via USB or DSL via Wi-Fi.

See this KB article for more information.

4
Agrajag9

Short answer: no. With 2 ISP links, you have 2 IP addresses. It can be done with some specific higher end NICs (e.g. Intel quad cards), but they will appear to the rest of the network as a single IP address in that mode. If the assumption is that you have 2 distinct IP addresses, it cannot be done.

What is possible would be to get a router that supports something like OSPF, which will for each connection determine the shortest path between source and destination, however that equipment is usually very costly (thousands of dollars). Another option would be to use 1 link for ingress and the other for egress traffic. This can be done with IPTABLES or Packet Filter (pf), but will not really boost your speeds by much since you'll still be limited by the ingress and egress speeds allowed on those links.

2
steampowered

The more common, production way to accomplish this is to multiplex two WAN connections using a device outside your computer. I've used a load-balancing NAT router to accomplish this at my work site for over a year and a half, and it works great.

Using a device such as a load balancing NAT router will allow you to connect an entire subnet or LAN to the two multiplexed internet connections instead of just your single computer. Your computer's NIC will send traffic to a single gateway on the LAN, and that gateway's NAT router will load balance the traffic out over both WAN connections to the destination on the WAN. When the traffic comes back from the WAN, the router re-assembles the received packets and sends the packets to the source on the LAN in a single, coherent stream. So the computer doesn't even know the connection is being multiplexed.

This can cause a problem on some sites which expect all traffic to originate from a single WAN ip address. For example, a site which uses cookies to maintain sessions for a logged-in user will see traffic originating from two locations using the same cookie. This can appear like a hijacked session, and many websites will block this. So you must find out which sites are sensitive to using two ip addresses and make a routing rule to send that traffic using only one of your two WAN IP addresses.

I use a Sonicwall TZ-210 to do multiplex two internet connections (device costs about $550). One connection is a cable modem with 10 Mbps down and 2 Mbps up, the other is a bonded T1 with 3 down and 3 up. The multiplexed connection is effectively 13 down and 5 up.

Gibt es eine tragbare Lösung wie ein Telefon, das dies unterstützen kann? Rıfat Erdem Sahin vor 6 Jahren 0
@ RıfatErdemSahin Bei einigen Hardware-Firewalls können Sie eine LTE-Karte für den Zugriff auf ein Mobilfunknetz verwenden. steampowered vor 6 Jahren 0
2
Khaled Annajar

Hier ist die Antwort in einem anderen Thread:

Wie nutze ich meine beiden Internetverbindungen gleichzeitig unter Mac OS X?

Verwenden einer App namens Speedify