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 true 427,234#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type basic configuration of interfaces basic configuration of interfaces the product series supports interface speeds of 1g, 2 5g, and 10g 154,134 35905436554785,372 6409456344521#4283c7 unhandled content type #4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type 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 true 332,182 35930735930737,146 64069264069263#4283c7 unhandled content type #4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type maintenance interface maintenance interface true 286,234 00162882054227,140 99837117945773#4283c7 unhandled content type #4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type 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 true 299,199 5895691609977,162 4104308390023#4283c7 unhandled content type #4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type 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 true 173,121 00395752275455,366 99604247724545#4283c7 unhandled content type #4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type 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 true 237,140 41687402407192,283 58312597592806#4283c7 unhandled content type #4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type unhandled content type
