Ubiquity
Ubiquiti Inc. is an American technology company founded in San Jose, California, in 2003. Now based in New York City, Ubiquiti manufactures and sells wireless data communication and wired products for enterprises and homes under multiple brand names.
Edge Switches
Configuration dump with VLANs, LACP and LLDP.
!Current Configuration:
!
!System Description "EdgeSwitch 48-Port 750W, 1.9.0, Linux 3.6.5-03329b4a, 1.2.0.5192732"
!System Software Version "1.9.0"
!System Up Time "108 days 12 hrs 58 mins 8 secs"
!Additional Packages QOS,IPv6 Management,Routing
!Current SNTP Synchronized Time: Aug 16 09:26:40 2020 UTC
!
hostname "al-brn-sw251"
network protocol none
network parms 10.0.255.251 255.255.255.0 10.0.255.1
network ipv6 address fd10:0:255::251/64
network ipv6 gateway fd10:0:255::1
vlan database
vlan 99,110,255,804
vlan name 99 "GUEST"
vlan name 110 "CYGNUS"
vlan name 255 "SERVICE"
vlan name 804 "CCTV"
exit
network mgmt_vlan 255
sshcon timeout 10
configure
sntp server "111.1.1.2"
sntp server "112.1.1.2"
clock timezone 1 minutes 0 zone "CET"
logging buffered 5
logging host "10.0.0.52" ipv4 514 info
logging syslog
username "lichnak" password c7ce02783e009c592606caa1aca5ae000eb59293976b0d4f53df98f558ef712ec5ff2b07e6b7ab000e7fb3e4231353567cee3dab08be42fbc33a008f375800db level 15 encrypted
no username "ubnt"
aaa authorization exec "dfltExecAuthList" local
line console
exit
line telnet
exit
line ssh
exit
spanning-tree mode rstp
interface 0/41
addport 3/1
exit
interface 0/42
addport 3/1
exit
interface 0/43
addport 3/1
exit
interface 0/44
addport 3/1
exit
snmp-server sysname "al-brn-sw251"
snmp-server location "Brno Kounicova"
snmp-server contact "noc@hotmail.com"
!
snmp-server community "asdaoiasdkaalasd" rw
no snmp-server community "public"
interface 0/1
description 'al-brn-cam08'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/2
description 'al-brn-cam03'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/3
description 'al-brn-cam05'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/4
description 'al-brn-cam04'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/5
description 'al-brn-cam01'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/6
description 'al-brn-cam06'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/7
description 'al-brn-cam02'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/8
description 'al-brn-cam07'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/9
description 'al-brn-cam09'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
switchport access vlan 804
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/10
description 'Kamera Hlavni dvere'
spanning-tree edgeport
spanning-tree guard loop
no spanning-tree port mode
switchport mode access
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/11
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/12
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/13
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/14
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/15
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/16
description 'VoIP_FXS_01'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/17
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/18
description 'Vculkova'
switchport mode access
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/19
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/20
description 'al-brn-wks015'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/21
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/22
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/23
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/24
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/25
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/26
description 'al-brn-ntb001'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/27
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/28
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/29
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/30
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/31
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/32
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/33
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/34
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/35
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/36
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/37
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/38
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/39
description 'MGMN-VLAN255'
switchport mode access
switchport access vlan 255
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/40
description 'GUEST-VLAN99'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/41
description 'LACP al-brn-sw252'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/42
description 'LACP al-brn-sw252'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/43
description 'LACP al-brn-sw252'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/44
description 'LACP al-brn-sw252'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/45
description 'REZERVA'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/46
description 'REZERVA'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/47
description 'REZERVA'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/48
description 'REZERVA'
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
lldp transmit-tlv power-mdi
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/49
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/50
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/51
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface 0/52
lldp transmit-tlv port-desc
lldp transmit-tlv sys-name
lldp transmit-tlv sys-desc
lldp transmit-tlv sys-cap
no lldp med transmit-tlv capabilities
no lldp med transmit-tlv network-policy
no lldp med transmit-tlv inventory
exit
interface lag 1
description 'LACP al-brn-sw252'
switchport mode trunk
switchport trunk allowed vlan 1,99,110,255,804
exit
logging syslog source-interface network
exit
Unifi Controller
https://github.com/SmokingCrop/UniFi/blob/master/install-unifi-pihole-English.sh
#! /bin/bash
Colour='\033[1;31m'
less='\033[0m'
echo -e "${Colour}By using this script, you'll update the system, install the stable UniFi controller of your choice and install Pi-hole.\nUse CTRL+C to cancel the script\n\n${less}"
read -p "Please enter a STABLE version (e.g: 7.1.66) or press enter for version 7.2.94: " version
if [[ -z "$version" ]]; then
version='7.2.94'
fi
echo -e "${Colour}\n\nAdding the Raspbian Stretch sources.list for MongoDB compatability.\n\n${less}"
echo 'deb http://archive.raspbian.org/raspbian stretch main contrib non-free rpi' | sudo tee /etc/apt/sources.list.d/raspbian_stretch_for_mongodb.list
echo -e "${Colour}\n\nThe system will now upgrade all the software and firmware, as well as clean up old/unused packages.\n\n${less}"
sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt-get autoclean -y
echo -e "${Colour}\n\nThe UniFi controller with version $version is downloading now.\n\n${less}"
wget https://dl.ui.com/unifi/$version/unifi_sysvinit_all.deb -O unifi_$version\_sysvinit_all.deb
echo -e "${Colour}\n\nBefore installing the UniFi Controller, it will first install OpenJDK 8 (Java), jsvc and libcommons-daemon-java which are required to install the UniFi controller.\n\n${less}"
sudo apt install openjdk-8-jre-headless jsvc libcommons-daemon-java -y
echo -e "${Colour}\n\nMongoDB will now be installed as it's a dependency of UniFi.\n\n${less}"
sudo apt install mongodb-server mongodb-clients -y
echo -e "${Colour}\n\nThe UniFi controller will be installed now.\n\n${less}"
sudo dpkg -i unifi_$version\_sysvinit_all.deb; sudo apt install -f -y
if [[ -z "$1" ]] ; then
echo -e "${Colour}\n\nPi-hole will be installed now.\nThe initial configuration is interactive.\n\n${less}"
curl -sSL https://install.pi-hole.net | bash
echo -e "${Colour}\n\nOne more step is changing the password for the web interface of the Pi-hole.\n\n${less}"
pihole -a -p
fi
echo -e "${Colour}\n\nTo finish the installation, a reboot is required. Starting a reboot in 3 seconds.\n\n${less}"
sleep 3
echo -e "${Colour}\nRestarting the Raspberry Pi now.\n${less}"
sudo reboot now
Unifi Access Points
https://registry.terraform.io/providers/paultyng/unifi/latest/docs
provider "unifi" {
username = var.username # optionally use UNIFI_USERNAME env var
password = var.password # optionally use UNIFI_PASSWORD env var
api_url = var.api_url # optionally use UNIFI_API env var
# you may need to allow insecure TLS communications unless you have configured
# certificates for your controller
allow_insecure = var.insecure # optionally use UNIFI_INSECURE env var
# if you are not configuring the default site, you can change the site
# site = "foo" or optionally use UNIFI_SITE env var
}
Unifi Switches
TBD