Creation vlan
DUDU
-
ipcontinent Messages postés 12 Statut Membre -
ipcontinent Messages postés 12 Statut Membre -
Bonjour a vous
Je désire creer 2 vlans sur 1 switch cisco pour raccorder des pc sur chaque vlan
le routeur vers internet est une BOX avec adresse ip 192.168.1.1
faut il mettre une adresse ip à chaque vlan
Je pensais mettre vlan 10= 192.168 . 10.10
vlan 20= 192.168.20.10
LES PC DE CHAQUE VLAN AURONT UNE ADRESSE IP
PC VLAN 1 = 192.168.10.11 à 192.168.10.24
PC VLAN 2 = 192.168.20.11 à 192.168.20.24
QUE FAUT IL METTRE COMME PASSERELLE SUR LES PC
MERCI DE ME COMMUNIQUER UNE PROG TYP AVEC CES DONNEES POUR QUE JE PUISSE FAIRE DES ESSAIS
MRCI D AVANCE DE M AIDER
ROLAND
Je désire creer 2 vlans sur 1 switch cisco pour raccorder des pc sur chaque vlan
le routeur vers internet est une BOX avec adresse ip 192.168.1.1
faut il mettre une adresse ip à chaque vlan
Je pensais mettre vlan 10= 192.168 . 10.10
vlan 20= 192.168.20.10
LES PC DE CHAQUE VLAN AURONT UNE ADRESSE IP
PC VLAN 1 = 192.168.10.11 à 192.168.10.24
PC VLAN 2 = 192.168.20.11 à 192.168.20.24
QUE FAUT IL METTRE COMME PASSERELLE SUR LES PC
MERCI DE ME COMMUNIQUER UNE PROG TYP AVEC CES DONNEES POUR QUE JE PUISSE FAIRE DES ESSAIS
MRCI D AVANCE DE M AIDER
ROLAND
A voir également:
- Creation vlan
- Creation compte gmail - Guide
- Création site web - Guide
- Création compte google - Guide
- Media creation tool - Télécharger - Systèmes d'exploitation
- Creation compte vinted - Guide
1 réponse
bjr Bao, Pour chq vlan il faut effectivement une add comme tu as choisis
Voici un exemple de cionfig
Switch(config)# vlan 10
exit
Switch(config)# vlan 20
exit
Switch(config)# int vlan 1 (il faut une address pour le vlan de management)
Switch(config-if)#ip add.... (a preciser dans une autre plage diff de vlan 10 & 20)
Switch(config-if)# no shut
exit
Switch(config)#ip default-gateway ....( dans la meme plage que vlan 10)
Switch(config)#int fast 0/0 (si c est l int qui est relie au routeur)
Switch(config-if)#switchport mode trunk (cet int doit etre en mode trunk)
Switch(config-if)#switchport trunk encapsulation dot1q (preciser l encapsulation)
exit
Switch(config-if)# no shut
sur le routeur
Router(config)# int fast 0/0 (int relier au switch)
Router(config-if)# no shut
Router(config-if)# int fa0/0.10 (mode sous int)
Router(config-if)# encapsulation dot1q 10
Router(config-if)# ip add 192.168.10.11 255.255.255.0 (add de la passerelle pour les hotes du vlan 1)
Router(config-if)# exit
Router(config-if)# int fa0/0.20 (mode sous int)
Router(config-if)# encapsulation dot1q 20
Router(config-if)# ip add 192.168.20.11 255.255.255.0(add de la passerelle pour les hotes du vlan20)
Router(config-if)# end
Router# copy run start
Voici un exemple de cionfig
Switch(config)# vlan 10
exit
Switch(config)# vlan 20
exit
Switch(config)# int vlan 1 (il faut une address pour le vlan de management)
Switch(config-if)#ip add.... (a preciser dans une autre plage diff de vlan 10 & 20)
Switch(config-if)# no shut
exit
Switch(config)#ip default-gateway ....( dans la meme plage que vlan 10)
Switch(config)#int fast 0/0 (si c est l int qui est relie au routeur)
Switch(config-if)#switchport mode trunk (cet int doit etre en mode trunk)
Switch(config-if)#switchport trunk encapsulation dot1q (preciser l encapsulation)
exit
Switch(config-if)# no shut
sur le routeur
Router(config)# int fast 0/0 (int relier au switch)
Router(config-if)# no shut
Router(config-if)# int fa0/0.10 (mode sous int)
Router(config-if)# encapsulation dot1q 10
Router(config-if)# ip add 192.168.10.11 255.255.255.0 (add de la passerelle pour les hotes du vlan 1)
Router(config-if)# exit
Router(config-if)# int fa0/0.20 (mode sous int)
Router(config-if)# encapsulation dot1q 20
Router(config-if)# ip add 192.168.20.11 255.255.255.0(add de la passerelle pour les hotes du vlan20)
Router(config-if)# end
Router# copy run start