Configuration Guide
Interface Management Configuration Guide
17 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 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) 9100 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, 2 5g, and 10g 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|2500|10000} different types of interfaces support different configuration parameters please execute the speed ? command in the relevant interface view to view specific options enable interface no shutdown by default, the ethernet interface is on execute the "shutdown" command to close the interface business function and set the physical state of the interface to "down" at the same time note the power supply of the poe power interface is not affected by this command modify interface fec mode fec {rs|fc} 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 poe enable 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 configuring layer 2/3 mode switching for ethernet interfaces configuring layer 2/3 mode switching for ethernet interfaces by default, the device'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 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 1 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 2 create port isolation group sonic(config)# port isolate group 1 sonic(config port isolate group 1)# interface 1,2,3 verify configuration verify configuration 1 view the port ioslation group configuration sonic# show port isolate group + + + + \| group id | interface | mode | +============+=============+========+ \| 1 | ethernet1 | l2 | \| | ethernet2 | | \| | ethernet3 | | + + + + 2 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 enter the lag group configuration view port group lag id id this command only supports lags 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
