Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

  • We purchased a RV320 router and want to use the DHCP Option 82 IP Assignment in combination with a ZyXEL GS1910-24 Smart Managed Switch.
  • The switch is able to insert Option 82 Circuit-IDs into DHCP requests, if they are relayed to a specific DHCP server. So there must be configured exactly one IP address of the DHCP server in the switch configuration (eg 192.168.1.1). The problem is, that the RV320 creates different IP subnets for different Circuit-IDs. So the RV320-router has multiple IPs, one unique IP per subnet (192.168.1.1, 192.168.2.1, 192.168.3.1, ...).

How can I use the Option 82 IP assignment with this configuration?

Is a routing/firewall rule at the RV320 a solution (to forward DHCP requests from subnet specific IP - eg 192.168.3.1 - to exactly one IP, eg 192.168.1.1)?


  • Small Business Routers
Everyone's tags (6)
12 REPLIES

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

Hello,

RV320, configured as a DHCP server with IP 192.168.1.1, can provide IP addresses only in this subnet range 192.168.1.0/24. The same is for the configuration of Option 82

If you are thinking to configure VLANs on the switch and all VLANs to have the same DHCP server 192.168.1.1, this means that all users will receive an IP from that subnet - 192.168.1.0/24.

If you want to use different subnet ranges (192.168.2.0/24; 192.168.3.0/24) for the different VLANs you should be able to configure different DHCP servers IPs on the switch.

Regards,

Kremena

New Member

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

I want to ensure, that each client on each switch port gets a specific IP address. That is what DHCP Option 82 was invented for: http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3550/software/release/12-1_13_ea1/configuration/guide/3550scg/swdhcp82.html#wp1058138

Two steps should be necessary:

  • The switch (as DHCP relay) inserts DHCP Option 82 to the request and forwards it to a given DHCP server (the RV320)
  • The RV320 should now assign an IP address based on circuit-id of option 82.

How can I achieve that? This should be the "standard" case of option 82.

Gold

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

csbuser51,

Do you have a trunk port or access port configured between the switch and router? A trunk port should carry traffic for all VLANs so DHCP Relay is not necessary.

- Marty

New Member

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

mpyhala,

both is possible in switch configuration. Should the uplink port from switch to router be "trunk" or "no trunk" to achieve the needed configuration? If I understand you right, I should bring the uplink port of the switch into "no trunk" mode, so that DHCP relay functionality and therefore DHCP option 82 is working. Am I right?

Gold

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

csbuser51,

The port that connects the switch to the router should be a trunk. Include VLAN 1 Untagged, all other VLANs Tagged.

Create the exact same VLANs on the RV320 and got to Port Management-> VLAN Membership. In the table, change it to match the above settings. Now when a device connected to VLAN 2 on the switch sends a DHCP request, it will pass through the trunk to the RV320 and the RV320 will respond with a VLAN 2 IP address. This eliminates the need for DHCP Relay.

- Marty

New Member

RV320: DHCP Option 82 + DHCP relay at Ethernet switch

mpyhala,

seems not to work as the RV320 is restricted to 6 custom VLANs (+ 1 Management VLAN with ID 1).

Maybe I should describe the whole scenario, which should be implemented:

  • The configuration is like for a small hotel: each room should be logically seperated from each other (no inter-room traffic for security) and each rooms bandwidth should be managed.
  • Bandwidth management at the RV320 relies on IP addresses. So I need to achieve somehow, that a room (= port number on switch) is always assigned a specific IP address.
  • 14 rooms should be covered in that way.

The problem is currently the link IP<->Switch Port. I thought DHCP option 82 is the way to go, but VLANs (one VLAN for each room) may be also a solution. Unfortunately none of the two ways work.

What can be a solution? Was the RV320 the wrong decision (not enough flexibility)?

Thanks.

Gold

Re: RV320: DHCP Option 82 + DHCP relay at Ethernet switch

csbuser51,

The RV320 is restricted to 6 subnets as well, so it is not possible to serve DHCP for more than 6 networks. Usually when we are talking about DHCP Relay it is relaying to a Windows Server which provides DHCP for multiple scopes.

The RV220W supports up to 16 VLANs but I have never seen anyone use more than 5 VLANs on any of our routers. That might be worth a shot if you can live without Dual-WAN.

- Marty

New Member

Re: RV320: DHCP Option 82 + DHCP relay at Ethernet switch

(I need dual WAN, because traffic is spread over two uplink connections.)

But then I wonder for what use cases the RV320 was designed:

  • For what is the Option 82 good for, if its not possible to assign fixed IP via DHCP to certain Switch ports (= Machines)?
  • For what is the Bandwidth Management good for, when I can not ensure, that certain machines get certain IPs? One can easily bypass bandwidth restrictions.
Gold

Re: RV320: DHCP Option 82 + DHCP relay at Ethernet switch

csbuser51,

Browse to DHCP-> IP & MAC Binding and click on Help in the upper right. This describes how to ensure that devices use the correct IP based on the MAC address.

- Marty

1973
Views
0
Helpful
12
Replies