Celestica Documentation Portal

Find your product documents here

Interface create and delete

Creates the interface, if not present and enters into the interface mode.

Syntaxinterface {Ethernet <eth-if-id> | PortChannel <po-if-id> [fallback] [min-links <min-links-value>] [static] [fast-lag]| Loopback <lpbk-if-id> | Vlan <vl-if-id>}
Command modeCONFIG
Parameters
  • eth-if-id – Ethernet interface identifier in multiples of 4.

  • po-if-id – PortChannel identifier. Range: 1 – 256.

  • fallback – Enables LACP fallback or not, Default: disabled.

  • min-links < > – Sets the minimum number of links. Range: 1 – 255, Default: 1.

  • fast-lag – Enable short LACP timeout period.

  • lpbk-if-id – Loopback interface identifier, Range: 0 – 16383.

  • vl-if-id – VLAN interface identifier, Range : 1 – 4094.

UsageUse no interface <if-id> to remove the interface. You cannot remove the static interfaces (Ethernet).
Supported Releases 1.0.0 or later
Click command
  • config portchannel add <portchannel_name> [--min-links <> --fallback <> --fast-rate [true|false] --on <>]

  • config vlan add <vid>

  • config loopback add <loopback_name>

Example
sonic(config)# interface Ethernet 20
sonic(conf-if-Ethernet20)#

sonic(config)# interface Vlan 10
sonic(conf-if-Vlan10)# no interface Vlan 10
sonic(config)#

sonic(config)# interface PortChannel 10
sonic(conf-if-PortChannel10)# no interface PortChannel 10
sonic(config)#

sonic(config)# interface Loopback 2
sonic(conf-if-Loopback2)# no interface Loopback 2
sonic(config)#
sonic(config)# interface PortChannel 250 static
sonic(conf-if-PortChannel250)# 
sonic(config)# interface PortChannel 201 min-links 2 fallback
sonic(conf-if-PortChannel201)# 
sonic(config)#
sonic(config)# interface PortChannel 199 fast-lag
sonic(conf-if-PortChannel199)#