10-10-2011 07:16 AM - edited 03-07-2019 02:42 AM
Hi I have Cisco 3560 switch.
Broadband
| ADSL (192.168.1.x)
| |
| |
- - - - - 3660 - - - - -
|
|
LAN (10.1.1.x) - - - -PHONE-----PC1
3600 has two WAN connections. Generally all LAN clients access Internet via Broadband. All clients gets 10.1.1.x ip address. There is one PC who is connected to Phone and Phone is connected to the Switch.
Is there anyway I can configure switch so that Phone will get 10.1.1.x ip and PC will get ip from ADSL.
VLAN 100 (LAN 10.1.1.x)
VLAN 200 (ADSL 192.168.1.x)
Phone is connected to port 8 of the switch.
10-10-2011 08:07 AM
It depends on the phone and the router/switch.
If the phone supports vlan tagging and the router & switch support trunking, you can create a voice vlan and a data vlan.
I've never worked with a 3660 router, but the 3560 supports vlan trunking.
Try this configuration on your switch interface to the phone.
switchport mode access
switchport access vlan 10 <-- that's your data vlan
switchport voice vlan 20 <-- that's your voice vlan
The rest of your switch port config should be fine (duplex/speed/etc).
See if it works.
ven
10-10-2011 01:41 PM
Hi,
the device providing DHCP service to your LAN devices ( PCs and phones ) must be either the 3660 router or a windows/linux server in your LAN not the ISP.
You can can and should put them into different vlans(subnets) though but by configuring 2 scopes.
Regards.
Alain.
10-10-2011 11:58 PM
@Ven Taylor
Typing error - my switch is 3560. Phone handset does support vlan tagging.
if psbl, could you roughly paste the configuration please.
@cadet alain
DHCP server is Windws 2003.
Phone & PC is connected to the single ethernet wall port. i.e. Phone is connected to the wall port and PC is connected to the Phone.
thanks to both of you.
10-11-2011 12:25 AM
Hi,
The voice vlan config is the same for 3560 like Ven posted.
You'll have to create L3 interfaces for each VLAN : interface vlan x- ip address and then under the voice L3 interface configure ip helper-address x.x.x.x where x.x.x.x is unicat address of dhcp server in the data vlan.You'll also have to put a static route towards the voice vlan subnet in your dhcp server.
Regards.
Alain.
10-11-2011 05:38 AM
Bickyz:
Try this.
interface vlan10
description Lan 10.1.1.0/24
ip address 10.1.1.0 255.255.255.0
no shut
!
interface vlan20
description Voice 192.168.1.0/24
ip address 192.168.1.0 255.255.255.0
no shut
!
!
vlan 10
name Lan_subnet
!
vlan 20
name Voice_subnet
!
!
interfaceX/X
description Phone-PC1
switchport
switchport mode access
switchport access vlan 10
switchport voice vlan 20
speed auto
duplex auto
no shut
!
I didn't add any routing information because I don't know how you're routing. Just make sure your subnets can see one another.
You also need to consider what Alain said. Routers, by design, will supress broadcasts.
If your dhcp server is on a different subnet than your lan or voice, you'll need to add a helper-address to forward the dhcp requests to the server. Syntax looks like this:
interface vlan10
description Lan 10.1.1.0/24
ip address 10.1.1.0 255.255.255.0
ip helper-address x.x.x.x <--- make this the ip of your dhcp server
no shut
!
interface vlan20
description Voice 192.168.1.0/24
ip address 192.168.1.0 255.255.255.0
ip helper-address x.x.x.x <--- make this the ip of your dhcp server
no shut
Lastly, if your phone uses special dhcp options (usually option 150 for tftp), you'll need to have them configured in your scopes.
Hope this helps.
Ven
10-11-2011 06:11 AM
thanks Ven, I will try it.
10-11-2011 06:15 AM
Hi,
don't forget to add ip routing command to route between the subnets.
Alain
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