Switch1 (2960) :
Switch2 (2960) :
Switch3 (2960) :
Switch N3 (3650) :
Serveur DHCP :
| VLAN | Nom | Switch | Ports PC | IP Gateway |
|---|---|---|---|---|
| 10 | VLAN10 | Switch1 | Fa0/1, Fa0/2 | 192.168.10.1 |
| 20 | VLAN20 | Switch2 | Fa0/1, Fa0/2 | 192.168.20.1 |
| 30 | VLAN30 | Switch3 | Fa0/1, Fa0/2 | 192.168.30.1 |
enable configure terminal vlan 10 name VLAN10 exit interface range fa0/1 - 2 switchport mode access switchport access vlan 10 exit interface gig0/1 switchport mode trunk exit
Le serveur DHCP étant situé dans un VLAN distinct, les postes des autres VLANs ne peuvent pas lui envoyer directement leurs requêtes.
La configuration d’un ip helper-address sur chaque interface VLAN permet de rediriger les demandes DHCP vers le serveur.
interface vlan 10 ip helper-address 192.168.10.100 exit interface vlan 20 ip helper-address 192.168.10.100 exit interface vlan 30 ip helper-address 192.168.10.100 exit
enable configure terminal vlan 10 name VLAN10 exit vlan 20 name VLAN20 exit vlan 30 name VLAN30 exit ip routing interface vlan 10 ip address 192.168.10.1 255.255.255.0 no shutdown exit interface vlan 20 ip address 192.168.20.1 255.255.255.0 no shutdown exit interface vlan 30 ip address 192.168.30.1 255.255.255.0 no shutdown exit interface range fa0/1 - 3 switchport mode trunk exit
| Paramètre | Valeur |
|---|---|
| IP | 192.168.10.100 |
| Masque | 255.255.255.0 |
| Gateway | 192.168.10.1 |
| Pool | Default Gateway | Start IP | Subnet Mask | Max Users |
|---|---|---|---|---|
| VLAN10 | 192.168.10.1 | 192.168.10.10 | 255.255.255.0 | 50 |
| VLAN20 | 192.168.20.1 | 192.168.20.10 | 255.255.255.0 | 50 |
| VLAN30 | 192.168.30.1 | 192.168.30.10 | 255.255.255.0 | 50 |