IMPORTANT: Degut a un error a la farga de la generalitat no es pot accedir com a usuari anonymous als fitxers dels cursos. Utilitzeu l'usuari: prova i la paraula de pas 123456
Guifi.net a terres del Ebre/Inventari
De SergiTurWiki
Contingut |
Nodes
Tortosa
Node campanari el Roser
Xarxes:
AP1:
$ ipcalc 10.36.253.33/27 Address: 10.36.253.33 00001010.00100100.11111101.001 00001 Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000 Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111 => Network: 10.36.253.32/27 00001010.00100100.11111101.001 00000 HostMin: 10.36.253.33 00001010.00100100.11111101.001 00001 HostMax: 10.36.253.62 00001010.00100100.11111101.001 11110 Broadcast: 10.36.253.63 00001010.00100100.11111101.001 11111 Hosts/Net: 30 Class A, Private Internet
AP 2:
$ ipcalc 10.36.253.193/27 Address: 10.36.253.193 00001010.00100100.11111101.110 00001 Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000 Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111 => Network: 10.36.253.192/27 00001010.00100100.11111101.110 00000 HostMin: 10.36.253.193 00001010.00100100.11111101.110 00001 HostMax: 10.36.253.222 00001010.00100100.11111101.110 11110 Broadcast: 10.36.253.223 00001010.00100100.11111101.110 11111 Hosts/Net: 30 Class A, Private Internet
AP 3:
$ ipcalc 10.36.253.225/27 Address: 10.36.253.225 00001010.00100100.11111101.111 00001 Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000 Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111 => Network: 10.36.253.224/27 00001010.00100100.11111101.111 00000 HostMin: 10.36.253.225 00001010.00100100.11111101.111 00001 HostMax: 10.36.253.254 00001010.00100100.11111101.111 11110 Broadcast: 10.36.253.255 00001010.00100100.11111101.111 11111 Hosts/Net: 30 Class A, Private Internet
Material
Instal·lació elèctrica:
- Caixa estanca per a la part superior del campanar, al costa de la caixa estanca Microtik
- S'ha de posar dins la FA de la Microtik sense el POE (connectarem directament la electricitat)
- 3 endolls: La FA del microtik, el PA de Vicen i un extra.
- Cable LAN exteriors o si no en tenim aleshores tubo per protegir el cable.
- Tacos de pared amb brides
- Màquina de fer forats/broca
TODO:
- Preguntar a Vicen si vol aprofitar enllaç WIFI, si no connectar la càmera a la xarxa guifi. Cable LAN
Els elèctrics muntaran
- Caixa estanca de dalt
- Caixa estanca de baix, per a cabre
- SAI: Proporcionat per maninfo
- Magnetos
- Tacos per muntar la caixa a pared
- Brides
La idea és que en pràctiques d'alumnes es munti la caixa i ja la portem muntada.
xarxa
00:0C:42:61:DB:98-->wlan1-->J501-->802.11b-->Canal auto-->Accepta clients-->Sectorial 120º Lanbowan-->TortosaRoserRd1AP1 00:0C:42:61:DC:04-->wlan2-->J502-->802.11b-->Canal auto-->Accepta clients-->Sectorial 120º Lanbowan-->TortosaRoserRd1AP2 00:0C:42:61:DE:10-->wlan3-->J503-->802.11b-->Canal auto-->Accepta clients-->Sectorial 120º Lanbowan-->TortosaRoserRd1AP3 00:0C:42:61:DE:2C-->wlan4-->J504-->802.11a 5Ghz-->Canal 120 5600Mhz-->No clients-->Rajola 5G-->TortosaRoserRd1Ebre
WLAN1/Bridge LAN --> 10.36.253.33 / 255.255.255.224 = 27 WLAN2 --> 10.36.253.193/ 255.255.255.224 = 27 WLAN3 --> 10.36.253.225/ 255.255.255.224 = 27
Enllaç WDS-->Canal 120 5600Mhz BGP TortosaRoserRd1Ebre(00:0C:42:62:6F:77) 172.16.135.5-->Roser(00:0C:42:61:DE:2C) 172.16.135.6
WLAN1: $ ipcalc 10.36.253.33/255.255.255.224 Address: 10.36.253.33 00001010.00100100.11111101.001 00001 Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000 Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111 => Network: 10.36.253.32/27 00001010.00100100.11111101.001 00000 HostMin: 10.36.253.33 00001010.00100100.11111101.001 00001 HostMax: 10.36.253.62 00001010.00100100.11111101.001 11110 Broadcast: 10.36.253.63 00001010.00100100.11111101.001 11111 Hosts/Net: 30 Class A, Private Internet WLAN 2:$ ipcalc 10.36.253.193/27 Address: 10.36.253.193 00001010.00100100.11111101.110 00001 Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000 Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111 => Network: 10.36.253.192/27 00001010.00100100.11111101.110 00000 HostMin: 10.36.253.193 00001010.00100100.11111101.110 00001 HostMax: 10.36.253.222 00001010.00100100.11111101.110 11110 Broadcast: 10.36.253.223 00001010.00100100.11111101.110 11111 Hosts/Net: 30 Class A, Private Internet WLAN 3 $ ipcalc 10.36.253.225/27 Address: 10.36.253.225 00001010.00100100.11111101.111 00001 Netmask: 255.255.255.224 = 27 11111111.11111111.11111111.111 00000 Wildcard: 0.0.0.31 00000000.00000000.00000000.000 11111 => Network: 10.36.253.224/27 00001010.00100100.11111101.111 00000 HostMin: 10.36.253.225 00001010.00100100.11111101.111 00001 HostMax: 10.36.253.254 00001010.00100100.11111101.111 11110 Broadcast: 10.36.253.255 00001010.00100100.11111101.111 11111 Hosts/Net: 30 Class A, Private Internet
Sectorial Lanbowan de 13dBi, 120º hor. 15º vert. Polarització vertical, 3kg, N-Femella,515x180x60 mm:
J501: Connector PCI part superior dreta J502: Connector PCI part inferior dreta J503: Connector PCI part superior esquerra J504: Connector PCI part inferior esquerra
Azimuts:
AP1 --> 300º Cobertura 240º-360º(Nord)-- Ferreries menys zona de la casota. L'antena apunta cap a INS Ebre AP2 --> Direcció sud 180º... Cobertura de a 240 30º-150º --> No Agafa la fira. Cobreix el que no cobreix seminari (sombra de l'Hospital). Antena mirant a TODO
Tots els pigtails estan connectats al connector main.
Connectors per cable:
ether1/PoE --> 00:0C:42:41:A5:47 ether2 --> 00:0C:42:41:A5:48 ether3 --> 00:0C:42:41:A5:49
unsolclic
# Generat per a:
# RouterOSv4.x
:log info "Unsolclic for 19634-TortosaRoserRd1 going to be executed."
#
# Configuration for RouterOS 4.4
# Trasto: 19634-TortosaRoserRd1
#
# ATENCIÓ: Versió Beta
#
# 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.-Fitxer importat:
# Desa aquesta "sortida" a un fitxer, després puja'l al router
# fent servir FTP amb un nom de l'estil "script_name.rsc".
# (note, l'extensió ".rsc" es un requisit)
# Executa el fitxer importat amb la comanda:
# > /import script_name
# 3.-Telnet copia i enganxar:
# Open a terminal session, and cut&paste this output
# directly on the terminal input.
#
# Notes:
# -routing-test package is required, 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=TortosaRoserRd1
#
# DNS (client & server cache) zone: 17893
/ip dns set primary-dns=10.36.253.3 allow-remote-requests=yes
:delay 1
#
# NTP (client & server cache) zone: 17893
/system ntp client set enabled=yes mode=unicast primary-ntp=10.36.253.3
: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="TortosaRoser"
#
# 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 TortosaRoserRd1AP1
/interface wireless set wlan1 name="wlan1" \
radio-name="TortosaRoserRd1AP1" mode=ap-bridge ssid="guifi.net-TortosaRoserRd1AP1" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=13 \
dfs-mode=radar-detect \
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/Lan
/ip address
:foreach i in [find address="10.36.253.33/27"] do={remove $i}
/ ip address add address=10.36.253.33/27 network=10.36.253.32 broadcast=10.36.253.63 interface=wLan/Lan 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.36.253.32/27] do={/routing ospf network remove $i;}
add network=10.36.253.32/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.36.253.39-10.36.253.62
: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.36.253.32/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.36.253.32/27 gateway=10.36.253.33 domain=guifi.net comment=dhcp-wLan/Lan
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
#
: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;}
#
:delay 1
#
# Radio#: 1 TortosaRoserRd1AP2
/interface wireless set wlan2 name="wlan2" \
radio-name="TortosaRoserRd1AP2" mode=ap-bridge ssid="guifi.net-TortosaRoserRd1AP2" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=13 \
dfs-mode=radar-detect \
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.36.253.193/27"] do={remove $i}
/ ip address add address=10.36.253.193/27 network=10.36.253.192 broadcast=10.36.253.223 interface=wlan2 disabled=no
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wlan2] do={/routing ospf interface remove $i;}
add interface=wlan2
/ routing ospf network
:foreach i in [/routing ospf network find network=10.36.253.192/27] do={/routing ospf network remove $i;}
add network=10.36.253.192/27 area=backbone disabled=no
:delay 1
#
# DHCP
:foreach i in [/ip pool find name=dhcp-wlan2] do={/ip pool remove $i;}
/ip pool add name=dhcp-wlan2 ranges=10.36.253.199-10.36.253.222
:foreach i in [/ip dhcp-server find name=dhcp-wlan2] do={/ip dhcp-server remove $i;}
/ip dhcp-server add name=dhcp-wlan2 interface=wlan2 address-pool=dhcp-wlan2 disabled=no
:foreach i in [/ip dhcp-server network find address="10.36.253.192/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.36.253.192/27 gateway=10.36.253.193 domain=guifi.net comment=dhcp-wlan2
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
#
: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 TortosaRoserRd1AP3
/interface wireless set wlan3 name="wlan3" \
radio-name="TortosaRoserRd1AP3" mode=ap-bridge ssid="guifi.net-TortosaRoserRd1AP3" \
band="2.4ghz-b" \
frequency-mode=regulatory-domain country=spain antenna-gain=13 \
dfs-mode=radar-detect \
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: 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 TortosaRoserRd1Ebre
/interface wireless set wlan4 name="wlan4" \
radio-name="TortosaRoserRd1Ebre" mode=ap-bridge ssid="guifi.net-TortosaRoserRd1Ebre" \
band="5ghz" \
frequency-mode=regulatory-domain country=spain antenna-gain=19 \
frequency=5600 \
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.36.253.225/27"] do={remove $i}
/ ip address add address=10.36.253.225/27 network=10.36.253.224 broadcast=10.36.253.255 interface=wlan4 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.36.253.224/27] do={/routing ospf network remove $i;}
add network=10.36.253.224/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.36.253.231-10.36.253.254
: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.36.253.224/27"] do={/ip dhcp-server network remove $i;}
/ip dhcp-server network add address=10.36.253.224/27 gateway=10.36.253.225 domain=guifi.net comment=dhcp-wlan4
/ip dhcp-server lease
:foreach i in [find comment=""] do={remove $i;}
:delay 1
#
: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_TortosaINSEbreRd1" master-interface=wlan4 wds-address=00:0C:42:62:6F:77 disabled=no
/ ip address add address=172.16.135.6/30 network=172.16.135.4 broadcast=172.16.135.7 interface=wds_TortosaINSEbreRd1 disabled=no comment="wds_TortosaINSEbreRd1"
/ routing ospf interface
:foreach i in [/routing ospf interface find interface=wds_TortosaINSEbreRd1] do={/routing ospf interface remove $i;}
add interface=wds_TortosaINSEbreRd1
/ routing ospf network
:foreach i in [/routing ospf network find network=172.16.135.4/30] do={/routing ospf network remove $i;}
add network=172.16.135.4/30 area=backbone disabled=yes
/ routing bgp peer
:foreach i in [find name=TortosaINSEbreRd1] do={/routing bgp peer remove $i;}
add name="TortosaINSEbreRd1" instance=default remote-address=172.16.135.5 remote-as=19633 \
multihop=no route-reflect=no ttl=1 in-filter=ospf-in out-filter=ospf-out disabled=no
#
:delay 1
#
# Routed device
#
# Altres connexions de cable
#
# Internal addresses NAT
:foreach i in [/ip firewall nat find src-address="172.25.0.0/16"] 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.36.253.33 comment="" disabled=no
add chain=srcnat src-address="172.25.0.0/16" dst-address=!172.25.0.0/16 protocol=!ospf action=src-nat to-addresses=10.36.253.33 comment="" disabled=no
#
# Enrutament BGP
# Filtres BGP i OSPF
: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;}
/ routing filter
add chain=ospf-out prefix=10.0.0.0/8 prefix-length=8-32 invert-match=no action=accept comment="" disabled=no
add chain=ospf-out invert-match=no action=discard comment="" disabled=no
add chain=ospf-in prefix=10.0.0.0/8 prefix-length=8-32 invert-match=no action=accept comment="" disabled=no
add chain=ospf-in invert-match=no action=reject comment="" disabled=no
#
# Instància BGP
/ routing bgp instance
set default name="default" as=19634 router-id=10.36.253.33 redistribute-static=yes \
redistribute-connected=yes redistribute-rip=yes redistribute-ospf=yes \
redistribute-other-bgp=yes out-filter=ospf-out \
client-to-client-reflection=yes comment="" disabled=no
#
# Enrutament OSPF
/routing ospf instance set default name=default router-id=10.36.253.33 comment="" disabled=no distribute-default=never redistribute-bgp=as-type-1 redistribute-connected=no redistribute-other-ospf=no redistribute-rip=no redistribute-static=no in-filter=ospf-in out-filter=ospf-out
#
:log info "Unsolclic for 19634-TortosaRoserRd1 executed."
/
Node INS de l'Ebre
Consulteu Guifi.net/TortosaInsEbre
Node Alcanyiz26
Santa Barbara
SBrbCampanar
- guifi.net: http://www.guifi.net/node/25352
Muntatge físic de la caixa:
Notes: Oco al muntar una placa filla. A calgut col·locar "washes" extres arandeles per tal que queden estable la placa filla. Cal tenir en compte que la connexió a terra, cal "enroscar" el tornillo G i per tant cal muntar primer els spacers i un cop posats a la placa de metall cal collar-la a la caixa. Després és lliguen plaques mare i filla a la placa metàl·lica. També hem trobat a faltar més "spacers".
MACS amb fils:
- 00:0C:42:41:A5:3B
- 00:0C:42:41:A5:3C
- 00:0C:42:41:A5:3D
MACS sense fils:
- 00:0C:42:62:51:A7 --> wlan1 ---> SBrbSBrbCmpnrRd1AP1 --> J401
- 00:0C:42:62:51:86 --> wlan2 ---> SBrbSBrbCmpnrRd1AP2 --> J504
- 00:0C:42:62:50:86 --> wlan3 ---> SBrbSBrbCmpnrRd1AP3 --> J502
- 00:0C:42:62:50:87 --> wlan4 ---> SBrbCampanarCentreCultural --> J501
- 00:0C:42:62:51:9B --> wlan5 ---> SBrbCampanarAjuntament ---> J503
Nanostation 5 Centre Cultural:
- 00:15:6D:D8:3D:F8
Compres
Compra landashop desembre 2009
- 1 x Routerboard PowerPC RB600A 128MB Gigabit L4
- 4 x Mikrotik R52 802.11AGB 65/100 mW 108 Mb/s
- 4 x Pigtail 5 GHz. UFL-N Jack Bulkhead 30 cm
- 4 x Cable LMR-400 1m N(M)-N(M)
- 1 x 5 GHz. Directional Panel ELBOXRF 19 dBi Hor./Ver. Pol.
- 3 x 2,4 GHz. Sector Antenna 16 dBi 120º Vertical Pol.
- 1 x NANOSTATION LOCO2 - 2,4 GHz. 8 dBi 100 mW Dual Polarization
- 1 x Outdoor enclosure MIKROTIK OTU. Caixa estanca microtik OTU (ig_outdoor.pdf, Connector estanc RJ-45)
Options
Compra setup INS Ebre desembre 2009
Comprat a:
http://tienda.setupinformatica.com/wac/


