Problem in setting up VLAN trunk with DCHP VLAN relay
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?