# Configuration du DHCP

##### DHCP Relay

```
ProCurve Switch 2650(config)# vlan 101
ProCurve Switch 2650(vlan-101)# ip helper-address 192.168.1.199
```

Avec option 82

```
ProCurve Switch 2650(config)# dhcp-relay option 82
 append                Specifies that the option 82 field should be appended to
                       client DHCP packet.
 drop                  Specifies that the DHCP packet will be dropped
                       unconditionally, if option 82 field(s) already exists in
                       the client DHCP packet.
 keep                  Specifies that no option 82 field will be added or
                       replaced, if option 82 field(s) already exists in the
                       client DHCP packet.
 replace               Specifies that any existing option 82 fields will be
                       replaced with switch option 82 field for client DHCP
                       packet.
 validate              Specifies the validation for server response.
```

##### DHCP Snooping

Activation

```
ProCurve Switch 2650(config)# dhcp-snooping
```

Autoriser un serveur DHCP

```
ProCurve Switch 2650(config)# dhcp-snooping authorized-server 192.168.1.200
```

Activation sur un vlan

```
ProCurve Switch 2650(config)# dhcp-snooping vlan 200
```

##### Vérification

```
ProCurve Switch 2650# show dhcp-snooping
ProCurve Switch 2650# show dhcp-snooping stats
```