Skip to content

AIDC Intelligent Routing

Table 1 AIDC Intelligent Routing View

CommandPurpose
show router-typeDisplay the type of role the device performs in the network.
show ai-network summaryDisplay AI-network summary configuration.
show ai-network instance {all|instance-id}Display AI-network instance configuration.

[Command]

show router-type

[Purpose]

Display the type of role the device performs in the network

[View]

Privileged User View

[Use Cases]

sonic# show router-type
router-type : leaf

[Command]

show ai-network summary

[Purpose]

Display AI-network summary configuration

[View]

Privileged User View

[Use Cases]

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

show ai-network instance {all|instance-id}

Section titled “show ai-network instance {all|instance-id}”

[Command]

show ai-network instance {all|instance-id}

[Purpose]

Display AI-network instance configuration

[Parameters]

ParameterDescription
instance-idInstance ID, range 1-1024

[View]

Privileged User View

[Use Cases]

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

Table 2 AIDC Intelligent Routing Config

CommandPurpose
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-idConfigure AI-network instance.
description descriptionConfigure 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-listConfigure AI-network downlink IP list in ARP mode.
ethernet interface-name ip-listConfigure AI-network downlink IP list in BGP mode.

[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]

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

[Command]

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

[Purpose]

Configure the mode of AI network.

[Parameters]

ParameterDescription
albEnable the linkage between intelligent routing and ARS

[View]

Global Configuration View.

[Notes]

Default mode is static.

[Use Cases]

sonic# configure
sonic(config)# ai-network mode dynamic
or
sonic# configure
sonic(config)# ai-network mode dynamic alb
Section titled “ai-network uplink-list {interface-list|default}”

[Command]

ai-network uplink-list {interface-list|default}

[Purpose]

Configure AI-network uplink interface

[Parameters]

ParameterDescription
interface-listList of interfaces, which need to be physical Layer 3 ports
defaultUsing 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]

sonic# configure
sonic(config)# ai-network uplink-list 0/40,0/124
Section titled “ai-network downlink-list {interface-list|default}”

[Command]

ai-network downlink-list {interface-list|default}

[Purpose]

Configure AI-network downlink interface

[Parameters]

ParameterDescription
interface-listList of interfaces, which need to be physical Layer 3 ports
defaultUsing 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]

sonic# configure
sonic(config)# ai-network downlink-list 0/40,0/124
Section titled “ai-network uplink {bgp-link-local|bgp-normal}”

[Command]

ai-network uplink {bgp-link-local|bgp-normal}

[Purpose]

Configure AI-network uplink BGP neighbor mode

[Parameters]

ParameterDescription
bgp-link-localAutomatically create BGP neighbors with interface link local.
bgp-normalSelect 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]

sonic# configure
sonic(config)# ai-network uplink bgp-link-local
Section titled “ai-network downlink {bgp-link-local|bgp-normal}”

[Command]

ai-network downlink {bgp-link-local|bgp-normal}

[Purpose]

Configure AI-network downlink BGP neighbor mode.

[Parameters]

ParameterDescription
bgp-link-localAutomatically create BGP neighbors with interface link local
bgp-normalSelect 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]

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

[Command]

ai-network instance instance-id

[Purpose]

Configure an AI-network instance.

[Parameters]

ParameterDescription
instance-idInstance 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]

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

[Command]

description description

[Purpose]

Configure AI network instance description

[Parameters]

ParameterDescription
descriptionDescription information, in string form

[View]

AI-network instance configuration view

[Notes]

Run command no description to delete description.

[Use Cases]

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

[Command]

downlink-list {interface-list|default}

[Purpose]

Configure the AI-network downlink interface

[Parameters]

ParameterDescription
interface-listList of interfaces, which need to be physical Layer 3 ports
defaultUsing 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]

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

[Command]

downlink-mode {arp|bgp}

[Purpose]

Configure AI-network downlink routing mode.

[Parameters]

ParameterDescription
arpARP mode
bgpBGP 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]

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

[Command]

ip-list ip-list

[Purpose]

Configure AI-network downlink IP address list in ARP mode.

[Parameters]

ParameterDescription
ip-listIP 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]

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

[Command]

ethernet interface-name ip-list

[Purpose]

Configure AI-network downlink IP list in BGP mode.

[Parameters]

ParameterDescription
interface-nameInterface name
ip-listIP 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]

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