Question
Please let me know how to add the bridge settings.
Target devices
- AG10/20
- AR10/20
Answer
To add the bridge settings, configure the following settings.
This section explains how to add the bridge settings, by taking an example of birding eth0 and eth1 of the IoT router and adding eth0 of the Edge Gateway to the bridge.
During or after configuring the bridge settings, there are cases where the settings of the interface connecting the PC may change. To prevent the connection from being interrupted, use a serial connection for configuring the settings. |
Bridge settings of the IoT router (AR10/20)
admin@amnimo:~$ amsh ← Transit to amsh mode.
amnimo$ enable ← Transit to administrator mode.
password:
amnimo# configure ← Transit to configuration mode.
amnimo(cfg)#
amnimo(cfg)# interface eth0 ← Transit to configuration mode of eth0.
amnimo(cfg-interface-eth0)# no enable ← Disable the eth0 interface.
amnimo(cfg-interface-eth0)# no dhcp4 ← Delete the DHCP settings of the interface to be bridged.
amnimo(cfg-interface-eth0)# enable ← Enable the eth0 interface.
amnimo(cfg-interface-eth0)# exit
amnimo(cfg)# interface eth1 ← Transit to configuration mode of eth1.
amnimo(cfg-interface-eth1)# no enable ← Disable the eth1 interface.
amnimo(cfg-interface-eth0)# no address 192.168.0.254/24 ← Delete the fixed IP address settings of the interface to be bridged.
amnimo(cfg-interface-eth1)# enable ← Enable the eth1 interface.
amnimo(cfg-interface-eth0)# exit
amnimo(cfg)# interface br0 ← Transit to configuration mode of br0.
amnimo(cfg-interface-br0)# bridge eth0 ← Add eth0 to the bridge.
amnimo(cfg-interface-br0)# bridge eth1 ← Add eth1to the bridge.
amnimo(cfg-interface-br0)# address 192.168.0.254/24 ← Set a fixed IP address for the bridge. (DHC settings also serve the purpose.)
amnimo(cfg-interface-br0)# enable ← Enable the br0 interface.
amnimo(cfg-interface-br0)# exit
amnimo(cfg)#
Bridge settings of the Edge Gateway (AG10/20)
admin@amnimo:~$ amsh ← Transit to amsh mode.
amnimo$ enable ← Transit to administrator mode.
password:
amnimo# configure ← Transit to configuration mode.
amnimo(cfg)#
amnimo(cfg)# interface eth0 ← Transit to configuration mode of eth0.
amnimo(cfg-interface-eth0)# no enable ← Disable the eth0 interface.
amnimo(cfg-interface-eth0)# no dhcp4 ← Delete the DHCP settings of the interface to be bridged.
amnimo(cfg-interface-eth0)# enable ← Enable the eth0 interface.
amnimo(cfg-interface-eth0)# exit
amnimo(cfg)# interface br0 ← Transit to configuration mode of br0.
amnimo(cfg-interface-br0)# bridge eth0 ← Add eth0 to the bridge.
amnimo(cfg-interface-br0)# exit
amnimo(cfg)#
Filtering settings
If br0 is added newly while the default policy for the incoming filtering is being set to drop, add an accept setting for br0 as well.
amnimo(cfg)# filter input 23 ← Any number
amnimo(cfg-fin-23)# policy accept ← Let packets pass.
amnimo(cfg-fin-23)# match in-interface br0 ← For packets from br0
amnimo(cfg-fin-23)# enable
amnimo(cfg-fin-23)# exit
amnimo(cfg)#
Comments
0 comments
Please sign in to leave a comment.