- crs326-core nimmt Routing/DHCP/DNS/NAT/WAN/WireGuard von ap1 ueber. - L2-Portplan korrigiert (ap1 #15, Arris WAN #16, branch #8, Sonos #2/3/5/6, IoT #14, VLAN10-Access #11, VLAN1-Hybrid #3/7/9/10/12/17-24). - Backup-RSC gefixt (ether3-24 disabled) und via fixed-RSC eingespielt. - Gestagede L3-Config enabled in einem Rutsch. - Falsche statische Default-Route 0.0.0.0/0 -> 10.40.41.1 entfernt, WAN-DHCP via 90.146.33.177/24 aktiv. - SFP-Ports bleiben disabled (Stromersparnis). - ap1 ist L3-stillgelegt und wird in naechster Session reiner AP. Backup-Dateien (*.backup) und leases-export.json bleiben lokal. Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
# TP15 — Bereinigt den halb-importierten Zustand auf crs326-core,
|
|
# damit die korrigierte Cutover-Config sauber neu importiert werden kann.
|
|
# Alle entfernten Objekte werden vom korrigierten tp15-core-cutover-intended.rsc
|
|
# wieder angelegt (disabled=yes).
|
|
|
|
:log info "TP15-cleanup: start"
|
|
|
|
# [1] Interface-Lists (incl. Members werden kaskadiert entfernt)
|
|
:if ([:len [/interface/list/find name="WAN"]] > 0) do={
|
|
/interface/list/remove [find name="WAN"]
|
|
}
|
|
:if ([:len [/interface/list/find name="LAN"]] > 0) do={
|
|
/interface/list/remove [find name="LAN"]
|
|
}
|
|
|
|
# [2] Staged GW-IPs
|
|
:if ([:len [/ip/address/find comment~"L3 SVI VLAN"]] > 0) do={
|
|
/ip/address/remove [find comment~"L3 SVI VLAN"]
|
|
}
|
|
|
|
# [3] Staged WAN DHCP-Client
|
|
:if ([:len [/ip/dhcp-client/find comment~"TP15 WAN"]] > 0) do={
|
|
/ip/dhcp-client/remove [find comment~"TP15 WAN"]
|
|
}
|
|
|
|
# [4] DHCP-Pools (keine Server referenzieren sie, Import blieb vor dhcp-server stehen)
|
|
:if ([:len [/ip/pool/find name~"^pool-v"]] > 0) do={
|
|
/ip/pool/remove [find name~"^pool-v"]
|
|
}
|
|
|
|
# [5] DHCP-Server/Network-Einträge
|
|
:if ([:len [/ip/dhcp-server/network/find address~"^10\\.40\\."]] > 0) do={
|
|
/ip/dhcp-server/network/remove [find address~"^10\\.40\\."]
|
|
}
|
|
|
|
:log info "TP15-cleanup: done"
|