annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 
cancel
433
Visites
1
Compliment
4
Réponses

How to assign an IP address to a cisco asr901 interface?

Baptiste
Spotlight
Spotlight

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

1 SOLUTION APPROUVÉE

Solutions approuvées

Baptiste
Spotlight
Spotlight

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

Voir la solution dans l'envoi d'origine

4 RÉPONSES 4

M02@rt37
VIP
VIP

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

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

https://community.cisco.com/t5/other-service-provider-subjects/assigning-ip-address-asr-900/td-p/2928161

first you must config the SVI of vlan the add VLAN under the Gige  x/x interface 

Baptiste
Spotlight
Spotlight

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

monitor traffic is there is any issue please share here

Mise en Route
Bienvenue dans la Communauté !

La communauté est un hub pour vous connecter avec vos pairs et les spécialistes Cisco, pour demander de l'aide, partager votre expertise, développer votre réseau et évoluer professionnellement.
Vous êtes un nouvel arrivant ? Cliquez ici pour en savoir plus.

Nous voulons que votre navigation soit la meilleure, donc vous trouverez des liens pour vous aider à être rapidement familiarisé avec la Communauté Cisco :