× NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Orbi WiFi 7 RBE973
Reply

DHCP-Server for separate LAN and link to Router - M4300

cvxdev
Aspirant

DHCP-Server for separate LAN and link to Router - M4300

Dear Community,

I want to achieve the following setup (as per picture in attachment).
I have a LAN which is not permanently connected to the Internet/Router and therefore looking for:

  • separate functioning LAN with Netgear Switch:
    • the switch should act as a DHCP-Router to all connected devices on Port 2-24 and assign IP addresses
    • Switch should have a local fix IP to be reached within the LAN (e.g. 192.168.88.1)
  • a Router (192.168.178.1) connected to Port 1 of the Switch
    • Router provides dynamic IP to Switch (e.g. 192.168.178.11)
    • Router provides access to Internet for LAN
  • User 1 & User 2:
    • work in LAN, when Router is not present (disconnected)
    • have access to Internet when Router is connected

I managed to create the DHCP-Server (System/Services/DHCP-Server Configuration) which assignes the IP addresses to the Users correctly.

In Routing/IP/IP-Interface Configuration i set-up the port 1/0/1 to DHCP method, and it received the IP address from the router. Now I am not sure what I need to do to create the Link between the LAN and the Router.

Any help is appreciated -thanks.

 

Model: GSM4328PA|M4300-28G-PoE+ - 24x1G PoE+ Stackable Managed Switch with 2x10GBASE-T and 2xSFP+ (550W PSU)
Message 1 of 4
kevin_hong
Apprentice

Re: DHCP-Server for separate LAN and link to Router - M4300

Hi @cvxdev 

 

Welcome to community,

 

Please refer to the following operational configuration

 

Vlan configuration:

vlan database
vlan 2

 

Port:

interface 1/0/2 ---- 1/0/24
vlan pvid 2
vlan participation auto 1
vlan participation include 2
exit

 

service dhcp
ip dhcp excluded-address 192.168.2.1
ip dhcp pool "VLAN2"
lease infinite
default-router 192.168.2.1
network 192.168.2.0 255.255.255.0
netbios-node-type b-node
exit

 

ip default-gateway 192.168.178.1

 

 

Model: GSM4328PA|M4300-28G-PoE+ - 24x1G PoE+ Stackable Managed Switch with 2x10GBASE-T and 2xSFP+ (550W PSU)
Message 2 of 4
Retired_Member
Not applicable

Re: DHCP-Server for separate LAN and link to Router - M4300

@cvxdev 

 

It's ok with your setup method, but please make sure below key points, otherwise it will cause Client cannot access Internet.

1. On M4300 switch, when you config DHCP Server(192.168.88.0/24), the dns-server IP must be the Router IP=192.168.178.1);

below is example config on M4300 Switch:

 

interface 1/0/1
routing
ip address dhcp
exit

 

interface vlan 1
routing
ip address 192.168.88.1 255.255.255.0
exit


ip management 1/0/1 dhcp
ip management source-interface 1/0/1
router rip
exit
router ospf
exit
ipv6 router ospf
exit

service dhcp
ip dhcp pool "test"
dns-server 192.168.178.1
default-router 192.168.88.1
network 192.168.88.0 255.255.255.0
exit

 

2. On the Router, you need add routing table back to switch M4300 LAN(192.168.88.0/24). And make sure the Router support NAT for this LAN.

example config:

ip route 192.168.88.0 255.255.255.0 192.168.178.11

 

 

Hope it helps!

 

Regards,

EricZ

Message 3 of 4
cvxdev
Aspirant

Re: DHCP-Server for separate LAN and link to Router - M4300

Thank you both - will definitely check also those options/settings.

In the mean time I found this article on the Forum, which helped:

https://kb.netgear.com/30818/How-to-configure-routing-VLANs-on-a-NETGEAR-managed-switch-with-shared-...

Just for reference, in case other people looking for a similar solution.

 

Message 4 of 4
Discussion stats
  • 3 replies
  • 2699 views
  • 0 kudos
  • 3 in conversation
Announcements