Ports and interfaces

The physical port is configured first, followed by an interface with an IPv4 or IPv6 address.

Each port acts as a "connector" and supports breakout functionality. You must first configure the breakout type used on the connector, which then allows you to configure the individual breakout ports.

All ports have an associated port mode. Network-facing ports in the base routing instance should operate in the "network" mode (default). Client-facing ports used in a service should be in "access" mode. If a port is both network- and client-facing, it can be set to "hybrid" mode. The minimum encapsulation required on a hybrid port is dot1q.

See Port and interfaces for information about the relevant port, interfaces, and BFD show commands.

In the following example, the connector is configured to use a 1x100G breakout.

/configure port 1/1/c1 admin-state enable
/configure port 1/1/c1 connector breakout c1-100g
/configure port 1/1/c1/1 admin-state enable
/configure port 1/1/c1/1 description "To P1"

In the following example, a client-facing port is configured in "access" mode with dot1q encapsulation.

/configure port 1/1/c10 admin-state enable
/configure port 1/1/c10 connector breakout c4-10g
/configure port 1/1/c10/1 admin-state enable
/configure port 1/1/c10/1 ethernet mode access
/configure port 1/1/c10/1 ethernet encap-type dot1q
/configure port 1/1/c10/1 ethernet mtu 5000

As shown in the following example, the core-facing interface is given a name and IP address, and associated with a physical port.

/configure router "Base" interface "To-P1" port 1/1/c1/1
/configure router "Base" interface "To-P1" ipv4 primary address 172.16.10.0 prefix-length 31

The system interface refers to the loopback interface of the router, such as lo0 or loopback0. This interface name cannot be modified. If a router ID is not explicitly configured, the system interface IPv4 address is used. The system interface should be assigned a /32 IP address.

/configure router "Base" interface "system" ipv4 primary address 10.10.10.1 prefix-length 32

BFD can be enabled on an interface for both IPv4 and IPv6. In SR OS, BFD is enabled once under the interface,where the timers are also configured. The BFD state is shared with various protocols running over that interface by enabling bfd-liveness for each protocol.

/configure router "Base" interface "To-P1" ipv4 bfd admin-state enable

Use the following command to enable BFD state sharing on OSPF.

/configure router ospf area 0 interface "To-P1" bfd-liveness remain-down-on-failure true