mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-06-27 12:08:54 +02:00
Initial Commit.
This commit is contained in:
parent
8cacc24150
commit
ff04ad34f2
4 changed files with 110 additions and 0 deletions
19
RouterOS_Recreate_Bridge.rsc
Normal file
19
RouterOS_Recreate_Bridge.rsc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# RouterOS Function
|
||||
# Copyright (c) Grzegorz Budny
|
||||
# Version 1.0
|
||||
# Last update: 2/12/2020
|
||||
# Recreates issued bridge in running config
|
||||
|
||||
|
||||
:global RecreateBridge do={
|
||||
|
||||
/interface bridge remove $bridgeName;
|
||||
|
||||
/interface bridge add name=$bridgeName mtu=auto actual-mtu=1500 l2mtu=1592 arp=enabled \
|
||||
arp-timeout=auto protocol-mode=none \
|
||||
fast-forward=yes igmp-snooping=no auto-mac=no \
|
||||
ageing-time=5m vlan-filtering=yes ether-type=0x8100 pvid=1 \
|
||||
frame-types=admit-all ingress-filtering=yes dhcp-snooping=yes \
|
||||
add-dhcp-option82=yes;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue