To configure a gateway with a dynamic public IP on a MikroTik RouterBoard RB433AH, you will need to follow some basic steps to ensure that your router can receive a dynamic IP from your Internet Service Provider (ISP) and act as a gateway for your network.
Here we show you how to do it:
Step 1: Connect and Access the Router
- Connect the Router: Make sure your RouterBoard RB433AH is properly connected to your modem or access point that provides the internet connection.
- Access: Access the router using WinBox or SSH. WinBox is a graphical management tool for MikroTik devices that can be downloaded from the MikroTik website.
Step 2: Configure the DHCP Client
In order for your router to accept a dynamic IP from your ISP, you must configure the interface that connects to the ISP to obtain an IP automatically using DHCP.
- Open WinBox and Connect to the Router.
- Go to Interfaces: Navigate to the list of interfaces in the main menu.
- Select WAN Interface: Identifies the interface that is connected to the ISP (usually this can be 'ether1').
- Configure DHCP Client:
- Click the '+' sign to add a new DHCP client.
- Select the 'ether1' interface or the appropriate one.
- Enable “Add Default Route” to ensure that this interface is set as the default output route.
- Click 'OK' to apply the settings.
Step 3: Configure NAT (Network Address Translation)
To allow multiple devices on your internal network to access the Internet using the single dynamic public IP assigned by your ISP, you will need to configure NAT.
- Go to IP > Firewall in WinBox.
- Navigate to the 'NAT' tab and add a new rule:
- Under 'Chain', select 'srcnat'.
- In 'Out. Interface', select the interface that connects to your ISP (usually 'ether1').
- Under 'Action', select 'masquerade'.
- Click 'OK' to save the rule.
Step 4: Verify Settings
- Check that the IP has been assigned correctly: Go to “IP > DHCP Client” and verify that the status shows “bound”, which indicates that the interface has received an IP from the ISP's DHCP server.
- Test Internet Connection: From the RouterBoard or from a device on your network, try to access the internet or use tools like 'ping' to verify connectivity.
Following these steps, your MikroTik RB433AH should be correctly configured to use a dynamic public IP as a gateway, allowing devices on your local network to access the internet through this connection.
There are no tags for this post.