AMU/IP Telefoni Haderslev Kaserne/SIP Setup/Voice VLAN
From Teknologisk videncenter
Contents
Oprettelse af VLAN
Før et vlan kan bruges på en switch skal den oprettes først. VLAN 1 findes i forvejen og behøver derfor ikke at blive oprettet.
Switch><input>en</input>
Password:
Switch#<input>configure terminal</input>
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#<input>vlan 200</input>
Switch(config-vlan)#<input>name Voice-VLAN</input>
Switch(config-vlan)#<input>exit</input>
Switch(config)#<input>end</input>
Switch#<input>show vlan brief</input>
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gi0/1, Gi0/2
<notice>200 Voice-VLAN active Fa0/1</notice>
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
Switch#
Konfigurere Voice port
Her konfigureres porten med Access VLAN 1 og VLAN 200 Voice.
Switch#<input>configure terminal</input>
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#<input>interface fastethernet 0/1</input>
Switch(config-if)#<input>switchport mode access</input>
Switch(config-if)#<input>switchport access vlan 1</input>
Switch(config-if)#<input>switchport voice vlan 200</input>
Switch(config-if)#<input>end</input>
Switch#<input>show interface fastethernet 0/1 switchport</input>
Name: Fa0/1
Switchport: Enabled
Administrative Mode: <notice>static access</notice>
Operational Mode: <notice>static access</notice>
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: <notice>1 (default)</notice>
Trunking Native Mode VLAN: <notice>1 (default)</notice>
Administrative Native VLAN tagging: enabled
Voice VLAN: <notice>200 (Voice-VLAN)</notice>
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
Switch#
Konfiguration af Access Port
Porten hvor IPPBX'en er forbundet skal være statisk konfigureret til access port med access i VLAN 200.
Switch#<input>conf t</input>
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#<input>int fa 0/1</input>
Switch(config-if)#<input>swi mode acc</input>
Switch(config-if)#<input>swi acc vlan 200</input>
Switch(config-if)#<input>end</input>
Switch#
Konfiguration af Management IP
Giv jeres Switch en IP addresse på 192.168.139.0/24 nettet, med ip .11 for gruppe 1, .12 for gruppe 2 osv.
interface Vlan1
ip address 192.168.139.11 255.255.255.0
!
ip default-gateway 192.168.139.1
ip name-server 172.16.4.66
Kan du nu pinge Switchen fra din computer?
Kan du telnette til den?
- Konfigurer nu telnet adgang til switchen, ligesom vi lærte i sidste uge.