Problem in setting up VLAN trunk with DCHP VLAN relay

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Problem in setting up VLAN trunk with DCHP VLAN relay

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Problem in setting up VLAN trunk with DCHP VLAN relay
Problem in setting up VLAN trunk with DCHP VLAN relay
2021-04-25 01:51:29 - last edited 2021-04-25 02:06:28
Hardware Version: V2
Firmware Version: 2.0.5 Build 20200110 Rel.53175(s)

 

 

For the above diagram, I have a router configured for DHCP server pool 192.168.30.1/24. Port 1 of the switch is connected to Router and carries all the VLAN traffic. I would like to have DHCP relay service configured on the switch such that it gets device IP from DHCP server running on router.

 

While I am able to successfully configure DHCP server on ports 3,4,5,6,7,8, i am unable to find the problem with script for configuring DHCP relay for Port 2.

 

I loose connection to the switch via Port 2, if I set PVID 30. Examples on the web are for only old GUI and differs significantly from the new one. I am using serial console connection and sending below commands for setting up the switch.

 


#Enable dhcp client on management interface
interface vlan 1
ip address-alloc dhcp
ip dhcp relay default-interface
no ipv6 enable
exit
service dhcp relay


#Setup port as trunk port
interface gigabitEthernet 1/0/1
vlan_trunk
exit
 

#Configure VLAN 30

vlan 30
name NetAdmin
exit


interface vlan 30
ip helper-address 192.168.30.1
show ip dhcp relay
exit

 

#change port 2 from L2 to L3 interface
interface gigabitEthernet 1/0/2
#no switchport
switchport pvid 30
switchport acceptable frame all
switchport general allowed vlan 30 untagged

exit
ip dhcp relay vlan 30 helper-address 192.168.30.1
show ip dhcp relay

 

Only relevant reference documentation that I found was 1910012659-T2500G-10TS(UN)2.0-UG.pdf and 1910012660-T2500G-10TS_2.0-CLI.pdf

 

Any suggestions?

  0      
  0      
#1
Options
2 Reply
Re:Problem in setting up VLAN trunk with DCHP VLAN relay
2021-04-25 02:35:43 - last edited 2021-04-25 02:36:52

Dear @NewStackLearner,

 

NewStackLearner wrote 

Only relevant reference documentation that I found was 1910012659-T2500G-10TS(UN)2.0-UG.pdf and 1910012660-T2500G-10TS_2.0-CLI.pdf

 

Please check the configuration guide below for DHCP VLAN Relay.

 

https://www.tp-link.com/us/configuration-guides/configuring_dhcp#example_for_dhcp_vlan_relay_4_2

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#2
Options
Re:Problem in setting up VLAN trunk with DCHP VLAN relay
2021-04-25 06:56:58 - last edited 2021-04-25 07:14:59

 

Fae wrote

Dear @NewStackLearner,

 

Please check the configuration guide below for DHCP VLAN Relay.

 

https://www.tp-link.com/us/configuration-guides/configuring_dhcp#example_for_dhcp_vlan_relay_4_2

Dear @Fae 

Thank you for quick reference. I have read reference document. For my scenario, I have a trunk port on Gi1/0/1 and DHCP client connected to Gi1/0/2. Not sure if I have correctly setup G1/0/1 as trunk port. I do not find any way via GUI. I used following command via serial console

 

interface gigabitEthernet 1/0/1
vlan_trunk

 

I am new to network engineering. And I am confused if I need to use DHCP L2 relay with option 82, along with DHCP VLAN relay.

Also, for my requirement, DHCP server (on router), Management VLAN and PC connected to Gi1/0/2, are all on VLAN30. After creating VLAN 30, when I set PVID as 30 in Port Config. I am not able to reach switch via Port 2. Not sure what am I missing. Please advise.

 

Regards

  0  
  0  
#3
Options

Information

Helpful: 0

Views: 1008

Replies: 2

Related Articles