異なるインターフェイスを介して同じサーバーに接続する

異なるインターフェイスを介して同じサーバーに接続する

2つのpppoeインターフェースがありますppp0ppp1両方のインターフェイスで同じサーバーにアクセスしたいです。ルーティングテーブルに必要なIPアドレスを追加します。

route add 10.88.40.13 ppp0

サーバーに接続できます。ただし、このターゲットIPを他のインターフェイスに追加したい場合:

route add 10.88.40.13 ppp1

kittlnx127:~ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.62.49.1      0.0.0.0         UG    0      0        0 eth0
10.62.49.0      *               255.255.255.0   U     0      0        0 eth0
10.88.40.13     *               255.255.255.255 UH    0      0        0 ppp1
loopback        *               255.0.0.0       U     0      0        0 lo
link-local      *               255.255.0.0     U     0      0        0 eth0
169.254.203.1   *               255.255.255.255 UH    0      0        0 ppp0
169.254.203.1   *               255.255.255.255 UH    0      0        0 ppp1
192.168.201.0   *               255.255.255.0   U     0      0        0 eth1

したがって、このエントリは新しいインターフェイスで更新されました。両方のインターフェイスの送信元 IP アドレスは異なります。

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.43.154.48  P-t-P:169.254.203.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:80 (80.0 b)  TX bytes:80 (80.0 b)

ppp1      Link encap:Point-to-Point Protocol  
          inet addr:10.43.154.32  P-t-P:169.254.203.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:80 (80.0 b)  TX bytes:80 (80.0 b)

もしそうなら、両方のインターフェイスで同じサーバーに何らかの方法で接続できますか?詳細を提供する必要がありますか?よろしくお願いします!私はこれを見つけました質問しかし、同じことではないようです...

ベストアンサー1

私の考えであなたが探しているのはネットワークインタフェースバインディング

たとえば、参照してください。http://docs.oracle.com/cd/E37670_01/E41138/html/ch11s05.html

おすすめ記事