Community discussions

MikroTik App
 
p3rad0x
Long time Member
Long time Member
Topic Author
Posts: 637
Joined: Fri Sep 18, 2015 5:42 pm
Location: South Africa
Contact:

Automation Scripting with ansible

Wed Jul 20, 2022 3:55 pm

Good day,
This may seem a bit far fetched.
Running ansible scripting to push config to devices that has an IP address is pretty simple enough, but I want to automate the assigning IP addresses to devices on specific vlan interfaces.

So the plan is, setup the basic IP and gateway config on the main router and switch.

The ansible script will then push the basic Vlan interfaces to the router and setup it on the switch.

Now the challenge is to utilize mac-telnet to login to the device on each unique vlan using the mac address from ip neighbors and add the ip address and gateway to them.
Is this even possible?

Who is online

Users browsing this forum: diamuxin, loloski and 25 guests