NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

cvxdev's avatar
cvxdev
Aspirant
Apr 28, 2020

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.

 

3 Replies

  • 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

     

     

  • Retired_Member's avatar
    Retired_Member

    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

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More