Question
Can I set the order of priority for wired and wireless (SIM) connections when accessing the Internet?
Answer
By setting the routing table, you can set which route will be prioritized for the Internet.
You can set the order of priority for routes by setting metrics.
As shown in the following example, if the default route metric value of ecm0 is 10 and the one of eth0 is 30, packets will be sent from ecm0 preferentially.
Also, if the ecm0 line is disconnected, packets will be sent from eth0.
*Please note that disconnection of eth0 can be detected only when the link is down.
Example of the confirmation command in the routing table
amnimo# show routing
TO VIA METRIC INTERFACE
default 192.168.1.1 0 eth0
default 172.16.64.0/18 30 ecm0
172.16.64.0/18 0.0.0.0 0 ecm0
172.16.64.1 0.0.0.0 30 ecm0
192.168.0.0/24 0.0.0.0 0 br0
192.168.1.0/24 0.0.0.0 0 eth0
Example of setting the default route and metric in the routing table
amnimo(cfg)# routing static default
amnimo(cfg-rts-default)# to 0.0.0.0/0
amnimo(cfg-rts-default)# via 172.16.64.1
amnimo(cfg-rts-default)# metric 30
amnimo(cfg-rts-default)# interface eth0
amnimo(cfg-rts-default)# exit
Reference pages
- I want to switch the SIM to another one if the communication is interrupted
- 通信速度によって SIM を自動で切り替えたい (Japanese Only)
- CLI ユーザーズマニュアル - 6.3.3 ルーティングテーブルの設定をする (Japanese Only)
Comments
0 comments
Please sign in to leave a comment.