Netgear M5300-28G-POE+ (GSM7228PSv1h2) - 12-Port Managed Gigabit Switch Ratgeber Für Administratoren
Chapter 29. DHCP L2 Relay and L3 Relay
|
479
ProSafe Managed Switch
These Layer 2 devices typically operate only as bridges for the network and might not have
an IPv4 address on the network. Lacking a valid IPv4 source address, they cannot relay
packets directly to a DHCP server located on another network. These Layer 2 devices
append the Relay agent information option and broadcast the DHCP message. This section
provides information about where a Layer 2 relay agent fits in and how it is used.
an IPv4 address on the network. Lacking a valid IPv4 source address, they cannot relay
packets directly to a DHCP server located on another network. These Layer 2 devices
append the Relay agent information option and broadcast the DHCP message. This section
provides information about where a Layer 2 relay agent fits in and how it is used.
CLI: Enable DHCP L2 Relay
1.
Enter the following commands:
2.
Enable the DHCP L2 relay on the switch.
3.
Enable the Option 82 Circuit ID field.
4.
Enable the Option 82 Remote ID field.
5.
Enable DHCP L2 relay on port 1/0/4.
(Netgear Switch)#vlan database
(Netgear Switch)(Vlan)#vlan 200
(Netgear Switch)(Vlan)#exit
(Netgear Switch) (Config)#dhcp l2relay
(Netgear Switch) (Config)#dhcp l2relay vlan 200
(Netgear Switch) (Config)#dhcp l2relay circuit-id vlan 200
(Netgear Switch) (Config)#dhcp l2relay remote-id rem_id vlan 200
(Netgear Switch) (Config)#interface 1/0/4
(Netgear Switch) (Interface 1/0/4)# dhcp l2relay
(Netgear Switch) (Interface 1/0/4)# vlan pvid 200
(Netgear Switch) (Interface 1/0/4)# vlan participation include 200
(Netgear Switch) (Interface 1/0/4)# exit