This section provides an example for configuring interfaces on two devices that are connected using FlexE.
On the network shown in Figure 1, FlexE clients need to be created on DeviceA and DeviceB for communication. Different bandwidths are configured for the FlexE clients to meet requirements for diversified services and applications. The bandwidths of FlexE Client1, FlexE Client2, FlexE Client3, and FlexE Client4 need to be set to 4 Gbit/s, 5 Gbit/s, 15 Gbit/s, and 20 Gbit/s, respectively.
To complete the configuration, you need the following data:
<DeviceA> license active XXXXX.dat <DeviceA> system-view [~DeviceA] license [~DeviceA-license] active port-basic slot 1 card 1 port 52 [*DeviceA-license] active port-slicing slot 1 card 1 port 52 [*DeviceA-license] commit [~DeviceA-license] quit
[~DeviceA] flexe enable port 0/1/52 Warning: This operation will delete interface 50GE0/1/52 and related services. Continue? [Y/N]:y [*DeviceA] commit
[~DeviceA] interface FlexE-50G 0/1/52 [~DeviceA-FlexE-50G0/1/52] phy-number 5 Warning: The traffic on this interface may be interrupted if the operation is performed. Continue? [Y/N]:y [*DeviceA-FlexE-50G0/1/52] commit [~DeviceA-FlexE-50G0/1/52] quit
[~DeviceA] flexe group 1 [*DeviceA-flexe-group-1] binding interface FlexE-50G0/1/52
[*DeviceA-flexe-group-1] flexe-groupnum 2345 Warning: The traffic on related clients may be interrupted if the operation is performed. Continue? [Y/N]:y [*DeviceA-flexe-group-1] commit [~DeviceA-flexe-group-1] quit
[~DeviceA] set flexe sub-time-slot granula slot 1 card 1 1g [*DeviceA] commit
[~DeviceA] flexe client-instance 1 flexe-group 1 flexe-type full-function port-id 129 [*DeviceA-flexe-client-1] flexe-clientid 1 Warning: The traffic on this interface may be interrupted if the operation is performed. Continue? [Y/N]:y [*DeviceA-flexe-client-1] flexe-bandwidth 4 [*DeviceA-flexe-client-1] commit [~DeviceA-flexe-client-1] quit [~DeviceA] flexe client-instance 2 flexe-group 1 flexe-type full-function port-id 130 [*DeviceA-flexe-client-2] flexe-clientid 2 Warning: The traffic on this interface may be interrupted if the operation is performed. Continue? [Y/N]:y [*DeviceA-flexe-client-2] flexe-bandwidth 5 [*DeviceA-flexe-client-2] commit [~DeviceA-flexe-client-2] quit [~DeviceA] flexe client-instance 3 flexe-group 1 flexe-type full-function port-id 131 [*DeviceA-flexe-client-2] flexe-clientid 3 Warning: The traffic on this interface may be interrupted if the operation is performed. Continue? [Y/N]:y [*DeviceA-flexe-client-2] flexe-bandwidth 15 [*DeviceA-flexe-client-2] commit [~DeviceA-flexe-client-2] quit [~DeviceA] flexe client-instance 4 flexe-group 1 flexe-type full-function port-id 132 [*DeviceA-flexe-client-2] flexe-clientid 4 Warning: The traffic on this interface may be interrupted if the operation is performed. Continue? [Y/N]:y [*DeviceA-flexe-client-2] flexe-bandwidth 20 [*DeviceA-flexe-client-2] commi [~DeviceA-flexe-client-2] quit
After completing the preceding configuration, run the display flexe group information command on DeviceA and DeviceB to check group information of FlexE cards. The command output on DeviceA is used as an example.
[~DeviceA] display flexe group information slot 1 card 1 FlexE Card Info: ============================================================= FlexE Config Mode : Bandwidth ============================================================= FlexE Group Info: ============================================================= GroupID Total Bandwidth(M) Valid Bandwidth(M) ------------------------------------------------------ 1 50000 50000 ============================================================= FlexE Group Binding Interfaces Capability: ============================================================= ------------------------------------------------------------- GroupID Interfaces already bound Interfaces can be bound ------------------------------------------------------------- 1 FlexE-50G0/1/52 ------------------------------------------------------------- ============================================================= FlexE Phy Info: ============================================================= Port No : FlexE-50G0/1/52 Active Status : 1 Cfg Group ID : 1 Cfg Group No : 2345 Real TX Group No : 2345 Real RX Group No : 2345 Remote Group No : 2345 Cfg Phy No : 5 Real TX Phy No : 5 Real RX Phy No : 5 Remote Phy No : 5 ============================================================= FlexE Time Slot Info: ============================================================= ------------------------------------------------------ port-no : FlexE-50G0/1/52 ts-num : 20 sub-ts-num : 5 ------------------------------------------------------- time-slot-id ts-port-map ------------------------------------------------------- 0: [129][129][129][129][130] 1: [130][130][130][130][131] 2: [131][131][131][131][131] 3: [131][131][131][131][131] 4: [131][131][131][131][132] 5: [132][132][132][132][132] 6: [132][132][132][132][132] 7: [132][132][132][132][132] 8: [132][132][132][132][-] 9: [-][-][-][-][-] 10: [-][-][-][-][-] 11: [-][-][-][-][-] 12: [-][-][-][-][-] 13: [-][-][-][-][-] 14: [-][-][-][-][-] 15: [-][-][-][-][-] 16: [-][-][-][-][-] 17: [-][-][-][-][-] 18: [-][-][-][-][-] 19: [-][-][-][-][-] =============================================================
[~DeviceA] display interface ethernet brief PHY: Physical *down: administratively down ^down: standby (l): loopback (b): BFD down (d): Dampening Suppressed (p): port alarm down InUti/OutUti: input utility/output utility Interface PHY Auto-Neg Duplex Bandwidth InUti OutUti Trunk FlexE0/1/129 up - full 4G 0.01% 0.01% -- FlexE0/1/130 up - full 5G 0.01% 0.01% -- FlexE0/1/131 up - full 15G 0.01% 0.01% -- FlexE0/1/132 up - full 20G 0.01% 0.01% -- FlexE-50G0/1/52 up - full 50G -- -- --
[~DeviceA] display lldp neighbor brief Local Intf Neighbor Dev Neighbor Intf Exptime (sec) -------------------------------------------------------------------------------------- FlexE0/1/129 DeviceB FlexE0/1/129 114 FlexE0/1/130 DeviceB FlexE0/1/130 114 FlexE0/1/131 DeviceB FlexE0/1/131 114 FlexE0/1/132 DeviceB FlexE0/1/132 114 FlexE-50G0/1/52 DeviceB FlexE-50G0/1/52 95
[~DeviceA] display interface flexe 0/1/129 FlexE0/1/129 current state : UP (ifindex: 285) Line protocol current state : UP Last line protocol up time : 2021-03-11 09:11:24 Link quality grade : GOOD Description: Route Port,The Maximum Transmit Unit is 1500 Internet Address is 10.1.1.1/24 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc12-3456 Port BW: 4G Pause Flowcontrol: Receive Enable and Send Enable Client-id Match State: Match Last physical up time : 2021-03-10 15:11:46 Last physical down time : 2021-03-10 15:11:29 Current system time: 2021-03-11 11:36:52 Statistics last cleared:never Last 300 seconds input rate: 10031 bits/sec, 1 packets/sec Last 300 seconds output rate: 10041 bits/sec, 1 packets/sec Input peak rate 125150137 bits/sec, Record time: 2021-03-10 09:25:57 Output peak rate 125757954 bits/sec, Record time: 2021-03-10 09:25:57 Input: 7006191780 bytes, 52343200 packets Output: 7024402448 bytes, 52482810 packets Input: Unicast: 52334185 packets, Multicast: 9010 packets Broadcast: 5 packets, JumboOctets: 0 packets CRC: 0 packets, Symbol: 0 packets Overrun: 0 packets, InRangeLength: 0 packets LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets Fragment: 0 packets, Undersized Frame: 0 packets RxPause: 0 packets Output: Unicast: 52473465 packets, Multicast: 9334 packets Broadcast: 11 packets, JumboOctets: 0 packets Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets System: 0 packets, Overruns: 0 packets TxPause: 0 packets Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.01%
# sysname DeviceA # set flexe sub-time-slot granula slot 1 card 1 1g flexe enable port 0/1/52 # flexe group 1 flexe-groupnum 2345 binding interface FlexE-50G0/1/52 # flexe client-instance 1 flexe-group 1 flexe-type full-function port-id 129 flexe-clientid 1 flexe-bandwidth 4 # flexe client-instance 2 flexe-group 1 flexe-type full-function port-id 130 flexe-clientid 2 flexe-bandwidth 5 # flexe client-instance 3 flexe-group 1 flexe-type full-function port-id 131 flexe-clientid 3 flexe-bandwidth 15 # flexe client-instance 4 flexe-group 1 flexe-type full-function port-id 132 flexe-clientid 4 flexe-bandwidth 20 # license active port-basic slot 1 card 1 port 52 active port-slicing slot 1 card 1 port 52 # interface FlexE-50G0/1/52 undo shutdown undo dcn phy-number 5 # return
# sysname DeviceB # set flexe sub-time-slot granula slot 1 card 1 1g flexe enable port 0/1/52 # flexe group 1 flexe-groupnum 2345 binding interface FlexE-50G0/1/52 # flexe client-instance 1 flexe-group 1 flexe-type full-function port-id 129 flexe-clientid 1 flexe-bandwidth 4 # flexe client-instance 2 flexe-group 1 flexe-type full-function port-id 130 flexe-clientid 2 flexe-bandwidth 5 # flexe client-instance 3 flexe-group 1 flexe-type full-function port-id 131 flexe-clientid 3 flexe-bandwidth 15 # flexe client-instance 4 flexe-group 1 flexe-type full-function port-id 132 flexe-clientid 4 flexe-bandwidth 20 # license active port-basic slot 1 card 1 port 52 active port-slicing slot 1 card 1 port 52 # interface FlexE-50G0/1/52 undo shutdown undo dcn phy-number 5 # return