01-31-2020 11:49 PM
It is normally set in voice vlan 1, but not in such as vlan 10 or vlan 20
Help me
Switch
Switch#show run
Building configuration...
Current configuration : 1350 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
enable password cisco
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
!
interface FastEthernet0/3
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
!
interface FastEthernet0/4
switchport voice vlan 40
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end
Router
v4R3#show run
Building configuration...
Current configuration : 3869 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname v4R3
!
!
!
enable password cisco
!
!
ip dhcp excluded-address 192.168.1.101 192.168.1.255
ip dhcp excluded-address 192.168.1.0 192.168.1.49
ip dhcp excluded-address 172.16.3.0 172.16.3.49
ip dhcp excluded-address 172.16.3.101 172.16.3.255
ip dhcp excluded-address 172.16.4.0 172.16.4.49
ip dhcp excluded-address 172.16.4.101 172.16.4.255
ip dhcp excluded-address 172.16.5.0 172.16.5.49
ip dhcp excluded-address 172.16.5.101 172.16.5.255
!
ip dhcp pool DHCP-vlan30
network 172.16.3.0 255.255.255.0
default-router 172.16.3.1
option 150 ip 172.16.3.1
ip dhcp pool DHCP-vlan40
network 172.16.4.0 255.255.255.0
default-router 172.16.4.1
option 150 ip 172.16.3.1
ip dhcp pool DHCP-vlan50
network 172.16.5.0 255.255.255.0
default-router 172.16.5.1
option 150 ip 172.16.3.1
ip dhcp pool DHCP-vlan20
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
option 150 ip 192.168.1.1
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524FST9
license boot module c2900 technology-package securityk9
license boot module c2900 technology-package uck9
!
!
!
crypto isakmp policy 10
encr 3des
authentication pre-share
group 2
!
crypto isakmp policy 20
encr 3des
authentication pre-share
group 2
!
crypto isakmp key cisco address 0.0.0.0 0.0.0.0
!
!
!
crypto ipsec transform-set TS esp-3des esp-sha-hmac
crypto ipsec transform-set ST esp-3des esp-sha-hmac
!
crypto map Gmap 10 ipsec-isakmp
set peer 10.3.3.1
set transform-set TS
match address gre
!
crypto map Gmap 20 ipsec-isakmp
set peer 10.2.2.1
set transform-set ST
match address ipsec
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Tunnel0
ip address 10.0.2.2 255.255.255.0
mtu 1476
tunnel source GigabitEthernet0/0
tunnel destination 10.3.3.1
!
!
interface Tunnel1
ip address 10.0.1.1 255.255.255.0
mtu 1476
tunnel source GigabitEthernet0/0
tunnel destination 10.2.2.1
!
!
interface GigabitEthernet0/0
ip address 10.4.4.1 255.255.255.0
duplex auto
speed auto
crypto map Gmap
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 172.16.3.1 255.255.255.0
!
interface GigabitEthernet0/1.40
encapsulation dot1Q 40
ip address 172.16.4.1 255.255.255.0
!
interface GigabitEthernet0/1.50
encapsulation dot1Q 50
ip address 172.16.5.1 255.255.255.0
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/3/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/3/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 10.1.1.0 255.255.255.0 10.4.4.2
ip route 10.2.2.0 255.255.255.0 10.4.4.2
ip route 10.3.3.0 255.255.255.0 10.4.4.2
ip route 218.159.40.0 255.255.255.0 10.1.1.1
ip route 192.168.1.0 255.255.255.0 10.0.2.1
ip route 192.168.2.0 255.255.255.0 10.0.2.1
ip route 192.168.0.0 255.255.255.0 10.0.1.2
!
ip flow-export version 9
!
!
ip access-list extended gre
permit gre host 10.4.4.1 host 10.3.3.1
ip access-list extended ipsec
permit gre host 10.4.4.1 host 10.2.2.1
!
no cdp run
!
!
!
!
!
!
dial-peer voice 2001 voip
destination-pattern 2001
session target ipv4:192.168.1.1
!
telephony-service
max-ephones 3
max-dn 3
ip source-address 172.16.3.1 port 2000
auto assign 1 to 3
!
ephone-dn 1
number 1001
!
ephone-dn 2
number 1002
!
ephone-dn 3
number 1003
!
ephone 1
device-security-mode none
mac-address 000C.85AA.0214
type 7960
button 1:1
!
ephone 2
device-security-mode none
mac-address 0001.64CA.D009
type 7960
button 1:2
!
ephone 3
device-security-mode none
mac-address 0060.47EC.9AA6
type 7960
button 1:3
!
line con 0
login
!
line aux 0
!
line vty 0 4
login
!
!
!
end
I don't know why it only works in voice vlan 1.
Solved! Go to Solution.
02-01-2020 04:42 AM
Hi,
I did not find any configuration in the switch related to Vlan 20 or 30. Can you share the configuration of the port in the switch where you connected the Phone ? If you connect the phone to switch with blank config, it is going to take VLAN 1. By default all the switch interfaces are trunk interfaces with native vlan of 1 so your Phone will take native Vlan 1.
Just for recap, below is required on the switchport where phone is connected:
int gi0/x
switchport mode access
switchport access vlan xx
switchport voice vlan 20
!
! where xx is the Data vlan, it is required if you will connect your PC behind the Phone.
s
02-01-2020 05:24 PM
The reason why it worked.now.because previously you didn't define switchport mode access.
Also, it takes time to get rid of old ip address and get new from different vlan.
02-01-2020 04:42 AM
Hi,
I did not find any configuration in the switch related to Vlan 20 or 30. Can you share the configuration of the port in the switch where you connected the Phone ? If you connect the phone to switch with blank config, it is going to take VLAN 1. By default all the switch interfaces are trunk interfaces with native vlan of 1 so your Phone will take native Vlan 1.
Just for recap, below is required on the switchport where phone is connected:
int gi0/x
switchport mode access
switchport access vlan xx
switchport voice vlan 20
!
! where xx is the Data vlan, it is required if you will connect your PC behind the Phone.
s
02-01-2020 06:55 AM - edited 02-01-2020 07:02 AM
thank you for reply my elementary question,
i'm sorry there's no pc behind ip phone, so i configured it like below in SCSW2 at first time.
interface f 0/4
sw voice vlan 40
And as per advice, this is the setting I just tried.
int f0/4
sw mode ac
sw ac vlan 40
sw voice vlan 40
but it's same as first time. it doesnt work.
ip phone gui just show "configuring ip" even though i setting dhcp server in router v4R3
my dhcp config
ip dhcp server dhcp
network 172.16.4.0 255.255.255.0
default 172.16.4.1
option 150 ip 172.16.4.1
ip dhcp excluded-address 172.16.4.1
topolgy
02-01-2020 03:32 PM
Hi,
Can you check with VLAN 40 is created on SW2 by checking show vlan brief, if not then create one using "vlan 40" command.
Further, can you check on the IP Phone whether it is getting IP Address or no ? try to release the old IP which it already have. Connect your Laptop also to the Phone to see whether you are getting IP from VLAN 40..
02-01-2020 05:12 PM - edited 02-01-2020 05:15 PM
Even though check vlan, didn't work..i don't know what is the problem cleary, but i retry again slowly then it work. i guess it was just my mistake or packet tracer error. Thank you.
02-01-2020 05:24 PM
The reason why it worked.now.because previously you didn't define switchport mode access.
Also, it takes time to get rid of old ip address and get new from different vlan.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide