Question
Please let me know how to set the IP address for the device connected to LAN0-3.
Target device
- AG10/20
Answer
LAN0-3 are bridged to Interface br0 by default.
With the following commands, you can check the initially set values.
admin@amnimo:~$ amsh ← Transit to amsh mode.
amnimo$ enable ← Transit to administrator mode.
password:
amnimo# configure ← Transit to configuration mode.
amnimo(cfg)# show config interface br0 ← Display the settings of br0.
# ---- interface br0 configure ----
interface br0
enable
bridge lan0
bridge lan1
bridge lan2
bridge lan3
mac lan0
pmtu auto
address 192.168.0.254/24
mtu 1500
proxy-arp
no optional
exit
There are 2 ways to assign an IP address to each device connected to LAN0-3.
Using DHCP
If you set br0 as a DHCP server, an IP address will be automatically assigned to devices connected to LAN0-3. *Devices connected to LAN0-3 need to function as DHCP clients.
For the procedure for setting br0 as a DHCP server, refer to "Setting the DHCP Server".
Setting example
amnimo(cfg)# show config dhcp
# ---- dhcp br0 configure ----
dhcp br0
enable
dynamic 192.168.0.1 192.168.0.4
netmask 255.255.255.0
leasetime 60 86400
exit
Setting a fixed IP address for each device
For devices connected to LAN0-3, set a fixed IP address on the network where br0 is located.
In the example above, the network for br0 is 192.168.0.0/24. Therefore, it is necessary to set an IP address of 192.168.0.X for devices connected to LAN0-3.
Comments
0 comments
Please sign in to leave a comment.