cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
354
Views
10
Helpful
4
Replies

DHCP for IP Phones and PCs

startryst
Level 1
Level 1

IP Phones: 10.0.0.0/24

PCs: 192.168.1.0/24

How to implement DHCP for this scenario?

IP Phones and PCs should obtain their ip address from DHCP server.

Topology:

PC<---->IP Phone<--(dot1q)-->Catalyst 3524 PWR<---->Cisco 2811 Router

I prefer to use 2811 act as the DHCP server

Thanks

4 Replies 4

thisisshanky
Level 11
Level 11

Create two vlans, one for PC, one for phones.

On the switch ports conected to phones, configure this.

int fa0/1

switchport mode trunk

switchport trunk encap dot1q

switchport trunk native vlan 2

switchport voice vlan 3

On the port that connects between 2811 and 3524

int fa0/24

switchport mode trunk

switchport trunk encap dot1q

switchport trunk allowed vlan 2,3

switchport trunk native vlan 2

On the router side

int fa0/1

no ip add

int fa0/1.10

ip add x,x,x,1 Mask

encapsulation dot1q 2 native

int fa0/1.20

ip add y.y.y.1 Mask

encapsulation dot1q 3

ip dhcp pool PC

network x.x.x.0/24

default-router x.x.x.1

lease 3

dns <>

ip dhcp pool Phone

network y.y.y.0/24

default-router y.y.y.1

lease 3

option 150 ip

dns <>

Hope that helps!

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Thanks, I knew the method of using subinterface on 2811 before.

I just want to know is there other method to accomplish this?

Thanks

You could have a router with two interfaces, or if you had a layer 3 routing capable switch (which the 3524 isn't) then you could set up VLAN interfaces on that...

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

The switch is Catalyst 3550-24-PWR which is layer 3 routing capable switch