Here is the Swisscom config from RB2011UiAS-RM Router OS 6.xx
you can store the script in a xx.rsc file:
RB2011UiAS-RM:
/interface bridge
add \
name=bridge1 \
mtu=1598 \
protocol-mode=none
/interface ethernet
set [ find default-name=ether2 ] \
master-port=ether1
set [ find default-name=ether3 ] \
master-port=ether1
set [ find default-name=ether4 ] \
master-port=ether1
set [ find default-name=ether5 ] \
master-port=ether1
set [ find default-name=ether7 ] \
master-port=ether6
set [ find default-name=ether8 ] \
master-port=ether6
set [ find default-name=ether9 ] \
master-port=ether6
set [ find default-name=ether10 ] \
master-port=ether6
/interface ethernet
set [ find default-name=sfp1 ] \
name=sfp1-gateway
/interface wireless security-profiles
set [ find default=yes ] \
supplicant-identity=MikroTik
/ip hotspot user profile
set [ find default=yes ] \
idle-timeout=none \
keepalive-timeout=2m \
mac-cookie-timeout=3d
/interface vlan
add \
name=sfp1-gateway_vlan10 \
interface=sfp1-gateway \
l2mtu=1596 \
vlan-id=10
/ip pool
add \
name=dhcp \
ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add \
name=dhcp1 \
address-pool=dhcp \
disabled=no \
interface=bridge1
/port
set 0 \
name=serial0
/interface bridge port
add \
bridge=bridge1 \
interface=ether1
add \
bridge=bridge1 \
interface=ether6
/ip address
add \
address=192.168.88.1/24 \
interface=bridge1 \
network=192.168.88.0
/ip dhcp-client option
add \
name=classid-swisscom \
code=60 \
value="'100008,0001,,xxx fw dhclient'"
/ip dhcp-client
add \
default-route-distance=0 \
dhcp-options=classid-swisscom,hostname,clientid \
disabled=no \
interface=sfp1-gateway_vlan10 \
use-peer-ntp=no
/ip dhcp-server network
add \
address=192.168.88.0/24 \
dns-server=195.186.4.162,195.186.1.162 \
gateway=192.168.88.1
/ip firewall filter
add \
comment="permit ICMP" \
chain=input \
protocol=icmp
add \
comment="permit NTP" \
chain=input \
protocol=udp \
src-port=123
add \
comment="allow DNS resolution from local router" \
chain=input \
protocol=udp \
src-port=53
add \
comment="permit local access" \
chain=input \
in-interface=bridge1
add \
comment="permit connection state related inbound connections to local router" \
chain=input \
connection-state=related
add \
comment="permit connection state established inbound connections to local router" \
chain=input \
connection-state=established
add \
comment="drop everything else to local router" \
action=drop \
chain=input
add \
comment="permit connection state related inbound connections to forward chain" \
chain=forward \
connection-state=related
add \
comment="permit connection state established inbound connections to forward chain" \
chain=forward \
connection-state=established
add \
comment="drop everything else to forward chain" \
action=drop \
chain=forward \
connection-state=invalid
/ip firewall nat
add \
action=masquerade \
chain=srcnat \
out-interface=sfp1-gateway_vlan10 \
to-addresses=0.0.0.0
/ip firewall service-port
set ftp \
disabled=yes
set tftp \
disabled=yes
set irc \
disabled=yes
set h323 \
disabled=yes
set sip \
disabled=yes
set pptp \
disabled=yes
/ip service
set telnet \
disabled=yes
set ftp \
disabled=yes
set www-ssl \
disabled=no
set api \
disabled=yes
set winbox \
disabled=yes
set api-ssl \
disabled=yes
/ip upnp
set \
allow-disable-external-interface=no
/lcd
set \
default-screen=stats \
time-interval=hour
/lcd pin
set \
pin-number=8400
/lcd interface
set sfp1
set ether1 \
disabled=yes
set ether2 \
disabled=yes
set ether3 \
disabled=yes
set ether4 \
disabled=yes
set ether5 \
disabled=yes
set ether6 \
disabled=yes
set ether7 \
disabled=yes
set ether8 \
disabled=yes
set ether9 \
disabled=yes
set ether10 \
disabled=yes
/lcd interface pages
add \
interfaces=sfp1
/lcd screen
set 1 \
disabled=yes
set 2 \
disabled=yes
set 3 \
disabled=yes
set 4 \
disabled=yes
set 5 \
disabled=yes
/system clock
set \
time-zone-name=Europe/Zurich
/system ntp client
set \
enabled=yes \
primary-ntp=82.197.188.130 \
secondary-ntp=82.197.164.46