Not sure I fully understand your requirement, but here is a config sample for VLAN 1 DHCP, and VLAN 100 management. Devices connected to VLAN 1 will use the VLAN 1’s ip address as their default gateway. Switch will send the default gateway, dns-server along with the DHCP IP address to the devices.
I presume your internet router 192.168.100.1 will do NAT as cnMatrix does not support NAT.
!
interface vlan 100
ip address 192.168.100.2 255.255.255.0
no shut
exit
!
ip route 0.0.0.0 0.0.0.0 192.168.100.1
!
interface vlan 1
no ip address
ip address 192.168.1.1 255.255.255.0
!
service dhcp-server
!
ip dhcp pool 1
network 192.168.1.2 255.255.255.0 192.168.1.250
default-router 192.168.1.1
dns-server 8.8.8.8
Thank you so much.
Sorry about my lack of English. Let me try to explain again.
What i have
Router : Draytek 3910
Switch : EX 2028P
What’s exactly i want to do
Turn off DHCP on Draytek 3910 and make it on switch
What i have tried but not working
Draytek 3910 : 192.168.1.1
EX 2028P : 192.168.1.3 - Static via IPv4 Quickstart with Default gateway 192.168.1.1
Setup DHCP for Vlan1 on 2028P
But look like this way is not working:
DHCP not working ( sometime yes / sometime not )
Event if it’s working my devices can’t connect to Internet
So i have tried
Create new VLAN100 192.168.100.x
This one totally working fine
But … i usually use 192.168.1.x . All my hard config on Ubuntu, vmes used this range. Than i think
Create new VLAN100 and use it as “communication” between Switch & Router
Router 192.168.100.1
Switch 192.168.100.2 with Active gateway 192.168.100.1 ( But i can’t this value. it’s always change to 192.168.100.0 or 0.0.0.0 instead 192.168.100.1 )