# Generated for:
# RouterOSv3.x
:log info "Unsolclic for 2007-VicHabitatST going to be executed."
#
# Configuration for RouterOSv3.x
# Device: 2007-VicHabitatST
#
# 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=VicHabitatST
#
# DNS (client & server cache) zone: 27557
/ip dns set primary-dns=10.138.160.98 secondary-dns=10.138.0.2 allow-remote-requests=yes
:delay 1
#
# NTP (client & server cache) zone: 27557
/system ntp client set enabled=yes mode=unicast primary-ntp=10.138.160.98 secondary-ntp=10.138.0.2
: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="VicHabitat"
#
# 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 VicHabitat-VicSemi
/interface wireless set wlan1 name="wlan1" \
radio-name="VicHabitat-VicSemi" mode=ap-bridge ssid="guifi.net-VicHabitat-VicSemi" \
band="5ghz" \
frequency-mode=regulatory-domain country=spain antenna-gain=13 \
frequency=5680 \
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.11.129/27"] do={remove $i}
/ ip address add address=10.138.11.129/27 network=10.138.11.128 broadcast=10.138.11.159 interface=wLan/Lan disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.11.128/27] do={/routing bgp network remove $i;}
add network=10.138.11.128/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.11.128/27] do={/routing ospf network remove $i;}
add network=10.138.11.128/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.11.135-10.138.11.158
: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.11.128/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.11.128/27 gateway=10.138.11.129 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.11.130 mac-address=00:12:17:49:7B:07 client-id=VicPVR server=dhcp-wLan/Lan
add address=10.138.11.131 mac-address=00:0B:82:02:D9:2F client-id=VicHabitatManeleta server=dhcp-wLan/Lan
add address=10.138.11.132 mac-address=ff:ff:ff:ff:ff:ff client-id=VicHabitatVilacis 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_VicSeminariST1" master-interface=wlan1 wds-address=00:0B:6B:36:6B:F3 disabled=no
/ ip address add address=172.25.10.29/30 network=172.25.10.28 broadcast=172.25.10.31 interface=wds_VicSeminariST1 disabled=no comment="wds_VicSeminariST1"
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wds_VicSeminariST1] do={/routing ospf interface remove $i;}
add interface=wds_VicSeminariST1
/ routing ospf network
:foreach i in [/routing ospf network find network=172.25.10.28/30] do={/routing ospf network remove $i;}
add network=172.25.10.28/30 area=backbone disabled=no
/ routing bgp peer
:foreach i in [find name=VicSeminariST1] do={/routing bgp peer remove $i;}
add name="VicSeminariST1" instance=default remote-address=172.25.10.30 remote-as=1941 \
multihop=no route-reflect=no ttl=default in-filter=ebgp-in out-filter=ebgp-out disabled=yes
#
:delay 1
#
# Radio#: 1 VicHabitat-VicNord
/interface wireless set wlan2 name="wlan2" \
radio-name="VicHabitat-VicNord" mode=ap-bridge ssid="guifi.net-VicHabitat-VicNord" \
band="5ghz" \
frequency-mode=regulatory-domain country=spain antenna-gain=21 \
frequency=5700 \
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;}
/ interface wireless wds
add name="wds_VicNordST" master-interface=wlan2 wds-address=00:1D:7D:45:50:70 disabled=no
/ ip address add address=172.25.11.54/30 network=172.25.11.52 broadcast=172.25.11.55 interface=wds_VicNordST disabled=no comment="wds_VicNordST"
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wds_VicNordST] do={/routing ospf interface remove $i;}
add interface=wds_VicNordST
/ routing ospf network
:foreach i in [/routing ospf network find network=172.25.11.52/30] do={/routing ospf network remove $i;}
add network=172.25.11.52/30 area=backbone disabled=no
/ routing bgp peer
:foreach i in [find name=VicNordST] do={/routing bgp peer remove $i;}
add name="VicNordST" instance=default remote-address=172.25.11.53 remote-as=15940 \
multihop=no route-reflect=no ttl=default in-filter=ebgp-in out-filter=ebgp-out disabled=yes
#
:delay 1
#
# Radio#: 2 VicHabitatST-AP
/interface wireless set wlan3 name="wlan3" \
radio-name="VicHabitatST-AP" mode=ap-bridge ssid="guifi.net-VicHabitatST-AP" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=14 \
frequency=2442 \
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.11.97/27"] do={remove $i}
/ ip address add address=10.138.11.97/27 network=10.138.11.96 broadcast=10.138.11.127 interface=wlan3 disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.11.96/27] do={/routing bgp network remove $i;}
add network=10.138.11.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.11.96/27] do={/routing ospf network remove $i;}
add network=10.138.11.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.11.103-10.138.11.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.11.96/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.11.96/27 gateway=10.138.11.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.11.98 mac-address=ff:ff:ff:ff:ff:ff client-id=VicRamblaTarradellasRadio2 server=dhcp-wlan3
add address=10.138.11.99 mac-address=00:00:00:00:00:00 client-id=VicRamon2 server=dhcp-wlan3
add address=10.138.11.100 mac-address=00:18:39:AE:8B:4E client-id=VicCarlesPerotRd1 server=dhcp-wlan3
add address=10.138.11.101 mac-address=00:15:6D:F4:E2:FE client-id=VicGaudiRamadaRd1 server=dhcp-wlan3
add address=10.138.11.102 mac-address=00:16:01:4D:7B:18 client-id=VicEscolaXube server=dhcp-wlan3
add address=10.138.11.103 mac-address=00:15:6D:A9:BC:33 client-id=VicElisendaTarratsUB2 server=dhcp-wlan3
add address=10.138.11.104 mac-address=00:15:6D:A9:BD:34 client-id=VicJaouadERd1 server=dhcp-wlan3
add address=10.138.11.105 mac-address=00:16:01:F2:2C:E4 client-id=VicMeiRadio1 server=dhcp-wlan3
add address=10.138.11.106 mac-address=00:15:6D:A7:B9:BD client-id=VicGinestetRd1 server=dhcp-wlan3
add address=10.138.11.107 mac-address=00:13:10:7A:DB:A5 client-id=VicPalcaide server=dhcp-wlan3
add address=10.138.11.108 mac-address=00:00:00:00:00:01 client-id=VicGilGorchsRd2 server=dhcp-wlan3
add address=10.138.11.109 mac-address=00:1A:70:7B:5D:98 client-id=VicRomaBCRd1 server=dhcp-wlan3
add address=10.138.11.110 mac-address=00:15:6D:A7:1E:8E client-id=VicNGarciaRd1 server=dhcp-wlan3
add address=10.138.11.111 mac-address=00:14:BF:16:11:48 client-id=VicMontserratCribill server=dhcp-wlan3
add address=10.138.11.112 mac-address=00:16:01:16:89:20 client-id=VicFatzuRadio1 server=dhcp-wlan3
add address=10.138.11.113 mac-address=00:14:BF:09:41:D1 client-id=VicJSerrallongaRadio server=dhcp-wlan3
add address=10.138.11.114 mac-address=00:15:6D:5C:C3:F4 client-id=VicPuigmal28Rd1 server=dhcp-wlan3
add address=10.138.11.115 mac-address=00:15:6D:D4:78:54 client-id=vicvilabellajmRd1 server=dhcp-wlan3
add address=10.138.11.116 mac-address=00:15:6D:AD:D9:44 client-id=VicJVilaUB2 server=dhcp-wlan3
add address=10.138.11.117 mac-address=00:16:01:AF:EA:DD client-id=VicSoniaRd2 server=dhcp-wlan3
add address=10.138.11.118 mac-address=00:15:6D:AD:D9:67 client-id=VicSalomoRd1 server=dhcp-wlan3
add address=10.138.11.119 mac-address=00:16:01:AD:DA:30 client-id=VicJoaniMontseRadio server=dhcp-wlan3
add address=10.138.11.120 mac-address=00:15:6D:AD:EC:D8 client-id=VicRblaHospital6 server=dhcp-wlan3
add address=10.138.11.121 mac-address=11:22:33:44:55:66 client-id=VicCasalClaretRadio server=dhcp-wlan3
add address=10.138.11.122 mac-address=00:11:22:33:44:56 client-id=VicAngelARd1 server=dhcp-wlan3
add address=10.138.11.123 mac-address=00:15:6D:AD:E3:7B client-id=VicPuigmalRadio1 server=dhcp-wlan3
add address=10.138.11.124 mac-address=00:1D:7E:4B:0F:8D client-id=DuesSoles2Rd1 server=dhcp-wlan3
add address=10.138.11.125 mac-address=00:16:01:F2:2C:12 client-id=VicMorgades12Rd2 server=dhcp-wlan3
add address=10.138.11.126 mac-address=00:1D:0F:B9:4D:18 client-id=VicGaudiXeviRadio1 server=dhcp-wlan3
#
:delay 1
#
# Radio#: 3 VicHabitatST-AP5ghz
/interface wireless set wlan4 name="wlan4" \
radio-name="VicHabitatST-AP5ghz" mode=ap-bridge ssid="guifi.net-VicHabitatST-AP5ghz" \
band="5ghz" \
frequency-mode=regulatory-domain country=spain antenna-gain=14 \
frequency=5220 \
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.5.129/27"] do={remove $i}
/ ip address add address=10.138.5.129/27 network=10.138.5.128 broadcast=10.138.5.159 interface=wlan4 disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.5.128/27] do={/routing bgp network remove $i;}
add network=10.138.5.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.5.128/27] do={/routing ospf network remove $i;}
add network=10.138.5.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.5.135-10.138.5.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.5.128/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.5.128/27 gateway=10.138.5.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.5.131 mac-address=00:00:00:00:00:01 client-id=VicRamon5 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;}
/ interface wireless wds
add name="wds_VicCComella3" master-interface=wlan4 wds-address=00:1D:7D:38:F7:59 disabled=no
/ ip address add address=172.25.10.34/30 network=172.25.10.32 broadcast=172.25.10.35 interface=wds_VicCComella3 disabled=no comment="wds_VicCComella3"
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wds_VicCComella3] do={/routing ospf interface remove $i;}
add interface=wds_VicCComella3
/ routing ospf network
:foreach i in [/routing ospf network find network=172.25.10.32/30] do={/routing ospf network remove $i;}
add network=172.25.10.32/30 area=backbone disabled=no
/ routing bgp peer
:foreach i in [find name=VicCComella3] do={/routing bgp peer remove $i;}
add name="VicCComella3" instance=default remote-address=172.25.10.33 remote-as=7421 \
multihop=no route-reflect=no ttl=default in-filter=ebgp-in out-filter=ebgp-out disabled=yes
#
:delay 1
#
# Radio#: 4 VicHabitatST-AP52Ghz
/interface wireless set wlan5 name="wlan5" \
radio-name="VicHabitatST-AP52Ghz" mode=ap-bridge ssid="guifi.net-VicHabitatST-AP52Ghz" \
band="5ghz" \
frequency-mode=regulatory-domain country=spain antenna-gain=14 \
frequency=5320 \
dfs-mode=none \
antenna-mode=ant-a 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.167.1/27"] do={remove $i}
/ ip address add address=10.138.167.1/27 network=10.138.167.0 broadcast=10.138.167.31 interface=wlan5 disabled=no
/ routing bgp network
:foreach i in [/routing bgp network find network=10.138.167.0/27] do={/routing bgp network remove $i;}
add network=10.138.167.0/27 disabled=no
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wlan5] do={/routing ospf interface remove $i;}
add interface=wlan5
/ routing ospf network
:foreach i in [/routing ospf network find network=10.138.167.0/27] do={/routing ospf network remove $i;}
add network=10.138.167.0/27 area=backbone disabled=no
:delay 1
#
# DHCP
:foreach i in [/ip pool find name=dhcp-wlan5] do={/ip pool remove $i;}
/ip pool add name=dhcp-wlan5 ranges=10.138.167.7-10.138.167.30
:foreach i in [/ip dhcp-server find name=dhcp-wlan5] do={/ip dhcp-server remove $i;}
/ip dhcp-server add name=dhcp-wlan5 interface=wlan5 address-pool=dhcp-wlan5 disabled=no
:foreach i in [/ip dhcp-server network find address="10.138.167.0/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.138.167.0/27 gateway=10.138.167.1 domain=guifi.net comment=dhcp-wlan5
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
add address=10.138.167.2 mac-address=00:15:6D:EA:EC:7A client-id=VicYacineRd1 server=dhcp-wlan5
add address=10.138.167.3 mac-address=00:15:6D:EA:EC:79 client-id=VicLidiaPRd1 server=dhcp-wlan5
add address=10.138.167.4 mac-address=FF:FF:10:00:00:00 client-id=VicEscolaXubeRd2 server=dhcp-wlan5
add address=10.138.167.5 mac-address=00:15:6D:B0:2B:6E client-id=VcBchddRd1 server=dhcp-wlan5
add address=10.138.167.6 mac-address=00:0C:42:7C:25:0B client-id=VicRamblaDavallades7Rd1 server=dhcp-wlan5
add address=10.138.167.7 mac-address=00:15:6D:B0:2B:76 client-id=VicRamon server=dhcp-wlan5
add address=10.138.167.8 mac-address=00:0C:42:88:5A:E8 client-id=VicNietoRd2 server=dhcp-wlan5
#
:delay 1
# Type: wds/p2p
# Remove all existing wds interfaces
:foreach i in [/interface wireless wds find master-interface=wlan5] \
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
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=ether2] do={/routing ospf interface remove $i;}
add interface=ether2
/ routing ospf network
:foreach i in [/routing ospf network find network=172.25.10.72/30] do={/routing ospf network remove $i;}
add network=172.25.10.72/30 area=backbone disabled=no
/ routing bgp peer
:foreach i in [find name=VicHabitatST2] do={/routing bgp peer remove $i;}
add name="VicHabitatST2" instance=default remote-address=172.25.10.73 remote-as=2557 \
multihop=no route-reflect=no ttl=default in-filter=ebgp-in out-filter=ebgp-out disabled=yes
:foreach i in [/ip address find address="172.25.10.74/30"] do={/ip address remove $i;}
:delay 1
/ ip address add address=172.25.10.74/30 network=172.25.10.72 broadcast=172.25.10.75 interface=ether2 disabled=no comment="VicHabitatST2"
#
# 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.11.129 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.11.129 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=2007 router-id=10.138.11.129 \
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.11.129 distribute-default=never redistribute-connected=no \
redistribute-static=no redistribute-rip=no redistribute-bgp=as-type-1
#
:log info "Unsolclic for 2007-VicHabitatST executed."
/