简体   繁体   中英

Minimum switch/router config needed to connect with Ansible

So we're considering using Ansible to automate all our network device builds from the point of taking the devices (routers, switches, firewalls) out of thier boxes and racking them, to a fully operational network.

Now, i understand that Ansible connects via SSH which is great however, there must be at least some minimal config on these devices before ansible can connect and configure them.

Does anyone have any idea what the best way to deal with this problem is? Is it a case of manually adding a simple script to each device in order to give it an IP address or is there a more clever (automated) way of doing it?

好的,在 reddit 和 Ansible IRC 上发帖后,答案是使用零接触配置!

Well you could create a script that writes the basic configs (ip address, ssh connections etc..) and that makes several configs with different ip addresses. Then you simply add it on a USB stick and transfer the appropriate config (ex. SW1 conf or R1 conf) to SW1 or R1. Otherwise I think it's adding it manually which will take a good while if it is a big network with many devices.

Alt. is to make a script as I described and have it uploaded to a FTP server but then again you will manually add these configs and do some pre config. So there is no ultra easy solution sadly (that I know of).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM