Got it

Re-index the ifIndex values on fixed switches

Created: Mar 18, 2020 14:25:00Latest reply: Mar 31, 2020 06:20:09 187 5 0 0
  Rewarded HiCoins: 0 (problem resolved)

The question relates to fixed switches in the series S3XXX, S5XXX, S6XXX.


All interfaces get unique ifIndex values generated on boot. Due to the specifics of our Network Management System, we need to have same indexes for all physical interfaces for particular model of a switch. 


For instance, for all switches with model S5328C-EI, we need all the the physical interfaces (including the addon modules) to start and end with same index. 


Is there a command to re-number (re-index) the interfaces while the switch is running? If there is no specific command, maybe there is a workaround like restarting the service that is in charge for this?


For reference, below you can find a list of ifIndex(s) for two different switches but same model, whereas the physical interfaces have different ifIndex values.


Thank you.


Switch A (Model S5328C-EI)

RFC1213-MIB::ifDescr.1 = STRING: "InLoopBack0"
RFC1213-MIB::ifDescr.2 = STRING: "NULL0"
RFC1213-MIB::ifDescr.3 = STRING: "Console9/0/0"
RFC1213-MIB::ifDescr.4 = STRING: "MEth0/0/1"
RFC1213-MIB::ifDescr.5 = STRING: "Vlanif1"
RFC1213-MIB::ifDescr.6 = STRING: "GigabitEthernet0/0/1"
RFC1213-MIB::ifDescr.7 = STRING: "GigabitEthernet0/0/2"
RFC1213-MIB::ifDescr.8 = STRING: "GigabitEthernet0/0/3"
RFC1213-MIB::ifDescr.9 = STRING: "GigabitEthernet0/0/4"
RFC1213-MIB::ifDescr.10 = STRING: "GigabitEthernet0/0/5"
RFC1213-MIB::ifDescr.11 = STRING: "GigabitEthernet0/0/6"
RFC1213-MIB::ifDescr.12 = STRING: "GigabitEthernet0/0/7"
RFC1213-MIB::ifDescr.13 = STRING: "GigabitEthernet0/0/8"
RFC1213-MIB::ifDescr.14 = STRING: "GigabitEthernet0/0/9"
RFC1213-MIB::ifDescr.15 = STRING: "GigabitEthernet0/0/10"
RFC1213-MIB::ifDescr.16 = STRING: "GigabitEthernet0/0/11"
RFC1213-MIB::ifDescr.17 = STRING: "GigabitEthernet0/0/12"
RFC1213-MIB::ifDescr.18 = STRING: "GigabitEthernet0/0/13"
RFC1213-MIB::ifDescr.19 = STRING: "GigabitEthernet0/0/14"
RFC1213-MIB::ifDescr.20 = STRING: "GigabitEthernet0/0/15"
RFC1213-MIB::ifDescr.21 = STRING: "GigabitEthernet0/0/16"
RFC1213-MIB::ifDescr.22 = STRING: "GigabitEthernet0/0/17"
RFC1213-MIB::ifDescr.23 = STRING: "GigabitEthernet0/0/18"
RFC1213-MIB::ifDescr.24 = STRING: "GigabitEthernet0/0/19"
RFC1213-MIB::ifDescr.25 = STRING: "GigabitEthernet0/0/20"
RFC1213-MIB::ifDescr.26 = STRING: "GigabitEthernet0/0/21"
RFC1213-MIB::ifDescr.27 = STRING: "GigabitEthernet0/0/22"
RFC1213-MIB::ifDescr.28 = STRING: "GigabitEthernet0/0/23"
RFC1213-MIB::ifDescr.29 = STRING: "GigabitEthernet0/0/24"
RFC1213-MIB::ifDescr.30 = STRING: "GigabitEthernet0/1/1"
RFC1213-MIB::ifDescr.31 = STRING: "GigabitEthernet0/1/2"
RFC1213-MIB::ifDescr.32 = STRING: "Vlanif1001"
RFC1213-MIB::ifDescr.33 = STRING: "GigabitEthernet0/1/3"
RFC1213-MIB::ifDescr.34 = STRING: "GigabitEthernet0/1/4"
RFC1213-MIB::ifDescr.35 = STRING: "Eth-Trunk0"
RFC1213-MIB::ifDescr.37 = STRING: "Eth-Trunk1"


Switch B (Model S5328C-EI)

RFC1213-MIB::ifDescr.1 = STRING: "InLoopBack0"
RFC1213-MIB::ifDescr.2 = STRING: "NULL0"
RFC1213-MIB::ifDescr.3 = STRING: "Console9/0/0"
RFC1213-MIB::ifDescr.5 = STRING: "GigabitEthernet0/0/1"
RFC1213-MIB::ifDescr.6 = STRING: "GigabitEthernet0/0/2"
RFC1213-MIB::ifDescr.7 = STRING: "GigabitEthernet0/0/3"
RFC1213-MIB::ifDescr.8 = STRING: "GigabitEthernet0/0/4"
RFC1213-MIB::ifDescr.9 = STRING: "GigabitEthernet0/0/5"
RFC1213-MIB::ifDescr.10 = STRING: "GigabitEthernet0/0/6"
RFC1213-MIB::ifDescr.11 = STRING: "GigabitEthernet0/0/7"
RFC1213-MIB::ifDescr.12 = STRING: "GigabitEthernet0/0/8"
RFC1213-MIB::ifDescr.13 = STRING: "GigabitEthernet0/0/9"
RFC1213-MIB::ifDescr.14 = STRING: "GigabitEthernet0/0/10"
RFC1213-MIB::ifDescr.15 = STRING: "GigabitEthernet0/0/11"
RFC1213-MIB::ifDescr.16 = STRING: "GigabitEthernet0/0/12"
RFC1213-MIB::ifDescr.17 = STRING: "GigabitEthernet0/0/13"
RFC1213-MIB::ifDescr.18 = STRING: "GigabitEthernet0/0/14"
RFC1213-MIB::ifDescr.19 = STRING: "GigabitEthernet0/0/15"
RFC1213-MIB::ifDescr.20 = STRING: "GigabitEthernet0/0/16"
RFC1213-MIB::ifDescr.21 = STRING: "GigabitEthernet0/0/17"
RFC1213-MIB::ifDescr.22 = STRING: "GigabitEthernet0/0/18"
RFC1213-MIB::ifDescr.23 = STRING: "GigabitEthernet0/0/19"
RFC1213-MIB::ifDescr.24 = STRING: "GigabitEthernet0/0/20"
RFC1213-MIB::ifDescr.25 = STRING: "GigabitEthernet0/0/21"
RFC1213-MIB::ifDescr.26 = STRING: "GigabitEthernet0/0/22"
RFC1213-MIB::ifDescr.27 = STRING: "GigabitEthernet0/0/23"
RFC1213-MIB::ifDescr.28 = STRING: "GigabitEthernet0/0/24"
RFC1213-MIB::ifDescr.29 = STRING: "XGigabitEthernet0/0/1"
RFC1213-MIB::ifDescr.30 = STRING: "XGigabitEthernet0/0/2"
RFC1213-MIB::ifDescr.31 = STRING: "XGigabitEthernet0/0/3"
RFC1213-MIB::ifDescr.32 = STRING: "XGigabitEthernet0/0/4"
RFC1213-MIB::ifDescr.33 = STRING: "Vlanif1001"
RFC1213-MIB::ifDescr.34 = STRING: "Eth-Trunk0"
RFC1213-MIB::ifDescr.36 = STRING: "Eth-Trunk1"
RFC1213-MIB::ifDescr.37 = STRING: "Eth-Trunk2"
RFC1213-MIB::ifDescr.38 = STRING: "Eth-Trunk3"
RFC1213-MIB::ifDescr.39 = STRING: "Eth-Trunk4"
RFC1213-MIB::ifDescr.40 = STRING: "Eth-Trunk5"
RFC1213-MIB::ifDescr.41 = STRING: "Eth-Trunk6"
RFC1213-MIB::ifDescr.42 = STRING: "Eth-Trunk7"
RFC1213-MIB::ifDescr.43 = STRING: "Eth-Trunk8"



  • x
  • convention:

Featured Answers

Recommended answer

Popeye_Wang
Admin Created Mar 19, 2020 01:26:05 Helpful(1) Helpful(1)

Hi,

The index numbers are related to the order in which you configure the logical interfaces. They cannot be modified separately.  

Please try to perform the following steps to reset the configuration and the index numbers:

Step 1: reset the configuration and do not save the configuration.

<Switch>reset saved-configuration

Step 2: reset constant-if index map in diagnose view.

<Switch>sys

Enter system view, return user view with Ctrl+Z.

[Switch]diag

Enter diagnosis view, return user view with Ctrl+Z.

Info: The diagnosis view is used to debug system hardware and software. Misuse of certain commands in this view may affect system performance. Therefore, use these commands with the guidance of Huawei engineers.

[Switch-102-diagnose]reset constant-ifindex map

Step 3:  Save the configuration and reboot the device.

Refer to https://support.huawei.com/enterprise/en/knowledge/EKB1001957372

I hope this helps.


View more
  • x
  • convention:

All Answers
chenhui
chenhui Admin Created Mar 18, 2020 14:50:50 Helpful(1) Helpful(1)

Hi @ispace,
Are you trying to unify the index number or the index description?
View more
  • x
  • convention:

Datawizard
Datawizard Created Mar 18, 2020 23:36:34 Helpful(0) Helpful(0)

Thanks for sharing
View more
  • x
  • convention:

Popeye_Wang
Popeye_Wang Admin Created Mar 19, 2020 01:26:05 Helpful(1) Helpful(1)

Hi,

The index numbers are related to the order in which you configure the logical interfaces. They cannot be modified separately.  

Please try to perform the following steps to reset the configuration and the index numbers:

Step 1: reset the configuration and do not save the configuration.

<Switch>reset saved-configuration

Step 2: reset constant-if index map in diagnose view.

<Switch>sys

Enter system view, return user view with Ctrl+Z.

[Switch]diag

Enter diagnosis view, return user view with Ctrl+Z.

Info: The diagnosis view is used to debug system hardware and software. Misuse of certain commands in this view may affect system performance. Therefore, use these commands with the guidance of Huawei engineers.

[Switch-102-diagnose]reset constant-ifindex map

Step 3:  Save the configuration and reboot the device.

Refer to https://support.huawei.com/enterprise/en/knowledge/EKB1001957372

I hope this helps.


View more
  • x
  • convention:

ispace
ispace Created Mar 19, 2020 11:02:50 Helpful(0) Helpful(0)

Answer to @chenhui:

We need to unify the map between the ifIndex and the interfaces. For instance, for all switches of the model S5328C-EI, we need the interface GigabitEthernet0/0/1 to have ifIndex of 6, the interface GigabitEthernet0/0/2 to have the ifIndex 7, and so on. On some switches the GigabitEthernet0/0/1 starts at ifIndex 6, on other switches that were rebooted after creating virtual interfaces, the GigabitEthernet0/0/1 starts at 7, for example:

RFC1213-MIB::ifDescr.1 = STRING: "InLoopBack0"
RFC1213-MIB::ifDescr.2 = STRING: "NULL0"
RFC1213-MIB::ifDescr.3 = STRING: "Console9/0/0"
RFC1213-MIB::ifDescr.4 = STRING: "MEth0/0/1"
RFC1213-MIB::ifDescr.5 = STRING: "Vlanif1"
RFC1213-MIB::ifDescr.6 = STRING: "Vlanif1001"
RFC1213-MIB::ifDescr.7 = STRING: "GigabitEthernet0/0/1"




Answer to @Popeye_Wang


Is there a solution that does not involve configuration reset and reboot? We have more than 200 switches in the network and the downtime is not acceptable.

View more
  • x
  • convention:

Popeye_Wang
Popeye_Wang Admin Created Mar 31, 2020 06:20:09 Helpful(1) Helpful(1)

Posted by ispace at 2020-03-19 11:02 Answer to @chenhui:We need to unify the map between the ifIndex and the interfaces. For instance, fo ...
I don't know such a method. You can contact tac and ask the R&D guys if there is a better way.
https://e.huawei.com/en/service-hotline-query
View more
  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community