Vlans sur switch 3550

Résolu
sorento02 Messages postés 3 Date d'inscription   Statut Membre Dernière intervention   -  
MIchael Tagui Messages postés 60 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

voila je dois creer deux Vlans sur un swicth 3550, affecter 2 pc à chaque Vlan et pinguer les 2 machines des Vlans, j'ai créé mes vlans et j'ai affeché les portes aux vlans:

interface FastEthernet 0/4
switchport access vlan 2
exit

interface FastEthernet 0/7
switchport access vlan 2
exit

interface FastEthernet 0/8
switchport access vlan 3
exit


interface FastEthernet 0/11
switchport access vlan 3
exit

j'ai ensuite activé mes Vlans

vlan 2
state active
name Vlan2
exit
vlan 3
state active
name Vlan3
exit


mnt mon probleme que je veux pinguer 2 machines des Vlans, comment puis-je affecter les adresses aux Vlans, aux machines des Vlans et aux interface du swicth ? (C'est un switch-routeur donc le routage est possible avec ce switch)


Merci d'avance !!!!



A voir également:

5 réponses

MIchael Tagui Messages postés 60 Date d'inscription   Statut Membre Dernière intervention   13
 
LAISSE MOI TE POSER D'ABORD CETTE QUESTION: AS TU DONNE DES IP ADDRESSES AUX MACHINES? ET JE REPONDRAIS A TA QUESTION.
0
sorento02 Messages postés 3 Date d'inscription   Statut Membre Dernière intervention  
 
noon pas encore ! je veux d'abord donner aux Vlans, si par exemple je donne l'adresse 192.168.0.0 au 1er Vlan, je donnerai l'adresse 192.168.0.1 à ma machine
0
MIchael Tagui Messages postés 60 Date d'inscription   Statut Membre Dernière intervention   13
 
il faut activer cette commande dans le switch: Switch(config)#ip routing
et les ordinateurs doivent avoir comme passerelle par defaut l'address de leur vlans.
et maintenant essay de pinguer et tu verras qu'il y aura de reponse.
0
sorento02
 
d'accord merci. Mais comment affecter des adresses aux Vlans ?
0
brupala Messages postés 112051 Date d'inscription   Statut Membre Dernière intervention   14 183
 
interface vlan machin ...
ip address ...
un vlan n'a pas d'adresse IP, juste un nom de vlan et un numéro.
c'est le routeur (le switch L3) qui a une adresse ip dans un vlan.
0
MIchael Tagui Messages postés 60 Date d'inscription   Statut Membre Dernière intervention   13
 
Oui c possible d'affecter des address ip aux VLANs, voici la commande:
Switch(config)#VLAN 45 (pour creer un vlan 45 en 1ere position)
Switch(config-vlan)#EXIT (pour sortir du mode config vlan)
Switch(config)#INTERFACE VLAN 45 (te permettra d'entrer dans l'interface VLAN k tu viens de creer)
Switch(config-if)#IP ADDRESS 100.100.100.1 255.0.0.0 (pour affecter une addresse IP au vlan 45).
Si tu as un problem n'hesite pas a nous faire savoir.
0
MIchael Tagui Messages postés 60 Date d'inscription   Statut Membre Dernière intervention   13
 
Voici toutes les commandes pour finir ton exercise si tu as encore des doutes:
Switch>
Switch>
Switch>en
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#vlan 2
Switch(config-vlan)#vlan 3
Switch(config-vlan)#
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#int range fa0/4-7
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 2
Switch(config-if-range)#
Switch(config-if-range)#exit
Switch(config)#int range fa0/8-11
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 3
Switch(config-if-range)#exit
Switch(config)#int vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to up

Switch(config-if)#
Switch(config-if)#ip address 192.168.10.1 255.255.255.0
Switch(config-if)#int vlan 3
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#ip address 172.16.10.1 255.255.0.0
Switch(config-if)#
Switch(config-if)#no shut
Switch(config-if)
Switch(config-if)#int vlan 2
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#ip routing
Switch(config)#
Switch(config)#do ping 172.16.10.1 (pour tester la connection entre le switch et le vlan 3)

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms ( les cinq points d'exclamation montrent que le ping est a 100% de reussite)

Switch(config)#do ping 192.168.10.1 (pour tester la connection entre le switch et le vlan 2)

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/19/31 ms ( !!!!! ping reussit a 100%)

j'espere k le reste te sera facile !!!!!.
0
sorento02
 
je te remercie infiniment pour ton aide !! le ping marche ) merveille !! vraiment merciii bcccpppp
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
MIchael Tagui Messages postés 60 Date d'inscription   Statut Membre Dernière intervention   13
 
De rien, a plus ++++
0