HSWAN VA7STV's Notes: Difference between revisions

From OCARC
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


Test Sector Config
Test Sector Config
<code>
<nowiki>
# based on hamwan sector site configuration
# jan/02/1970 02:04:51 by RouterOS 6.29
# jan/02/1970 02:04:51 by RouterOS 6.29
#
#
## Configure the wireless interface
# Band : 5GHz  Width: 5mhz
/interface wireless
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-onlyn channel-width=5mhz disabled=no \
set [ find default-name=wlan1 ] band=5ghz-onlyn channel-width=5mhz disabled=no \
     frequency=5880 frequency-mode=superchannel ht-rxchains=0,1 ht-txchains=0,1 l2mtu=\
     frequency=5880 frequency-mode=superchannel ht-rxchains=0,1 ht-txchains=0,1 l2mtu=\
     2290 mode=ap-bridge nv2-cell-radius=100 radio-name=K7WAN/ETiger-S3 ssid=HamWAN \
     2290 mode=ap-bridge nv2-cell-radius=100 radio-name=VA7STV/RadioA-S3 ssid=HamWAN \
     tdma-period-size=4 wireless-protocol=nv2
     tdma-period-size=4 wireless-protocol=nv2
/interface vrrp
 
add authentication=ah interface=ether1 name=vrrp1 password=<VRRP-KEY> version=2
## Create our sector channels
/interface wireless channels
/interface wireless channels
add band=5ghz-onlyn comment="Cell sites radiate this at 0 degrees (north)" frequency=\
add band=5ghz-onlyn comment="Cell sites radiate this at 0 degrees (north)" frequency=\
     5920 list=HamWAN name=Sector1-5 width=5
     5920 list=HamWAN name=Sector1-5 width=5
add band=5ghz-onlyn comment="Cell sites radiate this at 120 degrees (south-east)" \
add band=5ghz-onlyn comment="Cell sites radiate this at 120 degrees (south-east)" \
     frequency=5900 list=HamWAN name=Sector2-5 width=5
     frequency=5900 list=HamWAN name=Sector2-5 width=5
add band=5ghz-onlyn comment="Cell sites radiate this at 240 degrees (south-west)" \
add band=5ghz-onlyn comment="Cell sites radiate this at 240 degrees (south-west)" \
     frequency=5880 list=HamWAN name=Sector3-5 width=5
     frequency=5880 list=HamWAN name=Sector3-5 width=5
add band=5ghz-onlyn comment="Cell sites radiate this at 0 degrees (north)" frequency=\
add band=5ghz-onlyn comment="Cell sites radiate this at 0 degrees (north)" frequency=\
     5920 list=HamWAN name=Sector1-10 width=10
     5920 list=HamWAN name=Sector1-10 width=10
add band=5ghz-onlyn comment="Cell sites radiate this at 120 degrees (south-east)" \
add band=5ghz-onlyn comment="Cell sites radiate this at 120 degrees (south-east)" \
     frequency=5900 list=HamWAN name=Sector2-10 width=10
     frequency=5900 list=HamWAN name=Sector2-10 width=10
add band=5ghz-onlyn comment="Cell sites radiate this at 240 degrees (south-west)" \
add band=5ghz-onlyn comment="Cell sites radiate this at 240 degrees (south-west)" \
     frequency=5880 list=HamWAN name=Sector3-10 width=10
     frequency=5880 list=HamWAN name=Sector3-10 width=10
# Setup DHCP Server
/ip pool
/ip pool
add name=pool1 ranges=44.24.241.146-44.24.241.158
add name=pool1 ranges=10.44.0.100-10.0.44.150
/ip dhcp-server
/ip dhcp-server
add address-pool=pool1 disabled=no interface=wlan1 lease-time=1h name=dhcp1
add address-pool=pool1 disabled=no interface=wlan1 lease-time=1h name=dhcp1
/routing ospf instance
 
set [ find default=yes ] distribute-default=if-installed-as-type-1 in-filter=\
## Configure IP Adresses
    AMPR-default out-filter=AMPR-default redistribute-connected=as-type-1 \
add address=192.168.200.20/24 interface=ether1 network=192.168.0
    redistribute-other-ospf=as-type-1 redistribute-static=as-type-1 router-id=\
add address=10.44.0.20/24 interface=wlan1 network=10.44.0.0
    44.24.241.134
 
/snmp community
#/ip dhcp-server network
set [ find default=yes ] addresses=44.24.240.0/20 name=hamwan
#add address=44.24.241.144/28 dns-server=44.24.244.1,44.24.245.1 domain=HamWAN.net \
/system logging action
#    gateway=44.24.241.145 netmask=28 ntp-server=44.24.244.4,44.24.245.4
set 3 remote=44.24.255.4
 
/ip settings
## Setup SSH
set send-redirects=no
/ip address
add address=44.24.241.134/28 interface=ether1 network=44.24.241.128
add address=44.24.241.145/28 interface=wlan1 network=44.24.241.144
add address=44.24.241.142 interface=vrrp1 network=44.24.241.142
/ip dhcp-server network
add address=44.24.241.144/28 dns-server=44.24.244.1,44.24.245.1 domain=HamWAN.net \
    gateway=44.24.241.145 netmask=28 ntp-server=44.24.244.4,44.24.245.4
/ip firewall mangle
add action=change-mss chain=output new-mss=1378 protocol=tcp tcp-flags=syn tcp-mss=!0-1378
add action=change-mss chain=forward new-mss=1378 protocol=tcp tcp-flags=syn tcp-mss=!0-1378
/ip service
/ip service
set ssh port=222
set ssh port=222
/routing filter
 
add action=accept chain=HamWAN prefix=44.24.240.0/20 prefix-length=20-32
## Setup System Clock
add action=reject chain=HamWAN
add action=accept chain=HamWAN-default prefix=44.24.240.0/20 prefix-length=20-32
add action=accept chain=HamWAN-default prefix=0.0.0.0/0
add action=reject chain=HamWAN-default
add action=accept chain=AMPR-default prefix=44.0.0.0/8 prefix-length=8-32
add action=accept chain=AMPR-default prefix=0.0.0.0/0
add action=reject chain=AMPR-default
add action=accept chain=AMPR prefix=44.0.0.0/8 prefix-length=8-32
add action=reject chain=AMPR
/routing ospf interface
add authentication=md5 authentication-key=<OSPF-KEY> interface=ether1 network-type=broadcast
/routing ospf network
add area=backbone network=44.24.241.128/28
/snmp
set contact="#HamWAN on irc.freenode.org" enabled=yes
/system clock
/system clock
set time-zone-autodetect=no time-zone-name=GMT
set time-zone-autodetect=no time-zone-name=GMT
## Set Radio Identity
/system identity
/system identity
set name=ETiger-S3
set name=RadioA-S3
/system logging
 
add action=remote topics=!debug,!snmp
</nowiki>
/system ntp client
set enabled=yes primary-ntp=44.24.244.4 secondary-ntp=44.24.245.4
</code>

Latest revision as of 20:07, 18 February 2017

This page notes and serves as a record of my own experiments and configurations


Test Sector Config

# based on hamwan sector site configuration
# jan/02/1970 02:04:51 by RouterOS 6.29
#

## Configure the wireless interface
 # Band : 5GHz   Width: 5mhz
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-onlyn channel-width=5mhz disabled=no \
    frequency=5880 frequency-mode=superchannel ht-rxchains=0,1 ht-txchains=0,1 l2mtu=\
    2290 mode=ap-bridge nv2-cell-radius=100 radio-name=VA7STV/RadioA-S3 ssid=HamWAN \
    tdma-period-size=4 wireless-protocol=nv2

## Create our sector channels
/interface wireless channels
add band=5ghz-onlyn comment="Cell sites radiate this at 0 degrees (north)" frequency=\
    5920 list=HamWAN name=Sector1-5 width=5

add band=5ghz-onlyn comment="Cell sites radiate this at 120 degrees (south-east)" \
    frequency=5900 list=HamWAN name=Sector2-5 width=5

add band=5ghz-onlyn comment="Cell sites radiate this at 240 degrees (south-west)" \
    frequency=5880 list=HamWAN name=Sector3-5 width=5

add band=5ghz-onlyn comment="Cell sites radiate this at 0 degrees (north)" frequency=\
    5920 list=HamWAN name=Sector1-10 width=10

add band=5ghz-onlyn comment="Cell sites radiate this at 120 degrees (south-east)" \
    frequency=5900 list=HamWAN name=Sector2-10 width=10

add band=5ghz-onlyn comment="Cell sites radiate this at 240 degrees (south-west)" \
    frequency=5880 list=HamWAN name=Sector3-10 width=10

# Setup DHCP Server
/ip pool
add name=pool1 ranges=10.44.0.100-10.0.44.150
/ip dhcp-server
add address-pool=pool1 disabled=no interface=wlan1 lease-time=1h name=dhcp1

## Configure IP Adresses
add address=192.168.200.20/24 interface=ether1 network=192.168.0
add address=10.44.0.20/24 interface=wlan1 network=10.44.0.0

#/ip dhcp-server network
#add address=44.24.241.144/28 dns-server=44.24.244.1,44.24.245.1 domain=HamWAN.net \
#    gateway=44.24.241.145 netmask=28 ntp-server=44.24.244.4,44.24.245.4

## Setup SSH
/ip service
set ssh port=222

## Setup System Clock
/system clock
set time-zone-autodetect=no time-zone-name=GMT

## Set Radio Identity
/system identity
set name=RadioA-S3