User Tools

Site Tools


unifi_network:cli_2
//////////////////////////////

# telnet localhost

User>  ubnt  /   password> ubnt

Entering character mode
Escape character is '^]'.

Warning!
The changes may break controller settings and only be effective until reboot.

(UBNT) >enable

(UBNT) #


//////////////////////

comandos de apoyo>

#show running-config interface 0/3

#show running-config 

//////////////////////

(UBNT) #configure

(UBNT) (Config)#interface 0/3

(UBNT) (Interface 0/3)#vlan pvid 1000

/////////////////////

ssh 192.168.1.20

telnet localhost

enable ?! not sure now

network protocol none

VLAN 150 - 192.168.50.0/24 , your settings may vary

network parms 192.168.50.102 255.255.255.0 192.168.50.100

vlan database

vlan 150,248 150 - mgmt VLAN , 248 - data

exit

configure

In our case 0/10 is the fiber UPlink SFP port , where two tagged VLANs are present 150,248

interface 0/10

switchport trunk allowed vlan 150,248

switchport mode trunk

exit

Once you hit enter you lose connection to the switch if you are directly connected to any of its ports , with 192.168.1.X subnet

network mgmt_vlan 150

Now you should be able to ping the switch from VLAN 150

If you can ping the switch from VLAN 150. SSH into it again from VLAN 150 and send the inform cmd.

set-inform http://ip-controller:8080/inform

or

set-inform <ip-controller>

Adopt the switch and do the rest from the controller.

/////////////////////////////

(UBNT) #network parms 172.16.4.5 255.255.254.0 172.16.4.1
(UBNT) #network mgmt_vlan 1

////////////////////////////

network parms 172.16.4.5 255.255.254.0 172.16.4.1
network mgmt_vlan 1

(UBNT) #show network


////////////////////////////
(UBNT) #configure
(UBNT) (Config)#
////////////////////////////

Configuracion de la VLAN de voz

(UBNT) (Config)#auto-voip vlan 518

////////////////////////////

linea de apoyo visualizacion puerto

#show running-config interface 0/48


////////////////////////////

copy system:running-config nvram:startup-config

////////////////////////////


interface 0/1
description 'Port 1'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512


interface 0/2
description 'Port 2'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/3
description 'Port 3'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/4
description 'Port 4'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/5
description 'Port 5'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/6
description 'Port 6'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/7
description 'Port 7'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/8
description 'Port 8'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/9
description 'Port 9'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/10
description 'Port 10'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/11
description 'Port 11'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/12
description 'Port 12'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/13
description 'Port 13'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/14
description 'Port 14'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/15
description 'Port 15'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/16
description 'Port 16'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/17
description 'Port 17'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/18
description 'Port 18'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/19
description 'Port 19'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/20
description 'Port 20'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/21
description 'Port 21'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/22
description 'Port 22'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/23
description 'Port 23'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/24
description 'Port 24'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/25
description 'Port 25'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/26
description 'Port 26'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/27
description 'Port 27'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/28
description 'Port 28'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/29
description 'Port 29'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/30
description 'Port 30'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/31
description 'Port 31'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/32
description 'Port 32'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/33
description 'Port 33'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/34
description 'Port 34'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/35
description 'Port 35'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512

interface 0/36
description 'Port 36'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
vlan pvid 512
vlan participation include 512



interface 0/37
description 'Port 37'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524




interface 0/38
description 'Port 38'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524



interface 0/39
description 'Port 39'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/40
description 'Port 40'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/41
description 'Port 41'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/42
description 'Port 42'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/43
description 'Port 43'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/44
description 'Port 44'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/45
description 'Port 45'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/46
description 'Port 46'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/47
description 'Port 47'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 511
switchport trunk allowed vlan 500-524

interface 0/48
description 'Port 48'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,500-524




interface 0/49
description 'Port 49'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,500-524

interface 0/50
description 'Port 50'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,500-524

interface 0/51
description 'Port 51'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,500-524

interface 0/52
description 'Port 52'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,500-524


///////////////////

PARA DEJAR EL NATIVE VLAN 1 SE REQUIERE DEJARLO PASAR

interface 0/48
description 'Port 48'
poe opmode auto
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan 1
switchport trunk allowed vlan 1,500-524

///////////////////

(UBNT) #write memory

This operation may take a few minutes.
Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Config file 'startup-config' created successfully .


Configuration Saved!

///////////////////


general config:
auto-voip vlan 10
auto-voip oui 00:08:5D oui-desc “Aastra”
auto-voip oui 00:04:F2 oui-desc “Polycom”

as well as interfaces:
interface 0/1-0/X
voice vlan dot1p 0
auto-voip oui-based
switchport mode trunk
switchport trunk native vlan Y
switchport trunk allowed vlan 2-4093
vlan ingressfilter
vlan participation exclude 1
vlan participation include X-XX,X
vlan tagging X-XX,X
vlan priority 3
port-security max-dynamic 3

/////////////////////

How do I remove these lines from a switch interface configuration?

vlan participation include XXX

or 

vlan participation exclude XXX

Answer>

 vlan participation auto 2-4093
 vlan participation include 1

////////////////////
unifi_network/cli_2.txt · Last modified: 2023/07/27 12:36 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki