Commande Packet Tracer VLAN

Voir le sujet précédent Voir le sujet suivant Aller en bas

Commande Packet Tracer VLAN

Message  ShôGeiNin le Lun 17 Nov - 11:42

CONFIGURATION DES VLAN CISCO





Config Switch VLAN:

Switch>enable

Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 10 name VLAN10
VLAN 10 added:
Name: VLAN10

Switch(vlan)#vlan 20 name VLAN20
VLAN 20 added:
Name: VLAN20

Switch(vlan)#exit
APPLY completed.
Exiting....

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface fastethernet 0/1

Switch(config-if)#switchport access VLAN 10


Déplacement de la config Running vers la config startup pour que la nouvel config ce lance à l’allumage du switch :

Switch#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]


Deplacement de la startup dans la running en cas d’erreur de config :

Switch#copy startup-config running-config
Destination filename [running-config]?
Building configuration...
[OK]
Configuration des port qui doivent appartenir a tous les VLAN :

Switch>enable

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface fastethernet 0/5

Switch(config-if)#switchport mode trunk


Attribuer plusieurs adresses IP à un port :

Router>enable

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface fastethernet 0/0.10

%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state to upRouter(config-subif)#encap dot1q 10

Router(config-subif)#ip address 192.168.10.254 255.255.255.0

Router(config-subif)#interface fastethernet 0/0.20

%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state to upRouter(config-subif)#encap dot1q 20

Router(config-subif)#ip address 192.168.20.254 255.255.255.0

_________________

ShôGeiNin
Modo Butters
Modo Butters

Nombre de messages: 433
Age: 24
Date d'inscription: 21/04/2008

Voir le profil de l'utilisateur http://gamerofdeath.g.o.d.free.fr

Revenir en haut Aller en bas

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum