le 04-05-2023 12:49 AM
Hello,
I have a Cisco ASR901 router and I want to put an ip address on an interface but the router tells me that it does not support the command.
Here is what I did:
***
C1_B(config)#int gi0/0
C1_B(config-if)#ip add
C1_B(config-if)#ip address 192.168.1.2 255.255.255.0
IP address config under this interface is not supported on ASR901
***
I said to myself that it doesn't matter, if it doesn't work I'll create a vlan and then assign it to the interface I want but it doesn't work either.
Here is the vlan configuration and the command I did :
***
interface Vlan10
description ****int gi0/0****
ip address 192.168.1.2 255.255.255.0
ip ospf 1 area 0
C1_B(config)#int gi0/0
C1_B(config-if)#sw
C1_B(config-if)#switchport ac
C1_B(config-if)#switchport access v
C1_B(config-if)#switchport access vlan 10
This command is not supported.
***
Do you have a solution to put an IP address on an interface of a cisco ASR901?
Best Regards
Résolu ! Accéder à la solution.
le 04-05-2023 07:17 AM
Thank you for your explanation.
I did it like this:
First I configured a vlan.
interface Vlan20
description ***int gi0/0***
ip address 192.168.25.1 255.255.255.0
and then I configured the interface this way
interface GigabitEthernet0/0
no ip address
negotiation auto
service instance 20 ethernet
encapsulation untagged
bridge-domain 20
le 04-05-2023 02:07 AM
Hello @Baptiste ,
Cisco ASR 901 router does not support switch port configuration.
Try this:
C1_B(config)#interface vlan 10
C1_B(config-if)#description ****int gi0/0****
C1_B(config-if)#ip address 192.168.1.2 255.255.255.0
C1_B(config-if)#no shutdown
C1_B(config)#interface gi0/0
C1_B(config-if)#description ****int gi0/0****
C1_B(config-if)#no shutdown
C1_B(config-if)#encapsulation dot1Q 10
le 04-05-2023 03:11 AM
first you must config the SVI of vlan the add VLAN under the Gige x/x interface
le 04-05-2023 07:17 AM
Thank you for your explanation.
I did it like this:
First I configured a vlan.
interface Vlan20
description ***int gi0/0***
ip address 192.168.25.1 255.255.255.0
and then I configured the interface this way
interface GigabitEthernet0/0
no ip address
negotiation auto
service instance 20 ethernet
encapsulation untagged
bridge-domain 20
le 04-05-2023 07:20 AM
monitor traffic is there is any issue please share here
Découvrez et enregistrez vos notes préférées. Revenez pour trouver les réponses d'experts, des guides étape par étape, des sujets récents et bien plus encore.
Êtes-vous nouveau ici? Commencez par ces conseils. Comment utiliser la communauté Guide pour les nouveaux membres
Parcourez les liens directs de la Communauté et profitez de contenus personnalisés en français