05-04-2005 06:21 PM - edited 03-15-2019 03:27 AM
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
05-04-2005 08:09 PM
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!
05-04-2005 09:18 PM
Thanks, I knew the method of using subinterface on 2811 before.
I just want to know is there other method to accomplish this?
Thanks
05-05-2005 07:14 AM
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...
05-05-2005 08:23 PM
The switch is Catalyst 3550-24-PWR which is layer 3 routing capable switch
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