From b9fc07d1d12fb31fb9e86cc2cf3347672461d3b0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 20 Jun 2019 05:34:53 +0200 Subject: chaos-at-home net-config --- roles/dellos6/bootstrap/templates/init.j2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'roles/dellos6/bootstrap/templates/init.j2') diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2 index 2435c738..8a0c1ae4 100644 --- a/roles/dellos6/bootstrap/templates/init.j2 +++ b/roles/dellos6/bootstrap/templates/init.j2 @@ -3,12 +3,17 @@ configure no ip domain-lookup hostname {{ host_name }} -{# TODO: hardcoded address and vlan tag! #} -interface vlan 1 -ip address 192.168.42.200 255.255.255.0 + +vlan 42 +name mgmt +exit +interface vlan {{ dellos6_mgmt_vlan }} +ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }} exit no spanning-tree +{# TODO: configure management port #} + crypto key generate rsa crypto key generate dsa ip ssh server -- cgit v1.2.3