Skip to content

Instantly share code, notes, and snippets.

@wido
Last active April 20, 2019 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wido/67c93a05c6f40d21dc1154dc44575bc8 to your computer and use it in GitHub Desktop.
Save wido/67c93a05c6f40d21dc1154dc44575bc8 to your computer and use it in GitHub Desktop.
Cumulus Linux Services in Management VRF
#!/bin/bash
#
# Configure the Management services in Cumulus Linux to only run in the management VRF
#
# Author: Wido den Hollander <wido@denhollander.io>
#
# https://docs.cumulusnetworks.com/display/DOCS/Management+VRF
for SERVICE in ssh ntp snmpd; do
systemctl stop ${SERVICE}.service
systemctl disable ${SERVICE}.service
systemctl start ${SERVICE}@mgmt.service
systemctl enable ${SERVICE}@mgmt.service
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment