MAJOR: static hostname assignments in favor of disabling ipv4 on mgmt1, frr reload, and simple rename of a couple of files to make it simpler
This commit is contained in:
parent
b37d2b5c74
commit
05bc412860
|
@ -34,6 +34,8 @@ case "$1" in
|
||||||
## START gather all the info from the box and generate the variabels
|
## START gather all the info from the box and generate the variabels
|
||||||
HOSTNAME="$(hostname)"
|
HOSTNAME="$(hostname)"
|
||||||
DOMAINNAME="$(hostname -d)"
|
DOMAINNAME="$(hostname -d)"
|
||||||
|
echo $HOSTNAME >/etc/hostname
|
||||||
|
## new, trying to go to dhcp6, setting hostname statically. hopefully this allows us to disable dhcp4
|
||||||
|
|
||||||
|
|
||||||
dig_txt() {
|
dig_txt() {
|
||||||
|
@ -228,8 +230,7 @@ case "$1" in
|
||||||
pre-up /bin/ip link set up dev mgmt
|
pre-up /bin/ip link set up dev mgmt
|
||||||
pre-up /bin/ip link set master mgmt dev $ifname
|
pre-up /bin/ip link set master mgmt dev $ifname
|
||||||
post-down /bin/ip link del dev mgmt
|
post-down /bin/ip link del dev mgmt
|
||||||
iface $ifname inet dhcp
|
#iface $ifname inet dhcp
|
||||||
# still need it, but at this point only for hostname, we prob think of something
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
@ -417,6 +418,7 @@ case "$1" in
|
||||||
systemctl enable strongswan || true ## in case we kick-start or done have it enabled for some reason
|
systemctl enable strongswan || true ## in case we kick-start or done have it enabled for some reason
|
||||||
systemctl enable firewall
|
systemctl enable firewall
|
||||||
systemctl restart firewall
|
systemctl restart firewall
|
||||||
|
systemctl reload frr
|
||||||
|
|
||||||
## END services section
|
## END services section
|
||||||
|
|
Loading…
Reference in New Issue