Configuration Guide
Interface Management Configuration
18 min
ethernet interface configuration ethernet interface configuration introduction introduction ethernet interfaces are commonly used for carrying out business related tasks and data transmission they are often referred to as ports numbering scheme numbering scheme the numbering scheme for ethernet interfaces in this product series is as follows ethernetx here, x represents the interface number, starting from 1 and increasing incrementally it's important to note that the naming conventions for interfaces may vary based on the series for instance, in enterprise level products with 100g interfaces, the naming interval for 100g interfaces is 4 taking the example of cx206p 48s m h, the interface with the number 49 is the first 100g interface, and its name is ethernet49 the second 100g interface is named ethernet53, and so on default configuration of interfaces default configuration of interfaces parameter default value interface management status up interface fec (forward error correction) disabled interface description n/a interface mtu (maximum transmission unit) 9216 bytes interface poe (power over ethernet) supply disabled interface lldp (link layer discovery protocol) function disabled interface mac address same as device mac address basic configuration of interfaces basic configuration of interfaces the product series supports interface speeds of 1g, 10g, 25g, and 100g for example, the cx204y 48gt, cx204y 24gt, and cx206y 48gt series default to interface speeds of 1g and 25g the cx204y 48s series defaults to 10g and 25g speeds the cx206p 48gt series defaults to 10g and 100g speeds operation command description enter the system configuration view configure enter the interface view interface ethernet id set interface description description string set interface speed speed {1000|10000|25000} different types of interfaces support different configuration parameters please execute the speed ? command in the relevant interface view to view specific options modify interface fec mode no shutdown by default, the fec mode is disabled the fec mode must be consistent at both ends of the link for the interface to come up use the no fec command to disable the fec mode for the interface enable interface poe supply function fec {rs|fc} by default, the poe supply function for the interface is disabled use the no poe enable command to disable the poe supply for the interface note in the cx206p 48gt series, the 10g interfaces do not support configuration at 25g speed configuring layer 2/3 mode switching for ethernet interfaces configuring layer 2/3 mode switching for ethernet interfaces by default, the switch's interfaces do not belong to any vlan and have no ip address configured when an interface is configured with an ip address, vrf, or other layer 3 attributes, it automatically switches to layer 3 mode if you need to change the layer 2/3 mode of an interface, you should first remove the layer 3 attribute configurations from the interface afterward, execute the no router interface command operation command description enter the system configuration view configure enter the interface view interface ethernet id switch the interface operation mode to layer 2 no router interface configuring interface splitting configuring interface splitting interface splitting refers to dividing a 100g bandwidth physical interface on the device into multiple independent lower bandwidth interfaces to meet the requirements of connecting to lower bandwidth interfaces the device supports splitting a 100g interface into four 1g/10g/25g interfaces after splitting, each interface is assigned an independent identifier for example, when a 100ge interface like ethernet17 is split into four 10ge interfaces, the resulting interfaces are numbered ethernet17 to ethernet20 operation command description enter the system configuration view configure enter the interface view interface ethernet id split the interface breakout {4x25g|4x10g|4x1g} unsplit the interface no breakout maintenance interface maintenance interface operation command description view interface description show interface description view interface poe supply information show interface poe \[detail] view interface status show interface status view interface module information show interface transceiver eeprom dom \[ ethernet id ] view interface statistics show counters interface \[ ethernet id ] clear interface statistics clear counters interface port isolation configuration port isolation configuration introduction introduction port isolation allows the isolation of ports within the same vlan by adding ports to an isolation group, isolation between layer 2 data packets and multicast packets can be achieved for the ports within the isolation group traffic between ports within the isolation group and ports not added to the isolation group is not affected by the isolation group and can flow bidirectionally configuring port isolation groups configuring port isolation groups operation command description enter the system configuration view configure create and enter isolation group view port isolate group id enter interface view interface ethernet id add interface to isolation group port isolate id configuration example configuration example network requirements network requirements a cell has multiple users, and now requires that the users cannot interoperate with each other's layer 2 messages, but all can access the external network procedure procedure create a vlan and add the interface to the vlan sonic(config)# vlan 100 sonic(config)# port group ethernet 1 4 sonic(config port group 1 4)# switchport access vlan 100 create port isolation group sonic(config)# port isolate group 1 sonic(config port isolate group 1)# interface 1,2,3 verify configuration verify configuration view the port ioslation group configuration sonic# show port isolate group + + + + \| group id | interface | mode | +============+=============+========+ \| 1 | ethernet1 | l2 | \| | ethernet2 | | \| | ethernet3 | | + + + + no interoperability between pcs, all pcs can access the external network interface bulk configuration interface bulk configuration introduction introduction when configuring a specific function (e g , port shutdown) across multiple interfaces, individually entering each interface's view and executing commands can become cumbersome to simplify this process, the interface bulk configuration feature can be utilized to configure interfaces in batches, thereby reducing the configuration workload there is no upper limit to the number of interfaces that can be included in a bulk configuration, only constrained by system resources however, if a significant number of interfaces are involved, executing commands within the bulk interface configuration view might take longer when performing bulk interface configuration, if the interfaces listed already possess existing configurations, attempting to enter the bulk configuration view will result in failure in such cases, the interface list needs to be reselected once inside the bulk interface configuration view, you can utilize the "?" command to explore the supported command lines for bulk configuration interface bulk configuration interface bulk configuration operation command description enter the system configuration view configure enter the interface group configuration view port group ethernet id id this command only supports interfaces with consecutive id numbers for bulk configuration loopback interface configuration loopback interface configuration introduction introduction the loopback interface is a type of virtual interface once created, the physical layer of the loopback interface remains in an "up" state unless manually disabled due to this characteristic, the loopback interface can be applied in the following scenarios source address for device generated ip packets because the loopback interface address is stable and a unicast address, it is often regarded as an identifier for the device by allowing or prohibiting packets carrying the loopback interface address to pass through authentication or security servers, it is possible to permit or restrict packets generated by specific devices this simplifies packet filtering rules however, it should be noted that when using the loopback interface address as the source address for ip packets, routing configurations are needed to ensure the reachability of the loopback interface to the destination route dynamic routing protocols in certain dynamic routing protocols, when a router id is not configured, the loopback interface's ip address is used as the router id by default in the context of the bgp protocol, to ensure that bgp sessions are not affected by physical interface failures, the source interface for transmitting bgp packets can be configured as the loopback interface in band device management the loopback interface can be utilized for device management within the network infrastructure loopback interface configuration loopback interface configuration operation command description enter the system configuration view configure enter the loopback interface configuration view interface loopback id configure the loopback interface ip address ip address the ip address of the loopback interface can only be modified and cannot be deleted
