Jump to content

Recommended Posts

Posted

Currently in the process of carrying out a simple VLAN'ing task by separating a small businesses IP phones away from their main network. They currently have a Draytek 2862 router, 2 x TP-Link T1600G-52TS, Cisco 7800 series IP phones and a server running Server 2012 R2 that supplies DHCP to the entire site. The topology is simple and looks like this;

Server + IP Phones <----> TP-Link SW1 <----> TP-Link SW2 <----> Router

Main network has an IP address scheme of 10.13.166.0/24 that is by default VLAN1 and I want to create a 10.13.170.0/24 network set as VLAN50 for the IP phones. Idea was to create a separate scope within DHCP, use the Draytek for L3 routing and gateway for both VLANs , trunk the switch ports that carry the link with the appropriate VLAN IDs, then set whatever ports the IP phones are connected to the correct VLAN. I thought this would be quite simple but I just can't get it to work. This is what I have done so far:

DHCP

  • Created scope for VLAN50 labelled Voice with a scope of 10.13.170.0/24
  • Enabled distribution from .10 - .254
  • DHCP options - router set as 10.13.170.1. DNS as 10.13.166.12, this is the server IP. Secondary as 8.8.8.8

Draytek

 

  • Enabled VLANs. Created LAN2 with a gateway IP of 10.13.170.1 and subnet 255.255.255.0. LAN1 is already created with gateway IP of 10.13.166.1 and subnet 255.255.255.0
  • Enabled DHCP relay on LAN2 to point to the DHCP server on 10.13.166.12 residing on LAN1. Also done this for DNS with a secondary as 8.8.8.8
  • Enabled InterVLAN Routing so that IP phones in VLAN50 can communicate with DHCP and DNS in VLAN1.
  • Routes have been created for both LANs, verified in routing table
  • Set VLAN0 across all 4 ports for LAN1. This indicates all untagged traffic belonging to default VLAN1
  • Set VLAN1 only on port 1 set as LAN2 with PVID enabled and set as 50, as in VLAN50. P1 is the port that links or is cabled into SW2

Switches

  • Created VLAN1 and VLAN50 on both switches
  • Set ports as trunked. This includes the link between both switches, server and router port as untagged 1 and tagged 50.
  • Set them to point to DHCP server IP in VLAN1
  • Know this isn't actually necessary but created a static IP on both switches for VLAN50

I haven't set the ports for the IP phones yet as I wanted to carry out a simple test with my laptop first. So what I have done is set a spare port on SW2 as access port with a PVID as 50 to make sure that when I plug my laptop in, I should get an IP from the VLAN50 scope but I don't, I just get 169 address, and this is what is confusing me. Obviously not communicating with DHCP but thought I'd set everything correctly for it to do so.

 

Honestly, you can call me stupid as it might be glaringly obvious but I was scratching my head for a couple of hours until I decided I needed to walk away and come back with a clear head.

 

Any help would be appreciated it. I am just going over it all again right now but thought I'd ask as another pair of eyes might be handy.

  • 3 weeks later...
Posted (edited)

If you assign a static IP to your laptop on VLAN50 in the 10.13.170.0 range are you able to ping the VLAN 50 interface of the router, or either if the two switches?

 

Should that work, can you ping the other interface of the other VLAN on the router and the IP of your DHCP server?

 

Alex

Edited by Aprice
Posted
Has the DHCP server either got a port/ip on each vlan or have the "ip helper" settings been put in on the draytek router? As @Aprice suggests, if a static IP works, then its dhcp not responding that's causing the problem.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...