This recipe explains the procedure for configuring static routing.
Static route
- Static routing is a method for defining routing information to send traffic to a specific address through a fixed route all the time. This is also called a "fixed route".
-
Its advantage is not putting a load on the router. However, be careful as it cannot change the route to another one when the network is disconnected.
Target devices
- AG10/20
- AR10/20
- AC10 (As of 2022/7/4 only for the CLI)
Table of contents
Setting with the GUI
- Access the GUI with a Web browser.
e.g.) http://192.168.1.197 - Click [ Advanced setting/control ] – [ Static routing setting ] on the side menu.
-
On the [ Static routing setting ] screen, click the [ Add new ] button.
- Enter the fields required for configuring static routing.
❶ Enter the routing name.
❷ Specify the destination network address and prefix length.
❸ Specify the gateway address.
❹ Select the interface.
❺ Set the metric. - After competing configuring the settings, click [ 設定 ].
Setting with the CLI
- With amsh, transit to configuration mode.
admin@amnimo:~$ amsh
amnimo$ enable
password:
amnimo#
amnimo# configure- If configuring the routing settings for Network A (172.16.1.0/24)
amnimo(cfg)# routing static network_a ← Specify the static routing name.
amnimo(cfg-rts-network_a)# to 172.16.1.0/24 ← Specify the destination network address.
amnimo(cfg-rts-network_a)# via 192.168.0.10 ← Specify the gateway IP address in the route.
amnimo(cfg-rts-network_a)# interface eth0 ← Specify the target interface.
amnimo(cfg-rts-network_a)# exit - If setting a default route*
amnimo(cfg)# routing static default ← Specify the static routing name.
*A default route is a static route with a destination network of 0.0.0.0/0. It is a forwarding destination of packets that have an IP address not described in the routing table as a destination.
amnimo(cfg-rts-default)# to 0.0.0.0/0 ← Specify the destination network address.
amnimo(cfg-rts-default)# via 192.168.0.1 ← Specify the gateway IP address in the route.
amnimo(cfg-rts-default)# exit
- If configuring the routing settings for Network A (172.16.1.0/24)
- Save the configuration file.
amnimo(cfg)# config file save
For detailed information on the commands and other optional settings, refer to the following manuals.
Comments
0 comments
Please sign in to leave a comment.