How do you assign a static IPv4 address 192.168.1.2/24 to interface ether1 using the RouterOS CLI?

Prepare for the MikroTik Certified Network Associate Exam. Enhance your skills with diverse modules, adaptive quizzes, and detailed explanations. Ace your certification with confidence!

Multiple Choice

How do you assign a static IPv4 address 192.168.1.2/24 to interface ether1 using the RouterOS CLI?

Explanation:
Setting a static IPv4 address on a RouterOS interface is done with the /ip address add command, specifying the IP address in CIDR form and the interface to bind it to. The address 192.168.1.2/24 puts the device in the 192.168.1.0/24 subnet (mask 255.255.255.0), and binding it to ether1 associates that IP with the first Ethernet port you’d typically connect to the LAN. The command to use is: /ip address add address=192.168.1.2/24 interface=ether1. Using a different interface name like ether0 or ether9 would point to a different port (or may not exist), making the change ineffective. Using 192.168.2.2/24 would place the device in a different subnet, preventing reachability to devices on 192.168.1.0/24. Ensure there’s no IP conflict with another device on the LAN, and you can verify the assignment with /ip address print.

Setting a static IPv4 address on a RouterOS interface is done with the /ip address add command, specifying the IP address in CIDR form and the interface to bind it to. The address 192.168.1.2/24 puts the device in the 192.168.1.0/24 subnet (mask 255.255.255.0), and binding it to ether1 associates that IP with the first Ethernet port you’d typically connect to the LAN. The command to use is: /ip address add address=192.168.1.2/24 interface=ether1. Using a different interface name like ether0 or ether9 would point to a different port (or may not exist), making the change ineffective. Using 192.168.2.2/24 would place the device in a different subnet, preventing reachability to devices on 192.168.1.0/24. Ensure there’s no IP conflict with another device on the LAN, and you can verify the assignment with /ip address print.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy