We are attempting to add roughly 1000 addresses in contiguous public IP space to a single ethernet interface so that we can port forward traffic from each public IP address to a server hosted on corresponding private IPs.
We are adding the addresses via an SSH session within SecureCRT using the following syntax (actual ips changed but netmasks are correct) :
ip address add address=123.45.32.1/22 broadcast=123.45.35.255 comment=“” disabled=no interface=PUBLIC network=123.45.32.0
ip address add address=123.45.32.2/22 broadcast=123.45.35.255 comment=“” disabled=no interface=PUBLIC network=123.45.32.0
ip address add address=123.45.32.254/22 broadcast=123.45.35.255 comment=“” disabled=no interface=PUBLIC network=123.45.32.0
ip address add address=123.45.33.1/22 broadcast=123.45.35.255 comment=“” disabled=no interface=PUBLIC network=123.45.32.0
…
We can add as many addresses as we like in this manner until we get about halfway through the second Class C network (after aproximately 350 IP addresses or so). At that stage, the router still accepts additional IP address assignments, however upon reboot it appears as if the router configuration becomes corrupted. The local console and winbox become very slow (“interface ethernet print” takes up to a minute to display the interfaces rather then a second or two), and we can no longer access the internet through the router’s WAN interface. It appears as if the router configuration becomes corrupted and we have to restore from backup to restore internet connectivity.
When this happens the mikrotik creates a file called autosupout.rif, 33 bytes in size however that only contains “–BEGIN ROUTEROS SUPOUT SECTION” with no additional text. If we try to dump the config into plain test using /export file=xxx - it fails to complete the export, and generates errors such as :
#error exporting //interface vlan
#error exporting //queue simple
…
#error exporting //ip ipsec manual-sa
Are there any known limitations as to the number of IP addresses that can be assigned to an ethernet interface? Or a limit to the overall size of the router’s configuration file? Any other thoughts?