# Generated for:
# RouterOSv2.9
:log info "Unsolclic for 4014-CNTElectraGavarraRadio1 going to be executed."
#
# Configuration for RouterOSv2.9
# Device: 4014-CNTElectraGavarraRadio1
#
# Methods to upload/execute this script:
# 1.-As a script. Upload this output as a script either with:
# a.Winbox (with Linux, wine required)
# b.Terminal (telnet, ssh...)
# Then execute the script with:
# > /system script run script_name
# 2.-Imported file:
# Save this output to a file, then upload it to the router
# using ftp using a name like "script_name.rsc".
# (note that extension ".rsc" is required)
# Run the import file using the command:
# > /import script_name
# 3.-Telnet cut&paste:
# Open a terminal session, and cut&paste this output
# directly on the terminal input.
#
# Notes:
# -routing-test package is required if you use RouterOSv2.9 , be sure you have it enabled at system packages
# -wlans should be enabled manually, be sure to set the correct antenna (a or b)
# according in how did you connect the cable to the miniPCI. Keep the
# power at the minimum possible and check the channel.
# -The script doesn't reset the router, you might have to do it manually
# -You must have write access to the router
# -MAC access (winbox, MAC telnet...) method is recommended
# (the script reconfigures some IP addresses, so communication can be lost)
# -No changes are done in user passwords on the device
# -A Read Only guest account with no password will be created to allow guest access
# to the router with no danger of damage but able to see the config.
# -Be sure that all packages are activated.
# -Don't run the script from telnet and being connected through an IP connection at
# the wLan/Lan interface: This interface will be destroyed during the script.
#
/ system identity set name=CNTElectraGavarraRadio1
#
# DNS (client & server cache) zone: 2447
/ip dns set primary-dns=10.138.71.3 secondary-dns=10.138.0.2 allow-remote-requests=yes
:delay 1
#
# NTP (client & server cache) zone: 2447
/system ntp client set enabled=yes mode=unicast primary-ntp=10.138.71.3 secondary-ntp=10.138.0.2
/system ntp server set manycast=no enabled=yes
:delay 1
#
# Bandwidth-server
/ tool bandwidth-server set enabled=yes authenticate=no allocate-udp-ports-from=2000
#
# SNMP
/snmp set contact="guifi@guifi.net" enabled=yes location="CNTElectraGavarra"
#
# Guest user
/user
:foreach i in [find group=read] do={/user remove $i;}
add name="guest" group=read address=0.0.0.0/0 comment="" disabled=no
#
# Graphing
/tool graphing interface add
# Remove current wLan/Lan bridge if exists
:foreach i in [/interface bridge find name=wLan/Lan] \
do={:foreach i in [/interface bridge port find bridge=wLan/Lan] \
do={/interface bridge port remove $i; \
:foreach i in [/ip address find interface=wLan/Lan] \
do={/ip address remove $i;};};
/interface bridge remove $i;}
# Construct main bridge on wlan1 & ether1
/ interface bridge
add name="wLan/Lan"
/ interface bridge port
add interface=ether1 bridge=wLan/Lan
add interface=wlan1 bridge=wLan/Lan
:delay 1
#
# Radio#: 0 CNTGavarraAP1-NordOest
/interface wireless set wlan1 name="wlan1" \
radio-name="CNTGavarraAP1-NordOest" mode=ap-bridge ssid="guifi.net-CNTGavarraAP1-NordOest" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=14 \
frequency=2477 \
dfs-mode=none \
wds-mode=static wds-default-bridge=none wds-default-cost=100 \
wds-cost-range=50-150 wds-ignore-ssid=yes hide-ssid=no
:delay 1
# Type: wLan/Lan
/ip address
:foreach i in [find address="10.138.71.65/27"] do={remove $i}
/ ip address add address=10.138.71.65/27 network=10.138.71.64 broadcast=10.138.71.95 interface=wLan/Lan disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.71.64/27] do={/routing bgp network remove $i;}
add network=10.138.71.64/27 disabled=no
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wLan/Lan] do={/routing ospf interface remove $i;}
add interface=wLan/Lan
/ routing ospf network
:foreach i in [/routing ospf network find network=10.138.71.64/27] do={/routing ospf network remove $i;}
add network=10.138.71.64/27 area=backbone disabled=no
:delay 1
#
# DHCP
:foreach i in [/ip pool find name=dhcp-wLan/Lan] do={/ip pool remove $i;}
/ip pool add name=dhcp-wLan/Lan ranges=10.138.71.71-10.138.71.94
:foreach i in [/ip dhcp-server find name=dhcp-wLan/Lan] do={/ip dhcp-server remove $i;}
/ip dhcp-server add name=dhcp-wLan/Lan interface=wLan/Lan address-pool=dhcp-wLan/Lan disabled=no
:foreach i in [/ip dhcp-server network find address="10.138.71.64/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.71.64/27 gateway=10.138.71.65 domain=guifi.net comment=dhcp-wLan/Lan
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
add address=10.138.71.66 mac-address=00:1C:10:36:49:E0 client-id=CNTAFontRadio1 server=dhcp-wLan/Lan
add address=10.138.71.67 mac-address=00:16:E6:3C:96:13 client-id=CNTRodriguezRd1 server=dhcp-wLan/Lan
add address=10.138.71.68 mac-address=00:00:00:00:00:01 client-id=CNTcoguletRd1 server=dhcp-wLan/Lan
add address=10.138.71.69 mac-address=00:15:6D:A7:C1:33 client-id=CNTJuanGRd1 server=dhcp-wLan/Lan
add address=10.138.71.70 mac-address=00:15:6D:AC:67:20 client-id=CNTCanCuaNauRd6 server=dhcp-wLan/Lan
add address=10.138.71.71 mac-address=00:1C:10:44:0F:47 client-id=CNTAviMiquelRd1 server=dhcp-wLan/Lan
add address=10.138.71.72 mac-address=00:1A:70:4F:44:48 client-id=CNTCastellarRd2 server=dhcp-wLan/Lan
add address=10.138.71.73 mac-address=00:15:6D:A9:CD:44 client-id=CNTDuranRd1 server=dhcp-wLan/Lan
add address=10.138.71.74 mac-address=08:00:69:02:01:FD client-id=CNTIvanRoquetaRd1 server=dhcp-wLan/Lan
add address=10.138.71.75 mac-address=00:16:01:F4:B9:2F client-id=CntCassalsRd2 server=dhcp-wLan/Lan
add address=10.138.71.76 mac-address=00:15:6D:D2:E0:EA client-id=CNTMonicaJRd1 server=dhcp-wLan/Lan
add address=10.138.71.77 mac-address=00:15:6D:AB:DD:A7 client-id=CNTUECRd1 server=dhcp-wLan/Lan
add address=10.138.71.78 mac-address=00:15:6D:DB:B7:19 client-id=CNTPujadesRd2 server=dhcp-wLan/Lan
add address=10.138.71.79 mac-address=00:15:6D:E8:CC:65 client-id=CNTTarracoRd2 server=dhcp-wLan/Lan
add address=10.138.71.81 mac-address=00:15:6D:1A:05:BB client-id=CNTVanessaRd1 server=dhcp-wLan/Lan
add address=10.138.71.82 mac-address=00:00:00:00:00:01 client-id=CNTTarresRd1 server=dhcp-wLan/Lan
#
:delay 1
# Type: wds/p2p
# Remove all existing wds interfaces
:foreach i in [/interface wireless wds find master-interface=wlan1] \
do={:foreach n in [/interface wireless wds get $i name] \
do={:foreach inum in [/ip address find interface=$n] \
do={/ip address remove $inum;};}; \
/interface wireless wds remove $i;}
/ interface wireless wds
add name="wds_CNTTVCentellesST1" master-interface=wlan1 wds-address=00:0B:6B:57:EB:C8 disabled=no
/ ip address add address=172.25.3.190/30 network=172.25.3.188 broadcast=172.25.3.191 interface=wds_CNTTVCentellesST1 disabled=no comment="wds_CNTTVCentellesST1"
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wds_CNTTVCentellesST1] do={/routing ospf interface remove $i;}
add interface=wds_CNTTVCentellesST1
/ routing ospf network
:foreach i in [/routing ospf network find network=172.25.3.188/30] do={/routing ospf network remove $i;}
add network=172.25.3.188/30 area=backbone disabled=yes
/ routing bgp peer
:foreach i in [find name=CNTTVCentellesST1] do={/routing bgp peer remove $i;}
add name="CNTTVCentellesST1" instance=default remote-address=172.25.3.189 remote-as=4013 \
multihop=no route-reflect=no ttl=default in-filter=ebgp-in out-filter=ebgp-out disabled=no
#
:delay 1
#
# Radio#: 1 CNTGavarra-TVCentelles
/interface wireless set wlan2 name="wlan2" \
radio-name="CNTGavarra-TVCentelles" mode=ap-bridge ssid="guifi.net-CNTGavarra-TVCentelles" \
band="5ghz" \
frequency-mode=regulatory-domain country=spain antenna-gain=24 \
frequency=5200 \
dfs-mode=none \
wds-mode=static wds-default-bridge=none wds-default-cost=100 \
wds-cost-range=50-150 wds-ignore-ssid=yes hide-ssid=no
:delay 1
# Type: wds/p2p
# Remove all existing wds interfaces
:foreach i in [/interface wireless wds find master-interface=wlan2] \
do={:foreach n in [/interface wireless wds get $i name] \
do={:foreach inum in [/ip address find interface=$n] \
do={/ip address remove $inum;};}; \
/interface wireless wds remove $i;}
#
:delay 1
#
# Radio#: 2 CNTGavarraAP2-Nord
/interface wireless set wlan3 name="wlan3" \
radio-name="CNTGavarraAP2-Nord" mode=ap-bridge ssid="guifi.net-CNTGavarraAP2-Nord" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=14 \
frequency=2412 \
dfs-mode=none \
wds-mode=static wds-default-bridge=none wds-default-cost=100 \
wds-cost-range=50-150 wds-ignore-ssid=yes hide-ssid=no
:delay 1
# Type: wLan
/ip address
:foreach i in [find address="10.138.71.97/27"] do={remove $i}
/ ip address add address=10.138.71.97/27 network=10.138.71.96 broadcast=10.138.71.127 interface=wlan3 disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.71.96/27] do={/routing bgp network remove $i;}
add network=10.138.71.96/27 disabled=no
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wlan3] do={/routing ospf interface remove $i;}
add interface=wlan3
/ routing ospf network
:foreach i in [/routing ospf network find network=10.138.71.96/27] do={/routing ospf network remove $i;}
add network=10.138.71.96/27 area=backbone disabled=no
:delay 1
#
# DHCP
:foreach i in [/ip pool find name=dhcp-wlan3] do={/ip pool remove $i;}
/ip pool add name=dhcp-wlan3 ranges=10.138.71.103-10.138.71.126
:foreach i in [/ip dhcp-server find name=dhcp-wlan3] do={/ip dhcp-server remove $i;}
/ip dhcp-server add name=dhcp-wlan3 interface=wlan3 address-pool=dhcp-wlan3 disabled=no
:foreach i in [/ip dhcp-server network find address="10.138.71.96/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.71.96/27 gateway=10.138.71.97 domain=guifi.net comment=dhcp-wlan3
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
add address=10.138.71.98 mac-address=00:1A:70:4F:19:B9 client-id=CNTAridiaRadio1 server=dhcp-wlan3
add address=10.138.71.99 mac-address=00:16:01:AF:EE:E6 client-id=CNTvioletRadio1 server=dhcp-wlan3
add address=10.138.71.100 mac-address=00:1A:70:4E:C0:04 client-id=CNTJMartosRadio1 server=dhcp-wlan3
add address=10.138.71.101 mac-address=00:0C:42:15:A3:46 client-id=CNTBarakaRadio1 server=dhcp-wlan3
add address=10.138.71.102 mac-address=00:1A:70:4F:40:1C client-id=CNTMauriRadio1 server=dhcp-wlan3
add address=10.138.71.103 mac-address=00:80:48:4E:FF:AF client-id=CNTMariaEstraguesRadio1 server=dhcp-wlan3
add address=10.138.71.104 mac-address=00:1C:10:36:4A:1F client-id=alanlorenteRadio1 server=dhcp-wlan3
add address=10.138.71.105 mac-address=00:1C:10:91:48:2F client-id=HostaletsXanketeRadio1 server=dhcp-wlan3
add address=10.138.71.106 mac-address=00:1D:7E:27:FF:A2 client-id=CNTLourdesPuenteRadio1 server=dhcp-wlan3
add address=10.138.71.107 mac-address=00:1C:10:B2:8B:1C client-id=cntadobersGavarraAP2 server=dhcp-wlan3
add address=10.138.71.108 mac-address=00:1D:7E:55:43:C5 client-id=CNTRosaFontRadio1 server=dhcp-wlan3
add address=10.138.71.109 mac-address=00:1D:7E:42:EF:5F client-id=CNTPoliesportiuRadio server=dhcp-wlan3
add address=10.138.71.110 mac-address=00:1D:0F:AE:BA:CC client-id=CNTullateRadio1 server=dhcp-wlan3
add address=10.138.71.111 mac-address=00:1D:7E:C6:D1:EA client-id=CNTDuniaRadio1 server=dhcp-wlan3
add address=10.138.71.112 mac-address=00:0B:6B:57:E9:30 client-id=HostaletsMBaulenasRd2 server=dhcp-wlan3
add address=10.138.71.113 mac-address=00:1E:E5:36:0B:5A client-id=CNTSilviaMolistRadio1 server=dhcp-wlan3
add address=10.138.71.114 mac-address=00:16:01:B0:00:A4 client-id=CNTjmolistRadio1 server=dhcp-wlan3
add address=10.138.71.115 mac-address=00:1D:7E:C6:D3:77 client-id=CNTDoVilaroRadio1 server=dhcp-wlan3
add address=10.138.71.116 mac-address=00:1E:E5:36:0B:F0 client-id=CNAAngelDorcaRadio2 server=dhcp-wlan3
add address=10.138.71.117 mac-address=00:1D:7E:30:B4:2B client-id=cntfalgueresvallbonaRadio2 server=dhcp-wlan3
add address=10.138.71.118 mac-address=00:27:22:4A:05:56 client-id=cntcrtdrs23Rd1 server=dhcp-wlan3
add address=10.138.71.119 mac-address=00:1E:E5:43:72:6B client-id=CNTGuinovartRadio2008 server=dhcp-wlan3
add address=10.138.71.120 mac-address=00:15:6D:A7:21:0D client-id=CNTromaRadio1 server=dhcp-wlan3
add address=10.138.71.121 mac-address=00:1E:E5:45:CE:BA client-id=CentellesguinovartRadio1 server=dhcp-wlan3
add address=10.138.71.122 mac-address=00:15:6D:5E:B9:12 client-id=CNTPabloRd3 server=dhcp-wlan3
add address=10.138.71.123 mac-address=00:16:01:B0:71:5B client-id=CNTSalvaRd1 server=dhcp-wlan3
add address=10.138.71.124 mac-address=00:16:01:84:33:BF client-id=CNTPabloRd1 server=dhcp-wlan3
add address=10.138.71.125 mac-address=00:16:01:B0:79:0F client-id=CNTGuer4Rd1 server=dhcp-wlan3
add address=10.138.71.126 mac-address=00:15:6D:A7:BF:FC client-id=HostaletsSalvaRd1 server=dhcp-wlan3
#
:delay 1
# Type: wds/p2p
# Remove all existing wds interfaces
:foreach i in [/interface wireless wds find master-interface=wlan3] \
do={:foreach n in [/interface wireless wds get $i name] \
do={:foreach inum in [/ip address find interface=$n] \
do={/ip address remove $inum;};}; \
/interface wireless wds remove $i;}
#
:delay 1
#
# Radio#: 3 CNTGavarraAP3-NordEst
/interface wireless set wlan4 name="wlan4" \
radio-name="CNTGavarraAP3-NordEst" mode=ap-bridge ssid="guifi.net-CNTGavarraAP3-NordEst" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=14 \
frequency=2437 \
dfs-mode=none \
wds-mode=static wds-default-bridge=none wds-default-cost=100 \
wds-cost-range=50-150 wds-ignore-ssid=yes hide-ssid=no
:delay 1
# Type: wLan
/ip address
:foreach i in [find address="10.138.71.129/27"] do={remove $i}
/ ip address add address=10.138.71.129/27 network=10.138.71.128 broadcast=10.138.71.159 interface=wlan4 disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.71.128/27] do={/routing bgp network remove $i;}
add network=10.138.71.128/27 disabled=no
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wlan4] do={/routing ospf interface remove $i;}
add interface=wlan4
/ routing ospf network
:foreach i in [/routing ospf network find network=10.138.71.128/27] do={/routing ospf network remove $i;}
add network=10.138.71.128/27 area=backbone disabled=no
:delay 1
#
# DHCP
:foreach i in [/ip pool find name=dhcp-wlan4] do={/ip pool remove $i;}
/ip pool add name=dhcp-wlan4 ranges=10.138.71.135-10.138.71.158
:foreach i in [/ip dhcp-server find name=dhcp-wlan4] do={/ip dhcp-server remove $i;}
/ip dhcp-server add name=dhcp-wlan4 interface=wlan4 address-pool=dhcp-wlan4 disabled=no
:foreach i in [/ip dhcp-server network find address="10.138.71.128/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.71.128/27 gateway=10.138.71.129 domain=guifi.net comment=dhcp-wlan4
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
add address=10.138.71.130 mac-address=00:16:01:8C:06:0C client-id=SevaMalletRadio1 server=dhcp-wlan4
add address=10.138.71.131 mac-address=00:1D:7E:4B:66:B5 client-id=QuicuPinosRadio1 server=dhcp-wlan4
add address=10.138.71.132 mac-address=00:15:6D:E9:CB:47 client-id=HostaletsLidRd1 server=dhcp-wlan4
add address=10.138.71.133 mac-address=00:17:9A:7C:F4:A1 client-id=SevaMikiPinos server=dhcp-wlan4
add address=10.138.71.134 mac-address=00:1D:7E:27:F6:01 client-id=SevaVanderRadio1 server=dhcp-wlan4
add address=10.138.71.135 mac-address=00:1A:70:4E:D1:AD client-id=CNTCasanovesRadio1 server=dhcp-wlan4
add address=10.138.71.136 mac-address=00:1D:7E:4B:6B:AC client-id=SevaUrbPinosRadio1 server=dhcp-wlan4
add address=10.138.71.137 mac-address=00:1E:E5:36:09:60 client-id=MARCARTURRadio1 server=dhcp-wlan4
add address=10.138.71.138 mac-address=00:16:01:90:CB:C4 client-id=CNTGalanRadio1 server=dhcp-wlan4
add address=10.138.71.139 mac-address=00:16:01:F2:3F:81 client-id=CNTClavellsRadio1 server=dhcp-wlan4
add address=10.138.71.140 mac-address=00:1D:0F:AE:8C:7F client-id=CNTalexcristinaRadio1 server=dhcp-wlan4
add address=10.138.71.141 mac-address=00:1D:7E:FB:C2:13 client-id=SevaAlbertRadio1 server=dhcp-wlan4
add address=10.138.71.142 mac-address=00:16:01:F4:02:19 client-id=CNTSurJFRadio1 server=dhcp-wlan4
add address=10.138.71.143 mac-address=00:16:01:ED:63:91 client-id=CNTBeniRadio1 server=dhcp-wlan4
add address=10.138.71.144 mac-address=00:21:29:93:5D:54 client-id=CNTClavells3Rd1 server=dhcp-wlan4
add address=10.138.71.145 mac-address=00:16:01:90:CF:2D client-id=HostaletsJaviRadio1 server=dhcp-wlan4
add address=10.138.71.147 mac-address=00:0C:42:17:F0:CB client-id=BrullPinosPedfrRd1 server=dhcp-wlan4
add address=10.138.71.148 mac-address=00:15:6D:A7:B8:28 client-id=CNTolgaRd1 server=dhcp-wlan4
add address=10.138.71.149 mac-address=00:15:6D:A7:B7:5E client-id=CNThostalets3Rd1 server=dhcp-wlan4
add address=10.138.71.150 mac-address=00:15:6D:A7:BF:5C client-id=CNTclavells5Rd1 server=dhcp-wlan4
add address=10.138.71.151 mac-address=00:16:01:8C:72:4B client-id=CNTARNAURd1 server=dhcp-wlan4
add address=10.138.71.152 mac-address=00:15:6D:A9:BE:0B client-id=CNTguer16Rd1 server=dhcp-wlan4
add address=10.138.71.153 mac-address=00:16:01:4A:13:0B client-id=CNTNicasiRd1 server=dhcp-wlan4
add address=10.138.71.154 mac-address=00:1D:0F:DF:D3:1C client-id=MsalinasRd1 server=dhcp-wlan4
add address=10.138.71.155 mac-address=00:16:B6:D9:14:99 client-id=CNTCPelaezRd1 server=dhcp-wlan4
add address=10.138.71.156 mac-address=00:23:69:2A:1E:8D client-id=CNTJosepFalguerasRadio1 server=dhcp-wlan4
add address=10.138.71.157 mac-address=08:00:69:02:01:FD client-id=CNTClavellsJoanCRd1 server=dhcp-wlan4
add address=10.138.71.158 mac-address=00:15:6D:D4:F6:FD client-id=CNTICerdaRd1 server=dhcp-wlan4
#
:delay 1
# Type: wds/p2p
# Remove all existing wds interfaces
:foreach i in [/interface wireless wds find master-interface=wlan4] \
do={:foreach n in [/interface wireless wds get $i name] \
do={:foreach inum in [/ip address find interface=$n] \
do={/ip address remove $inum;};}; \
/interface wireless wds remove $i;}
#
:delay 1
#
# Routed device
#
# Other cable connections
#
# Internal addresses NAT
:foreach i in [/ip firewall nat find src-address="172.16.0.0/12"] do={/ip firewall nat remove $i;}
:foreach i in [/ip firewall nat find src-address="192.168.0.0/16"] do={/ip firewall nat remove $i;}
/ip firewall nat
add chain=srcnat src-address="192.168.0.0/16" dst-address=!192.168.0.0/16 action=src-nat to-addresses=10.138.71.65 to-ports=0-65535 comment="" disabled=no
add chain=srcnat src-address="172.16.0.0/12" dst-address=!172.16.0.0/12 protocol=!ospf action=src-nat to-addresses=10.138.71.65 to-ports=0-65535 comment="" disabled=no
#
# BGP Routing
# BGP & OSPF Filters
:foreach i in [/routing filter find chain=ospf-in] do={/routing filter remove $i;}
:foreach i in [/routing filter find chain=ospf-out] do={/routing filter remove $i;}
:foreach i in [/routing filter find chain=ebgp-in] do={/routing filter remove $i;}
:foreach i in [/routing filter find chain=ebgp-out] do={/routing filter remove $i;}
/ routing filter
add action=discard chain=ebgp-in comment="1. Discard insert non 10.x routes from BGP peer" disabled=no invert-match=no prefix=!10.0.0.0/8 prefix-length=!8-32
add action=discard chain=ebgp-out comment="2. Discard send non 10.x routes to BGP peer" disabled=no invert-match=no prefix=!10.0.0.0/8 prefix-length=!8-32
add action=accept chain=ospf-in comment="3. Accept insert 10.x routes from OSPF neighbor" disabled=no invert-match=no prefix=10.0.0.0/8 prefix-length=8-32
add action=accept chain=ospf-in comment="4. Accept insert 172.x routes from OSPF neighbor" disabled=no invert-match=no prefix=172.16.0.0/12 prefix-length=8-32
add action=discard chain=ospf-in comment="5. Discard insert non 10.x and 172.x from OSPF neighbor" disabled=no invert-match=no
add action=accept chain=ospf-out comment="6. Allow send 10.x routes to OSPF neighbor" disabled=no invert-match=no prefix=10.0.0.0/8 prefix-length=8-32
add action=accept chain=ospf-out comment="7. Allow send 172.x routes to OSPF neighbor" disabled=no invert-match=no prefix=172.16.0.0/12 prefix-length=8-32
add action=discard chain=ospf-out comment="8. Discard send non 10.x and 172.x to OSPF neighbor" disabled=no invert-match=no
#
# BGP instance
/ routing bgp instance
set default name="default" as=4014 router-id=10.138.71.65 \
redistribute-connected=yes redistribute-static=yes redistribute-rip=yes \
redistribute-ospf=yes redistribute-other-bgp=yes out-filter=ebgp-out \
client-to-client-reflection=yes comment="" disabled=no
#
# OSPF Routing
/routing ospf set router-id=10.138.71.65 distribute-default=never redistribute-connected=no \
redistribute-static=no redistribute-rip=no redistribute-bgp=as-type-1
#
:log info "Unsolclic for 4014-CNTElectraGavarraRadio1 executed."
/