08-15-2018 01:19 AM
I have problem with my network
my company is small and only use 1 router dreytek 2912(DHCP) ( ip 192.168.1.1) and 1 sw SG300 28port
that dreytek router link with sw Sg 300 ( Gi0/1) and that dreytek is running DHCP service
but now I want make that SG 300 Sw running DHCP for my company
what should I do ?
* I try disable dhcp on dreytek and change mode to layer 3 on sw already
need any action more ?
Solved! Go to Solution.
08-15-2018 09:07 AM
Correct, disable the DHCP server on the Draytek and enter the config provided onto the SG300.
Before you do that, please can you provide the running config of the SG300 to ensure the VLAN configuration is correct.
cheers,
Seb.
08-15-2018 01:50 AM - edited 08-15-2018 01:51 AM
Hi there,
With the SG300 in router mode, you just need to configure the DHCP server on the SG300. Assuming the 192.168.1.0/24 subnet in assigned to VLAN10 (change as required) the following should work:
! vlan 10 ! int vlan 10 ip address 192.168.1.254 255.255.255.0 ! ip dhcp server ! ip dhcp pool vlan10 network 192.168.1.0/24 default-router 192.168.1.254 dns-server 1.1.1.1 ! ip dhcp excluded-address 192.168.1.254 !
cheers,
Seb.
08-15-2018 02:12 AM
08-15-2018 03:41 AM
OK, if you don't want the SG300 to route the VLAN10 (192.168.1.0/24) traffic then you will need to change the DHCP scope details to use the Draytek as the default gateway on the subnet:
! ip dhcp pool vlan10 default-router 192.168.1.1 ! ip dhcp excluded-address 192.168.1.1
There is no need to add a default route on the SG300 to send traffic to the Draytek as you are just spanning the VLAN between the devices.
cheers
Seb.
08-15-2018 05:10 AM
sorry if bother you sir
this is my device sir( IMG below)
i still want keep all like this sir, now i want Dreytek not allocate DHCP anymore( still link with SG 300 but remove dhcp service on Dreytek)
because SG 300 link with Dreytek with Gigagbit port so when all cable link device plugin to sw they will get ip from Dreytek, so i need disable dhcp on Dreytek first right ?
i want SG 300 sw doing that work( allocate DHCP )
that is all sir ^^
so i just following this cmd ?
! vlan 10 ! int vlan 10 ip address 192.168.1.254 255.255.255.0 ! ip dhcp server ! ip dhcp pool vlan10 network 192.168.1.0/24 default-router 192.168.1.1 dns-server 1.1.1.1 ! ip dhcp excluded-address 192.168.1.1 !
Thank you,
08-15-2018 09:07 AM
Correct, disable the DHCP server on the Draytek and enter the config provided onto the SG300.
Before you do that, please can you provide the running config of the SG300 to ensure the VLAN configuration is correct.
cheers,
Seb.
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