---
title: AIDC Intelligent Routing
slug: aidc/aidc-intelligent-routing
description: aidc intelligent routing
createdAt: 2025-12-01T11:11:10.000Z
---

## <font color="#1d50a2">AIDC Intelligent Routing View</font>

<font color="#1d05a2">Table 1 AIDC Intelligent Routing View</font>

| **Command**                                            | **Purpose**                                              |
| ------------------------------------------------------ | -------------------------------------------------------- |
| **show router-type**                                   | Display the type of role the device performs in network. |
| **show ai-network summary**                            | Display AI-network summary configuration.                |
| **show ai-network instance** \{**all**\|*instance-id*} | Display AI-network instance configuration.               |

### <font color="#1d50a2">show router-type</font>

**\[Command]**
**show router-type**

**\[Purpose]**
Display the type of role the device performs in network.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show router-type
router-type : leaf
```

### <font color="#1d50a2">show ai-network summary</font>

**\[Command]**
**show ai-network summary**

**\[Purpose]**
Display AI-network summary configuration

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show ai-network summary
AI NETWORK INFO :
    ai network mode :  static
    ai network alb :  enable
DOWNLINK :
    downlink list :  0/0,0/1,0/2,0/3,0/4,0/5,0/6,0/7
    use bgp link local :  true
```

### <font color="#1d50a2">show ai-network instance \{all|*instance-id*\}</font>

**\[Command]**
**show ai-network instance** \{**all**|*instance-id*}

**\[Purpose]**
Display AI-network instance configuration

**\[Parameters]**

| **Parameter** | **Description**           |
| ------------- | ------------------------- |
| *instance-id* | Instance ID, range 1-1024 |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show ai-network instance all
AI NETWORK Instance : 10
    downlink list :  0/12-0/14
    downlink mode :  arp
    downlink iplist :  12.0.0.10,12.0.0.11,13.0.0.10,13.0.0.11,14.0.0.10,14.0.0.11

DOWN to UP PORT MAP :
+-------------+-----------+
| DOWN PORT   | UP PORT   |
+=============+===========+
| 0/12        | 0/4       |
+-------------+-----------+
| 0/13        | 0/5       |
+-------------+-----------+
| 0/14        | 0/6       |
+-------------+-----------+

ROUTE TABLE :
vrf     Prefix       Ifname    Weight    Local or Remote
-----  -----------  --------  --------  -----------------
vrf 10  12.0.0.10    0/12                Local
vrf 10  13.0.0.10    0/13                Local
vrf 10  21.0.2.0/24  vlan5               Remote
vrf 10  21.0.3.0/24  0/7.7               Remote
vrf 10  fe80         vlan5               Remote

NEIGH TABLE :
Ifname    IP         Neigh Mac          Family    Extern Learn
--------  ---------  -----------------  --------  --------------
0/12      12.0.0.10  00:10:12:00:00:00  IPv4      false
0/13      13.0.0.10  00:10:12:00:00:02  IPv4      false
```

## <font color="#1d50a2">AIDC Intelligent Routing Config</font>

<font color="#1d05a2">Table 2 AIDC Intelligent Routing Config</font>

| **Command**                                                   | **Purpose**                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| **router-type** \{**leaf**\|**spine}**                        | Configure the type of role the device performs in the network. |
| **ai-network mode** \{**static**\|**dynamic**}\[**alb**]      | Configure the mode of AI network.                              |
| **ai-network uplink-list** \{*interface-list*\|**default**}   | Configure AI-network uplink interface.                         |
| **ai-network downlink-list** \{*interface-list*\|**default**} | Configure AI-network downlink interface.                       |
| **ai-network uplink** \{**bgp-link-local**\|**bgp-normal**}   | Configure AI-network uplink BGP neighbor mode.                 |
| **ai-network downlink** \{**bgp-link-local**\|**bgp-normal**} | Configure AI-network downlink BGP neighbor mode.               |
| **ai-network instance** *instance-id*                         | Configure AI-network instance.                                 |
| **description** *description*                                 | Configure AI network instance description.                     |
| **downlink-list** \{*interface-list*\|**default**}            | Configure the AI-network downlink interface.                   |
| **downlink-mode** \{**arp**\|**bgp**}                         | Configure AI-network downlink routing mode.                    |
| **ip-list** *ip-list*                                         | Configure AI-network downlink IP list in ARP mode.             |
| **ethernet** *interface-name ip-list*                         | Configure AI-network downlink IP list in BGP mode.             |

### <font color="#1d50a2">router-type \{leaf|spine\}</font>

**\[Command]**
**router-type** \{**leaf**|**spine**}

**\[Purpose]**
Configure the type of role the device performs in the network.

**\[View]**
Global Configuration View.

**\[Notes]**
Default type is leaf.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# router-type spine
```

### <font color="#1d50a2">ai-network mode \{static|dynamic\}\[alb\]</font>

**\[Command]**
**ai-network mode** \{**static**|**dynamic**}\[**alb**]

**\[Purpose]**
Configure the mode of AI network.

**\[Parameters]**

| **Parameter** | **Description**                                        |
| ------------- | ------------------------------------------------------ |
| **alb**       | Enable the linkage between intelligent routing and ARS |

**\[View]**
Global Configuration View.

**\[Notes]**
Default mode is static.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network mode dynamic
or
sonic# configure
sonic(config)# ai-network mode dynamic alb
```

### <font color="#1d50a2">ai-network uplink-list \{*interface-list*|default\}</font>

**\[Command]**
**ai-network uplink-list** \{*interface-list*|**default**}

**\[Purpose]**
Configure AI-network uplink interface

**\[Parameters]**

| **Parameter**    | **Description**                                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| *interface-list* | List of interfaces, which need to be physical Layer 3 ports, can be configured with one or more interfaces(0/0-0/64, 0/128). |
| **default**      | Using the default configuration, half of the ports above the front panel are uplink ports                                    |

**\[View]**
Global Configuration View

**\[Notes]**
Only supported when Router type is **Leaf**.
Run command **no ai-network uplink-list** to delete AI-network uplink interface configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network uplink-list 0/40,0/124
```

### <font color="#1d50a2">ai-network downlink-list \{*interface-list*|default\}</font>

**\[Command]**
**ai-network downlink-list** \{*interface-list*|**default**}

**\[Purpose]**
Configure AI-network downlink interface

**\[Parameters]**

| **Parameter**    | **Description**                                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| *interface-list* | List of interfaces, which need to be physical Layer 3 ports, can be configured with one or more interfaces(0/0-0/64, 0/128). |
| **default**      | Using the default configuration, half of the ports above the front panel are downlink ports                                  |

**\[View]**
Global Configuration View

**\[Notes]**
Only supported when router type is **Spine**.
Run command **no ai-network downlink-list** to delete AI-network downlink interface configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network downlink-list 0/40,0/124
```

### <font color="#1d50a2">ai-network uplink \{bgp-link-local|bgp-normal\}</font>

**\[Command]**
**ai-network uplink** \{**bgp-link-local**|**bgp-normal**}

**\[Purpose]**
Configure AI-network uplink BGP neighbor mode

**\[Parameters]**

| **Parameter**      | **Description**                                               |
| ------------------ | ------------------------------------------------------------- |
| **bgp-link-local** | Automatically create BGP neighbors with interface link local. |
| **bgp-normal**     | Select to manually configure BGP neighbors.                   |

**\[View]**
Global Configuration View

**\[Notes]**
Only supported when Router type is **Leaf**.
Run command **no ai-network uplink** \{**bgp-link-local**|**bgp-normal**} to delete AI-network uplink BGP neighbor mode configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network uplink bgp-link-local
```

### <font color="#1d50a2">ai-network downlink \{bgp-link-local|bgp-normal\}</font>

**\[Command]**
**ai-network downlink** \{**bgp-link-local**|**bgp-normal**}

**\[Purpose]**
Configure AI-network downlink BGP neighbor mode.

**\[Parameters]**

| **Parameter**      | **Description**                                              |
| ------------------ | ------------------------------------------------------------ |
| **bgp-link-local** | Automatically create BGP neighbors with interface link local |
| **bgp-normal**     | Select to manually configure BGP neighbors                   |

**\[View]**
Global Configuration View

**\[Notes]**
Only supported when Router type is **Spine**.
Run command **no ai-network downlink** \{**bgp-link-local**|**bgp-normal**} to delete AI-network downlink BGP neighbor mode configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network downlink bgp-link-local
```

### <font color="#1d50a2">ai-network instance instance-id</font>

**\[Command]**
**ai-network instance** *instance-id*

**\[Purpose]**
Configure an AI-network instance.

**\[Parameters]**

| **Parameter** | **Description**           |
| ------------- | ------------------------- |
| *instance-id* | Instance ID, range 1-1024 |

**\[View]**
Global Configuration View

**\[Notes]**
Only supported when Router type is **Leaf**.
Run command **no ai-network instance** *instance-id* to delete AI-network instance configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network instance 10
```

### <font color="#1d50a2">description *description*</font>

**\[Command]**
**description** *description*

**\[Purpose]**
Configure AI network instance description

**\[Parameters]**

| **Parameter** | **Description**                         |
| ------------- | --------------------------------------- |
| *description* | Description information, in string form |

**\[View]**
AI-network instance configuration view

**\[Notes]**
Run command **no description** to delete description.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network instance 10
sonic(config-ai-network-10)# description test
```

### <font color="#1d50a2">downlink-list \{*interface-list*|default\}</font>

**\[Command]**
**downlink-list** \{*interface-list*|**default**}

**\[Purpose]**
Configure the AI-network downlink interface

**\[Parameters]**

| **Parameter**    | **Description**                                                                                                                                                                                                              |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *interface-list* | The interface list can be configured with one or more interfaces; ARP mode supports Layer 3 physical interfaces (0/0-0/64, 0/128) and VLAN interfaces (VLAN64, VLAN128); BGP mode only supports Layer 3 physical interfaces. |
| default          | Using the default configuration, bottom half of front panel ports                                                                                                                                                            |

**\[View]**
AI-network instance configuration view

**\[Notes]**
Run command **no ai-network downlink-list** to delete AI-network downlink interface configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network instance 10
sonic(config-ai-network-10)# downlink-list 0/120,0/244
or
sonic(config)# ai-network instance 10
sonic(config-ai-network-10)# downlink-list Vlan32
```

### <font color="#1d50a2">downlink-mode \{arp|bgp\}</font>

**\[Command]**
**downlink-mode** \{**arp**|**bgp**}

**\[Purpose]**
Configure AI-network downlink routing mode.

**\[Parameters]**

| **Parameter** | **Description** |
| ------------- | --------------- |
| **arp**       | ARP mode        |
| **bgp**       | BGP mode        |

**\[View]**
AI-network instance configuration view

**\[Notes]**
Run command **no downlink-mode** \{**arp**|**bgp**} to delete AI-network downlink routing mode configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network instance 10
sonic(config-ai-network-10)# downlink-mode arp
```

### <font color="#1d50a2">ip-list *ip-list*</font>

**\[Command]**
**ip-list** *ip-list*

**\[Purpose]**
Configure AI-network downlink IP address list in ARP mode.

**\[Parameters]**

| **Parameter** | **Description**              |
| ------------- | ---------------------------- |
| *ip-list*     | IP address list, 32-bit only |

**\[View]**
AI-network instance ARP mode configuration view

**\[Notes]**
Run command **no ip-list** *ip-list* to delete AI-network downlink IP list configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network instance 10
sonic(config-ai-network-10)# downlink-mode arp
sonic(config-ai-network-10-arp)# ip-list 12.0.0.3,24.0.0.3,12.1.0.3
```

### <font color="#1d50a2">ethernet *interface-name* *ip-list*</font>

**\[Command]**
**ethernet** *interface-name* *ip-list*

**\[Purpose]**
Configure AI-network downlink IP list in BGP mode.

**\[Parameters]**

| **Parameter**    | **Description** |
| ---------------- | --------------- |
| *interface-name* | Interface name  |
| *ip-list*        | IP address list |

**\[View]**
AI-network instance BGP mode configuration view

**\[Notes]**
Run command **no ethernet** *interface-name* *ip-list* to delete AI-network downlink IP list configuration.

**\[Use Cases]**

```plaintext
sonic# configure
sonic(config)# ai-network instance 10
sonic(config-ai-network-10)# downlink-mode bgp
sonic(config-ai-network-10-bgp)# ethernet 0/244 24.0.0.1/24,26.0.0.1
```

