# Change default vlan1

**URL:** <https://community.cambiumnetworks.com/t/change-default-vlan1/91556>\
**Category:** cnMatrix\
**Created:** [March 8, 2023, 4:14pm UTC](https://community.cambiumnetworks.com/t/change-default-vlan1/91556 "2023-03-08T16:14:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viet\_VU](https://d10gw3vjmzyp8.cloudfront.net/user_avatar/community.cambiumnetworks.com/viet_vu/32/27048_2.png) [@Viet\_VU](https://community.cambiumnetworks.com/u/Viet_VU)\
**Post date:** [March 8, 2023, 4:14pm UTC](https://community.cambiumnetworks.com/t/change-default-vlan1/91556/1 "2023-03-08T16:14:18Z")

</div>

Context

- I need setup DHCP for vlan1 with 192.168.1.1 - 192.168.1.250
- And change default vlan1 to vlan100.

So

- Switch will have static IP : 192.168.100.2
- Router ( connect to internet ) : 192.168.100.1
- All connected device will have DHCP with 192.168.1 - 192.168.250

Is it possible ?

Thank you,  
Viet VU

---

<div class="post-metadata">

**Author:** ![PFR](https://d10gw3vjmzyp8.cloudfront.net/user_avatar/community.cambiumnetworks.com/pfr/32/19897_2.png) [@PFR](https://community.cambiumnetworks.com/u/PFR)\
**Post date:** [March 8, 2023, 6:55pm UTC](https://community.cambiumnetworks.com/t/change-default-vlan1/91556/2 "2023-03-08T18:55:35Z")

</div>

Yours router support vlans and nat ?

---

<div class="post-metadata">

**Author:** ![TamN](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@TamN](https://community.cambiumnetworks.com/u/TamN)\
**Post date:** [March 8, 2023, 9:59pm UTC](https://community.cambiumnetworks.com/t/change-default-vlan1/91556/3 "2023-03-08T21:59:41Z")

</div>

Hi Viet,

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.

```plaintext
!
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

```

---

<div class="post-metadata">

**Author:** ![Viet\_VU](https://d10gw3vjmzyp8.cloudfront.net/user_avatar/community.cambiumnetworks.com/viet_vu/32/27048_2.png) [@Viet\_VU](https://community.cambiumnetworks.com/u/Viet_VU)\
**Post date:** [March 9, 2023, 12:10am UTC](https://community.cambiumnetworks.com/t/change-default-vlan1/91556/4 "2023-03-09T00:10:38Z")

</div>

Yes. I’m uing EX 2028P

---

<div class="post-metadata">

**Author:** ![Viet\_VU](https://d10gw3vjmzyp8.cloudfront.net/user_avatar/community.cambiumnetworks.com/viet_vu/32/27048_2.png) [@Viet\_VU](https://community.cambiumnetworks.com/u/Viet_VU)\
**Post date:** [March 9, 2023, 12:22am UTC](https://community.cambiumnetworks.com/t/change-default-vlan1/91556/5 "2023-03-09T00:22:46Z")

</div>

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 )
- And try to use vlan1 for DHCP.

Any idea are really welcome.

Thank you,  
Viet VU
