"Show runing-config"
Код: Выделить всё
vlan database
vlan 4-5
exit
!
voice vlan aging-timeout 600
voice vlan oui-table add 002618
voice vlan id 5
voice vlan state oui-enabled
voice vlan cos 5
!
no lldp med network-policy voice auto
!
hostname eltex
!
aaa authentication enable default line
aaa authentication enable log line
aaa authentication login default line
aaa authentication login log line
username log password encrypted 16cc54fff246b441f70de548a07315312e912e1b privilege 15
line console
password e2346381bb8eb382eb8b3877a9d3838996c5ca2d encrypted
exit
!
!
line ssh
password 16cc54fff246b441f70de548a07315312e912e1b encrypted
exit
!
!
ip ssh server
!
!
!
clock timezone " " 5
!
interface gigabitethernet 1/0/1
switchport mode trunk
switchport trunk allowed vlan add 4
exit
!
interface gigabitethernet 1/0/2
switchport access vlan 4
exit
!
interface gigabitethernet 1/0/3
switchport mode general
switchport general allowed vlan add 5 tagged
switchport general allowed vlan add 4 untagged
description Users_and_IpPhones_with_LLDP-MED
lldp med enable network-policy
lldp med network-policy add 1
exit
!
interface gigabitethernet 1/0/8
switchport mode general
switchport general allowed vlan add 4 untagged
lldp med enable network-policy
lldp med network-policy add 1
voice vlan enable
exit
!
interface vlan 1
no ip address dhcp
exit
!
interface vlan 4
name Information
ip address dhcp
exit
!
interface vlan 5
name Voice
exit
"Show vlan"
Код: Выделить всё
Vlan Name Tagged ports Untagged ports Type Authorization
---- --------------------------- --------------------------- --------------------------- ------------ -------------
1 - - gi1/0/1,gi1/0/3-28,Po1-8 Default Required
4 Information gi1/0/1 gi1/0/2-3,gi1/0/8 permanent Required
5 Voice gi1/0/3 - permanent Required