Introduction: If you're experiencing difficulties connecting to your Virtual Private Server (VPS) after executing a MikroTik conversion script, the problem may be related to IP configuration. This guide will walk you through the steps to resolve connection issues.

Step 1: Check the IP Addresses Begin by verifying that your IP address is correctly associated with your VPS. Execute the following command to list all IP addresses on the router:

/ip address print

This command will display a list of all IP addresses configured on your VPS. Review the list to confirm if your desired IP address is correctly linked.

Step 2: Check the Interface If you discover that your IP address is not linked, the next step is to identify the appropriate interface to associate with your IP address. List all network interfaces using this command:

/interface print

This will provide a list of available network interfaces on your VPS. Take note of the name of the interface to which you intend to link your IP address.

Step 3: Add the IP Address Now, assign your desired IP address to the chosen interface using the following format:

/ip address add address=[your desired IP address]/[subnet mask] interface=[interface name]

For example, if you wish to assign the IP address 192.168.88.1 with a subnet mask of 24 to the interface ether1, the command would be:

/ip address add address=192.168.88.1/24 interface=ether1

Step 4: Add the Route To ensure proper network traffic flow, add the route with the following command:

/ip route add dst-address=0.0.0.0/0 gateway=[your gateway IP]

For instance, if your gateway IP is 185.47.174.254, the command will be:

/ip route add dst-address=0.0.0.0/0 gateway=185.47.174.254

Conclusion: Following these steps, your VPS should now be correctly configured with the new IP address and able to connect to the network. Ensure that you replace the placeholder values in the commands with your actual IP address, subnet mask, interface name, and gateway IP. This should resolve any connection issues you were experiencing after running a MikroTik conversion script.

Kas see vastus oli kasulik? 4402 Kasutajad peavad seda kasulikuks (7950 Hääled)