- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
DHCP-Server for separate LAN and link to Router - M4300
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: DHCP-Server for separate LAN and link to Router - M4300
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Just for reference, in case other people looking for a similar solution.