Configuration d'un switch 2860_24TT

achtar888 Messages postés 7 Statut Membre -  
sethnico Messages postés 624 Statut Contributeur -
Bonjour,



Je suis en train de configurer un switch 2860_24TT, j'ai crée 4 vlans mais lorsque j'ai attribué les adressses ip 2 vlans seulement qui sont actifs. pour le 3ème vlan une erreur qui se présente:% 10.0.0.0 overlaps with Vlan2
voilà les lignes de commandes:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 1
Switch(config-vlan)#vlan 2
Switch(config-vlan)#vlan 3
Switch(config-vlan)#vlan 4
Switch(config-vlan)#interface vlan 1
Switch(config-if)#ip address 10.4.200.0 255.0.0.0
Switch(config-if)#exit
Switch(config)#interface vlan 2
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan2, changed state to up
Switch(config-if)#ip address 10.4.201.0 255.0.0.0
Switch(config-if)#exit
Switch(config)#interface vlan 3
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan3, changed state to up
Switch(config-if)#ip address 10.4.202.0 255.0.0.0
% 10.0.0.0 overlaps with Vlan2
A voir également:

4 réponses

kiki
 
Avec un masque /24 ça ira mieux je pense.

Cordialement,
2
achtar888 Messages postés 7 Statut Membre
 
merci, mais j'ai des problèmes il faut un routage inter-vlans.
j'ai crée 3 vlans sur switch 2960 et j'ai fait un lien trunk et pour le routage un routeur 2811:
configuration du switch:
Switch(config)#vlan 200
Switch(config-vlan)#name informatique
Switch(config-vlan)#vlan 201
Switch(config-vlan)#name vente
Switch(config-vlan)#vlan 202
Switch(config-vlan)#name production
Switch(config-vlan)#interface fastethernet0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface fastethernet0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 200
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface fastethernet0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 201
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface fastethernet0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 202
Switch(config-if)#end
la configuration du routeur:
Router(config)#interface fastethernet0/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upend
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet0/0.1
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
Router(config-subif)#encapsulation dot1q 200
Router(config-subif)#ip address 10.4.200.0 255.255.255.0
Bad mask /24 for address 10.4.200.0
Router(config-subif)#ip address 10.4.200.0 255.0.0.0
Router(config-subif)#exit
Router(config)#interface fastethernet0/0.2
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
Router(config-subif)#encapsulation dot1q 201
Router(config-subif)#ip address 10.4.201.0 255.0.0.0
% 10.0.0.0 overlaps with FastEthernet0/0.1
0
sethnico Messages postés 624 Statut Contributeur 69
 
Tu dois changer tes masques. Tu ne peux pas attribuer deux adresses IP d'un même réseau à deux interfaces différentes.
0
achtar888 Messages postés 7 Statut Membre
 
merci mais vraiment g pas compris g essayé plusieurs masques mais ça marche pas
pour 10.4.200.0
10.4.201.0 et 10.4.202.0 le masque n'est pas 255.0.0.0?
0
sethnico Messages postés 624 Statut Contributeur 69
 
Les adresses 10.x.x.x voudraient avoir un tel masque. Mais dans le cas de ton exemple, il te faut des sous réseaux. Tu as deux possibilités:
- Tu gardes tes adresses en prenant un masque de /24
- Tu changes tes adresses en 192.168.x.x par exemple, toujours avec un masque de type /24
0
achtar888 Messages postés 7 Statut Membre
 
merciiii pour ton aide
0
achtar888 Messages postés 7 Statut Membre
 
g pris le masque /24 ça marche pas
Router(config-subif)#ip address 10.4.200.0 255.255.255.0
Bad mask /24 for address 10.4.200.0
0
sethnico Messages postés 624 Statut Contributeur 69
 
Tu tentes d'attribuer une adresse réseau à une interface ce qui est impossible petit padawan...
Prends une adresse valide (pour un hôte). Juste au cas où également, active l'ip classless
conf t:
ip classless
0
sethnico Messages postés 624 Statut Contributeur 69
 
Alors? réglé?
0