Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1480 connectés 

  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Réseaux

  IPaddresses may not be configured on L2 links - routeur cisco

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

IPaddresses may not be configured on L2 links - routeur cisco

n°120984
romain2525
Posté le 16-05-2014 à 11:50:13  profilanswer
 

Bonjour,  
 
Je dispose d'un routeur cisco 878 que je n'arrive pas à configurer. Il m'a été donné formaté, donc il n'y a rien dessus.  
 
Voilà le problème que j'ai quand j'essaye de configurer une carte réseau.  
 
Router(config)#interface FastEthernet 1  
 
Router(config-if)#ip address 192.168.1.1 255.255.255.0  
 
% IP addresses may not be configured on L2 links.  
 
On m'a donc dit de passer par le vlan.  
 
Le problème est que pour le faire je dois ajouter des vlans à la database.  
 
Or la database ne peut avoir maximum qu'un seul vlan.  
 
Et quand j'essaye d'ajouter un vlan à la database voilà ce que j'ai :  
 
http://image.noelshack.com/fichier [...] titre6.jpg  
 
Et voilà la configuration finale que j'ai sur les interfaces :  
 
http://image.noelshack.com/fichier [...] titre8.jpg  
 
http://image.noelshack.com/fichier [...] titre5.jpg  
 
Et je ne peut toujours pas configurer mes cartes réseaux ethernet 0, 1 2 ou 3. J'ai toujours le même message IPaddresses may not be configured on L2 links.  
 
J'ai essayé via une configuration graphique depuis un navigateur web mais à partir d'une certaine étape j'ai beau cliquer sur suivant rien ne se passe. Pas de messages d'erreurs, pas de plantages, simplement ça clique dans le vide.  
 
J'ai ouvert un autre sujet avec beaucoup de captures d'écrans à cette adresse :  
http://fr.openclassrooms.com/forum [...] rte-reseau  
 
Merci d'avance à ceux qui pourront m'aider.  
 
Cordialement.

mood
Publicité
Posté le 16-05-2014 à 11:50:13  profilanswer
 

n°120989
tifrere
Junos power
Posté le 16-05-2014 à 12:36:24  profilanswer
 

"sh run int fe1" donne quoi ?
 
si tu as un switchport sur cette interface, tente un "no switchport" et remet l'IP dessus

n°120992
Misssardon​ik
prévisible a posteriori
Posté le 16-05-2014 à 12:56:44  profilanswer
 

ben oui, sur cisco 870 le nombre de vlans est très limité (le message d'erreur que tu obtiens est clair), là tu es bloqué à 1, tu peux peut-être passer à 2 voire 4 en changeant de licence mais pas plus.

 

En l'état tu dois pouvoir rajouter une adresse IP en secondary sur le même vlan mais c'est tout.


Message édité par Misssardonik le 16-05-2014 à 12:57:43

---------------
Que va-t-il se passer cette gelgamar ? vous le découvrirez janamont à 20h
n°120995
romain2525
Posté le 16-05-2014 à 14:03:40  profilanswer
 

Merci de vos réponses.
 
Voilà les commandes que je tape (peut être que ce sera plus parlant pour certains) :
 
routeur2#  
routeur2#sh  
routeur2#show ip  
routeur2#show ip inter  
routeur2#show ip interface brief  
Interface IP-Address OK? Method Status Protocol  
FastEthernet0 unassigned YES unset up down  
FastEthernet1 unassigned YES unset up down  
FastEthernet2 unassigned YES unset up down  
FastEthernet3 unassigned YES unset up down  
BRI0 unassigned YES NVRAM administratively down down  
BRI0:1 unassigned YES unset administratively down down  
BRI0:2 unassigned YES unset administratively down down  
Vlan1 10.10.10.2 YES NVRAM up down  
routeur2#conf t  
routeur2#conf terminal  
Enter configuration commands, one per line. End with CNTL/Z.  
routeur2(config)#inter  
routeur2(config)#interface fa  
routeur2(config)#interface fastEthernet 0  
routeur2(config-if)#ip  
routeur2(config-if)#ip add  
routeur2(config-if)#ip address 192.168.1.1 255.255.255.0  
 
% IP addresses may not be configured on L2 links.  
 
routeur2(config-if)#exit  
routeur2(config)#vlan 2  
^  
% Invalid input detected at '^' marker.  
 
routeur2(config)#exit  
routeur2#vla  
*Mar 1 00:15:42.243: %SYS-5-CONFIG_I: Configured from console by cisco on consolen  
routeur2#vlan dat  
routeur2#vlan database  
routeur2(vlan)#vlan  
routeur2(vlan)#vlan 2  
Vlan can not be added. Maximum number of 1 vlan(s) in the database.  
 
routeur2(vlan)#exit  
APPLY completed.  
Exiting....  
routeur2#conf t  
Enter configuration commands, one per line. End with CNTL/Z.  
routeur2(config)#conf t  
routeur2(config)#conf t  
^  
% Invalid input detected at '^' marker.  
 
routeur2(config)#inter  
routeur2(config)#interface fa  
routeur2(config)#interface fastEthernet 0  
routeur2(config-if)#sw  
routeur2(config-if)#switchport acce  
routeur2(config-if)#switchport access vlan  
routeur2(config-if)#switchport access vlan 1  
routeur2(config-if)#exit  
routeur2(config)#exit  
routeur2#  
*Mar 1 00:16:17.155: %SYS-5-CONFIG_I: Configured from console by cisco on consolesh  
routeur2#show ip  
routeur2#show ip inter  
routeur2#show ip interface breif  
routeur2#show ip interface brief  
Interface IP-Address OK? Method Status Protocol  
FastEthernet0 unassigned YES unset up down  
FastEthernet1 unassigned YES unset up down  
FastEthernet2 unassigned YES unset up down  
FastEthernet3 unassigned YES unset up down  
BRI0 unassigned YES NVRAM administratively down down  
BRI0:1 unassigned YES unset administratively down down  
BRI0:2 unassigned YES unset administratively down down  
Vlan1 10.10.10.2 YES NVRAM up down  
routeur2#trololo
 
Tifrere => quand je tape ce que tu viens de dire voilà ce que j'ai :
Username: cisco
Password:
routeur2#sh run
routeur2#sh running-config int
routeur2#sh running-config interface fa
routeur2#sh running-config interface fastEthernet 1
Building configuration...
 
Current configuration : 31 bytes
!
interface FastEthernet1
end
 
routeur2#sh running-config interface fastEthernet 0
Building configuration...
 
Current configuration : 31 bytes
!
interface FastEthernet0
end
 
routeur2#conf
routeur2#configure t
routeur2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
routeur2(config)#inter
routeur2(config)#interface fa
routeur2(config)#interface fastEthernet 0
routeur2(config-if)#no sw
routeur2(config-if)#no switchport
% Incomplete command.
 
routeur2(config-if)#no switchport ?
  access    Set access mode characteristics of the interface
  mode      Set trunking mode of the interface
  priority  Set 802.1p priorities
  trunk     Set trunking characteristics of the interface
  voice     Voice appliance attributes
 
routeur2(config-if)#no switchport a
routeur2(config-if)#no switchport access ?
  vlan  Set VLAN when interface is in access mode
 
routeur2(config-if)#no switchport access vl
routeur2(config-if)#no switchport access vlan 1
routeur2(config-if)#ip add
routeur2(config-if)#ip address 192.168.1.1 255.255.255.0
 
% IP addresses may not be configured on L2 links.
 
routeur2(config-if)#
 
 

n°120996
tifrere
Junos power
Posté le 16-05-2014 à 14:08:52  profilanswer
 

tu peux copier/coller la config de fastethernet1 ?

n°120997
romain2525
Posté le 16-05-2014 à 14:11:50  profilanswer
 

Voilà :
 
routeur2#sh ip interface fastEthernet 1
FastEthernet1 is up, line protocol is down
  Internet protocol processing disabled
routeur2#sh
routeur2#show ip int
routeur2#show ip interface brief
routeur2#show ip interface brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0              unassigned      YES unset  up                    down
FastEthernet1              unassigned      YES unset  up                    down
FastEthernet2              unassigned      YES unset  up                    down
FastEthernet3              unassigned      YES unset  up                    down
BRI0                       unassigned      YES NVRAM  administratively down down
BRI0:1                     unassigned      YES unset  administratively down down
BRI0:2                     unassigned      YES unset  administratively down down
Vlan1                      10.10.10.2      YES NVRAM  up                    down
routeur2#

n°121006
Misssardon​ik
prévisible a posteriori
Posté le 16-05-2014 à 15:33:29  profilanswer
 

tu te fatigues pour rien, les messages d'erreur sont clairs et je t'ai donné la réponse dans mon dernier post. Si tu ne me crois pas regarde ici :
 
http://www.cisco.com/c/en/us/produ [...] 8a976.html
 
licence advanced security (par défaut) :

Citation :

Support for 2 VLANs with Base Image. One VLAN dedicated to DMZ.


 
licence Advanced IP Services :

Citation :

4 802.1q VLANs on Advanced IP Services IOS image


---------------
Que va-t-il se passer cette gelgamar ? vous le découvrirez janamont à 20h
n°121008
romain2525
Posté le 16-05-2014 à 15:53:34  profilanswer
 

Ce routeur (enfin ces puisque j'en ai deux) sont les anciens routeurs du prestataire VPN de l'entreprise. Ils ont depuis été remis à 0 et je dois installer un VPN dessus (pour ça il faudrait déjà que je puisse mettre une adresse IP sur les cartes réseaux.
 
Les routeurs fonctionnent très bien puisque c'est sur ceux là même que l'ancien VPN était mis en place. A moi d'en refaire un nouveau à partir de 0. ;)

n°121009
Misssardon​ik
prévisible a posteriori
Posté le 16-05-2014 à 15:58:04  profilanswer
 

je ne doute pas qu'ils fonctionnent bien, seulement avec la licence de base tu es limité à 1 vlan (+1 pour la DMZ, je ne sais pas ce que c'est), tu peux faire tout ce que tu veux tu seras toujours limité par ça.
Comme je te l'ai dit en solution de contournement tu peux rajouter des adresses IP secondaires sur la même interface, mais ça restera donc dans le même vlan.


Message édité par Misssardonik le 16-05-2014 à 15:58:28

---------------
Que va-t-il se passer cette gelgamar ? vous le découvrirez janamont à 20h
n°121011
romain2525
Posté le 16-05-2014 à 15:58:47  profilanswer
 

On me dit sur un autre forum que c'est à cause de la version IOS des routeurs.  
Cisco IOS Software, C870 Software (C870-ADVSECURITYK9-M),  
 
Ca ne marche pas avec cette version d'IOS , il faut ADVIPSERVICESK9. Je l'ai téléchargé, reste maintenant à la faire passer de mon pc vers le routeur pour procéder à la mise à jour. Pour ça je vais avoir  besoin d'aide.

mood
Publicité
Posté le 16-05-2014 à 15:58:47  profilanswer
 

n°121013
romain2525
Posté le 16-05-2014 à 16:11:34  profilanswer
 

Misssardonik :
Ce n'est pas grave puisque je n'ai besoin que de 2 adresses IP par routeur (une en LAN et une en WAN pour mettre en place mon VPN).
Merci de ton aide.

n°121051
romain2525
Posté le 19-05-2014 à 16:04:42  profilanswer
 

Je viens de mettre à jour l'IOS. Je n'ai pas plus de résultat. Il est toujours impossible de configurer les cartes réseaux. En revanche, je peux créer autant de vlan que je le souhaite (avant j'étais limité à 1 seul).  
Pour ce qui est de l'interface web, toujours le même plantage à partir de la même étape.  
 
Je vais essayer avec une autre version IOS.  
 
En attendant voici les commandes que j'ai tapé récemment :  
yourname#sh ver  
Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.4(4)T7, RELEASE SOFTWARE (fc1)  
Technical Support: http://www.cisco.com/techsupport  
Copyright (c) 1986-2006 by Cisco Systems, Inc.  
Compiled Wed 29-Nov-06 00:43 by kellythw  
 
ROM: System Bootstrap, Version 12.3(8r)YI4, RELEASE SOFTWARE  
 
yourname uptime is 50 minutes  
System returned to ROM by reload  
System image file is "flash:conf.bin"  
Last reload reason: Reload Command  
 
 
 
This product contains cryptographic features and is subject to United  
States and local country laws governing import, export, transfer and  
use. Delivery of Cisco cryptographic products does not imply  
third-party authority to import, export, distribute or use encryption.  
Importers, exporters, distributors and users are responsible for  
compliance with U.S. and local country laws. By using this product you  
agree to comply with applicable laws and regulations. If you are unable  
to comply with U.S. and local laws, return this product immediately.  
 
A summary of U.S. laws governing Cisco cryptographic products may be found at:  
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html  
 
If you require further assistance please contact us by sending email to  
export@cisco.com.  
 
Cisco 878 (MPC8272) processor (revision 0x200) with 118784K/12288K bytes of memory.  
Processor board ID FCZ112621V3  
MPC8272 CPU Rev: Part Number 0xC, Mask Number 0x10  
4 FastEthernet interfaces  
1 ISDN Basic Rate interface  
128K bytes of non-volatile configuration memory.  
24576K bytes of processor board System flash (Intel Strataflash)  
 
Configuration register is 0x3922  
 
yourname#  
yourname#  
yourname#  
yourname#conf  
yourname#configure t  
yourname#configure terminal  
Enter configuration commands, one per line. End with CNTL/Z.  
yourname(config)#exit  
yourname#sh  
yourname#show ip  
*Mar 1 04:21:48.011: %SYS-5-CONFIG_I: Configured from console by cisco on console  
yourname#show ip  
yourname#show ip  
yourname#show ip inter  
yourname#show ip interface brief  
yourname#show ip interface brief  
Interface IP-Address OK? Method Status Protocol  
FastEthernet0 unassigned YES unset down down  
FastEthernet1 unassigned YES unset up down  
FastEthernet2 unassigned YES unset up down  
FastEthernet3 unassigned YES unset up down  
BRI0 unassigned YES NVRAM administratively down down  
BRI0:1 unassigned YES unset administratively down down  
BRI0:2 unassigned YES unset administratively down down  
Vlan1 10.10.10.1 YES NVRAM up down  
Vlan10 192.168.1.1 YES manual up down  
yourname#conf  
yourname#configure t  
yourname#configure terminal  
Enter configuration commands, one per line. End with CNTL/Z.  
yourname(config)#inter  
yourname(config)#interface fa  
yourname(config)#interface fastEthernet 1  
yourname(config-if)#ip  
yourname(config-if)#ip add  
yourname(config-if)#ip address 192.168.1.1 255.255.255.0  
 
% IP addresses may not be configured on L2 links.  
 
yourname(config-if)#sw  
yourname(config-if)#switchport acc  
yourname(config-if)#switchport access vl  
yourname(config-if)#switchport access vlan 10  
yourname(config-if)#ip address 192.168.1.1 255.255.255.0  
 
% IP addresses may not be configured on L2 links.  
 
yourname(config-if)#exit  
yourname(config)#exit  
yourname#configure terminal  
*Mar 1 04:22:31.219: %SYS-5-CONFIG_I: Configured from console show ip interface brief  
Interface IP-Address OK? Method Status Protocol  
FastEthernet0 unassigned YES unset down down  
FastEthernet1 unassigned YES unset up down  
FastEthernet2 unassigned YES unset up down  
FastEthernet3 unassigned YES unset up down  
BRI0 unassigned YES NVRAM administratively down down  
BRI0:1 unassigned YES unset administratively down down  
BRI0:2 unassigned YES unset administratively down down  
Vlan1 10.10.10.1 YES NVRAM up down  
Vlan10 192.168.1.1 YES manual up down  
yourname#
 
*******************************
 
Pour faire mon vpn j'ai besoin de 2 adresses IP par routeur (une en lan et une en wan). Donc je peux le faire sur 2 adresses IP vlan ?  
Ou suis je obligé que ce soit du fast ethernet ?

n°121052
Misssardon​ik
prévisible a posteriori
Posté le 19-05-2014 à 16:07:01  profilanswer
 

ben puisque maintenant tu peux faire plusieurs vlans, tu peux faire 2 vlans avec une IP par vlan, c'est le plus logique.


---------------
Que va-t-il se passer cette gelgamar ? vous le découvrirez janamont à 20h
n°121060
romain2525
Posté le 20-05-2014 à 08:37:26  profilanswer
 

Ok merci tout le monde. Problème résolu.

 

En revanche pour l'un d'eux j'ai eu la main un peu lourde : j'ai tapé la commande

 

> en

 

# erase startup-config

 

# reload

 

Après ça je me suis retrouvé en mode rommon. Alors j'ai cherché comment m'en sortir, j'ai essayé des choses puis j'ai redémarré.
Et maintenant je n'arrive plus à m'y connecter via putty et le port console, ni part liaison réseau (et il ne me donne plus d'adresse dhcp). Il y a un bouton reset mais rien n'y fait. J'ai appuyé dessus pendant 5 secondes au boot du routeur (comme pour l'autre (ça avait marché)) mais pour celui ci rien n'y fait.
Alors je ne sais pas quoi faire, je ne peux plus le configurer ni le reset.


Message édité par romain2525 le 20-05-2014 à 11:28:54
n°121120
romain2525
Posté le 22-05-2014 à 10:01:08  profilanswer
 

Problèmes résolus sur ce topic :
 
http://www.commentcamarche.net/for [...] n-l2-links


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Réseaux

  IPaddresses may not be configured on L2 links - routeur cisco

 

Sujets relatifs
accée à distance via l'exterieur en ssh sur un routeur cisco 871Fonction WDS Cisco :single-point-setup
Configurer un routeur wifi derrière un autre routeur réseauCisco 1803 préhistorique, besoin d'aide.
IOS pour GNS3 - Cisco 1803 et 2621 (de base pas xm, le 2621 point)Configuration de plusieurs switchs cisco en même temps.
CISCO WLC 5508 non pingable, au secoursportail captif cisco
Plus de sujets relatifs à : IPaddresses may not be configured on L2 links - routeur cisco


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR