複数のアップリンクへのモバイル接続ルーティング

複数のアップリンクへのモバイル接続ルーティング

2つのネットワークインターフェイス(1つのVLAN)を持つMBIM LTEモデムがあり、IP、ゲートウェイなどがMBIMプロトコルを介して取得されるため、ルーティングを手動で実行する必要があるため、両方の接続を設定しようとしています。このフォーラムでグーグルと検索をたくさん試してみると、解決策は次のとおりです。これつまり、2番目と3番目のルーティングテーブルとルーティングルールを使用します。

このソリューションは一般的にethネットワークデバイスに推奨されていますが、違いはないはずですが、両方のネットワークを連携させることはできません。 Pingはまったく出ません。

私の設定は次のとおりです。

MBIMプロトコルが両方の接続について次のデータを提供すると仮定する。

Session 1
IP=10.39.187.213/24
GW=10.39.187.1

Session 2
IP=5.91.204.208/24
GW=5.91.204.1

これはパスです

ip link add link wwp0s20u1u1u4 name wwp0s20u1u1u4.0 type vlan id 0
ip set link wwp0s20u1u1u4 up

ip route show table main
default
    nexthop via 10.39.187.1  dev wwp0s20u1u1u4 weight 1
    nexthop via 5.91.204.1  dev wwp0s20u1u1u4.0 weight 1
5.91.204.0/24 dev wwp0s20u1u1u4.0  proto kernel  scope link  src 5.91.204.208
10.39.187.0/24 dev wwp0s20u1u1u4  proto kernel  scope link  src 10.39.187.213

ip route show table second
default via 10.39.187.1 dev wwp0s20u1u1u4
10.39.187.0/24 dev wwp0s20u1u1u4  scope link  src 10.39.187.213

ip route show table third
default via 5.91.204.1 dev wwp0s20u1u1u4.0
5.91.204.0/24 dev wwp0s20u1u1u4.0  scope link  src 5.91.204.208

ip rule
0:  from all lookup local
32762:  from all to 5.91.204.0/24 lookup third
32763:  from 5.91.204.0/24 lookup third
32764:  from all to 10.39.187.0/24 lookup second
32765:  from 10.39.187.0/24 lookup second
32766:  from all lookup main
32767:  from all lookup default

pingの結果です

ping -I wwp0s20u1u1u4 8.8.8.8 -c 4
PING 8.8.8.8 (8.8.8.8) from 10.39.187.213 wwp0s20u1u1u4: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=42 time=121 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=42 time=79.4 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=42 time=111 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=42 time=110 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 79.458/105.839/121.511/15.807 ms


ping -I wwp0s20u1u1u4.0 8.8.8.8 -c 4
PING 8.8.8.8 (8.8.8.8) from 5.91.204.208 wwp0s20u1u1u4.0: 56(84) bytes of data.

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms

更新:2つのRMNETを公開するQMIモデムに同じ構成を使用できます。このユースケースに合わせてVLANネットワークをデバッグする方法を知りたいです。

ベストアンサー1

おすすめ記事