Vlan sur un switch HP 1910 -48G

Vlan sur un switch HP 1910 -48G - Réseaux - Systèmes & Réseaux Pro

Marsh Posté le 12-12-2012 à 12:36:09    

Bonjour à tous
 
Est ce que vous avez déjà testé la mise en place de Vlan sur switch hp V1910 ?
En matériel j'ai un pc et un switch.
Je souhaiterai diviser le switch en 2 vlan.
Donc j'ai vlan1 et vlan2
J'ai crée 2 interfaces ip pour les 2 vlans  
le premier est en 192.168.2.0 et le second vlan en 192.168.3.0  
Les ports doivent être en tagged ou untagged ?
J'arrive à pinguer le vlan1 quand mon pc est branché sur le port membre du vlan 1 mais que je me branche sur un port du vlan 2 je n'arrive pas à pinguer l'adresse 192.168.3.3 (ip de l'interface du vlan 2)
 
Merci pour vos précieux conseils

Reply

Marsh Posté le 12-12-2012 à 12:36:09   

Reply

Marsh Posté le 12-12-2012 à 13:17:59    

Fais un "show run" et poste la conf


---------------
In my bed, but still_at_work.
Reply

Marsh Posté le 12-12-2012 à 13:28:08    

en telnet je n'ai pas accès à la commande "show run"
j'ai fais un export de la configuration à partir de l'interface web :  
#
 version 5.20, Release 1513P05
#
 sysname HP V1910 Switch
#
 domain default enable system  
#
 telnet server enable  
#
 ip ttl-expires enable
#
vlan 1
#
vlan 2
#
radius scheme system
#
domain system  
 access-limit disable  
 state active  
 idle-cut disable  
 self-service-url disable  
#
user-group system
#
local-user admin
 authorization-attribute level 3
 service-type ssh telnet terminal
#
 stp mode rstp
 stp enable
#
interface NULL0
#
interface Vlan-interface1
 ip address 192.168.2.3 255.255.255.0  
#
interface Vlan-interface2
 ip address 192.168.3.3 255.255.255.0  
#
interface GigabitEthernet1/0/1
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/2
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/3
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/4
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/5
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/6
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/7
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/8
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/9
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/10
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/11
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/12
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/13
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/14
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/15
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/16
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/17
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/18
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/19
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/20
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/21
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/22
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/23
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/24
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/25
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/26
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/27
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/28
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/29
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/30
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/31
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/32
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/33
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/34
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/35
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/36
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/37
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/38
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/39
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/40
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/41
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/42
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/43
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/44
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/45
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/46
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/47
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/48
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 tagged
 stp edged-port enable
#
interface GigabitEthernet1/0/49
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
interface GigabitEthernet1/0/50
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
interface GigabitEthernet1/0/51
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
interface GigabitEthernet1/0/52
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
 snmp-agent
 snmp-agent local-engineid 800063A203D07E28128816
 snmp-agent community read public  
 snmp-agent community write private  
 snmp-agent sys-info version all
#
user-interface aux 0
 authentication-mode scheme
user-interface vty 0 15
 authentication-mode scheme
#
return

Reply

Marsh Posté le 12-12-2012 à 13:30:12    

Pour ton VLAN2, il faut que tes ports soient en untagged.


---------------
In my bed, but still_at_work.
Reply

Marsh Posté le 12-12-2012 à 13:36:49    

et voila les ports membres du Vlan 2 sont passés en untagged
#
 version 5.20, Release 1513P05
#
 sysname HP V1910 Switch
#
 domain default enable system  
#
 telnet server enable  
#
 ip ttl-expires enable
#
vlan 1
#
vlan 2
#
radius scheme system
#
domain system  
 access-limit disable  
 state active  
 idle-cut disable  
 self-service-url disable  
#
user-group system
#
local-user admin
 authorization-attribute level 3
 service-type ssh telnet terminal
#
 stp mode rstp
 stp enable
#
interface NULL0
#
interface Vlan-interface1
 ip address 192.168.2.3 255.255.255.0  
#
interface Vlan-interface2
 ip address 192.168.3.3 255.255.255.0  
#
interface GigabitEthernet1/0/1
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/2
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/3
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/4
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/5
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/6
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/7
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/8
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/9
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/10
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/11
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/12
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/13
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/14
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/15
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/16
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/17
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/18
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/19
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/20
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/21
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/22
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/23
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/24
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/25
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/26
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/27
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/28
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/29
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/30
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/31
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/32
 port link-type hybrid
 port hybrid vlan 1 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/33
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/34
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/35
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/36
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/37
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/38
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/39
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/40
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/41
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/42
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/43
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/44
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/45
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/46
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/47
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/48
 port link-type hybrid
 undo port hybrid vlan 1
 port hybrid vlan 2 untagged
 stp edged-port enable
#
interface GigabitEthernet1/0/49
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
interface GigabitEthernet1/0/50
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
interface GigabitEthernet1/0/51
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
interface GigabitEthernet1/0/52
 port link-type hybrid
 undo port hybrid vlan 1
 stp edged-port enable
#
 snmp-agent
 snmp-agent local-engineid 800063A203D07E28128816
 snmp-agent community read public  
 snmp-agent community write private  
 snmp-agent sys-info version all
#
user-interface aux 0
 authentication-mode scheme
user-interface vty 0 15
 authentication-mode scheme
#
return

Reply

Marsh Posté le 12-12-2012 à 13:55:21    

Et si tu fais à nouveau l'essai ?


---------------
In my bed, but still_at_work.
Reply

Marsh Posté le 12-12-2012 à 14:43:05    

du coup j'ai les 2vlans qui sont en untagged
Ca ne veut pas
J'arrive a pinger la vlan 1 mais pas le vlan 2
 

Reply

Marsh Posté le 12-12-2012 à 14:58:50    

Tu branches bien ton PC sur un port du VLAN 2 ? Tu a changé l'adresse IP de ton PC ?


---------------
In my bed, but still_at_work.
Reply

Marsh Posté le 12-12-2012 à 15:14:27    

bon finalement ca a marché
j'ai passé tous les ports du switch en type "access"
ils étaient en hybrid avant
de ce fait le ping passe sur les 2 vlans
 
Merci bcp pour ton aide !
 

Reply

Marsh Posté le 11-01-2013 à 18:58:58    

oui en access ça passe, mais si tu le mets en hybride il faut penser à mettre le PVID

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed