cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1161
Views
5
Helpful
5
Replies

About configuration cisco SG 300 28port acting like DHCP

Meila
Level 1
Level 1

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 ? 

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

5 Replies 5

Seb Rupik
VIP Alumni
VIP Alumni

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.

thank you for reply me sir,
can I have 1 more question?
so all I need to do is:
remove dhcp service on Dreytek
config like your solution and all its ok right?
I thought when change Sg300 sw to layer 3 we need to make default route on sw to router and on that router need action route back to new vlan( Vlan 10) ?
becasuse I still want keep that dreytek router ( is mean dreytek still link with sw, only configure sw dhcp sever)
just want that dreytek

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.

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
!

ef91f3da4759a607ff48.jpg

 

 Thank you,

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.