03-29-2023 10:23 PM - edited 03-29-2023 10:26 PM
hello,
i have been using cisco switch sg350 trying to create two vlan and two trunk port to connect with one acess point
vlan 1 should trunked with vlan 30-->router 192.168.1.1 netmask 255.255.255.0 should get internet with dhcp from tplink router ip range shoud be 192.168.1.10 to 192.168.1.10 (port 2 to 11)
vlan 2 should trunked with vlan 40-->router192.168.100.1 netmask 255.255.240.0 static route ip range should be 192.168.96.1 to 192.168.96.20(port 12 to 20)
acess point
2ghz-->vlan 1
5ghz-->vlan 2
03-29-2023 11:00 PM
To create a VLAN and trunk port with a DHCP server, you will need to follow these general steps:
switch(config)#interface gigabitethernet 1/0/1
switch(config-if)#switchport mode trunk
switch(config)#vlan 10
switch(config-vlan)#name dhcp_server
switch(config)#interface gigabitethernet 1/0/2
switch(config-if)#switchport access vlan 10
switch(config)#ip dhcp pool dhcp_server
switch(dhcp-config)#network 192.168.1.0 255.255.255.0
switch(dhcp-config)#default-router 192.168.1.1
switch(dhcp-config)#dns-server 8.8.8.8
In the above example, VLAN 10 has been created and assigned to interface GigabitEthernet 1/0/2. The DHCP server has been configured on this VLAN with the IP address range of 192.168.1.0/24 and a default gateway of 192.168.1.1. The DNS server is set to 8.8.8.8.
Note that the exact commands used may vary depending on the switch and the specific configuration requirements.
03-31-2023 12:11 AM
hello,
not clear on how to tag my trunk port with vlan and how to create another vlan with different trunk port with static route
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide