Configuration Guide
Interface Configuration Guide
40 min
the interfaces supported by this series of switches include ethernet interfaces, management ethernet ports (hereinafter referred to as management ports), console ports (hereinafter referred to as serial ports), and usb ports for the specific interface types and quantities supported by each model, please refer to the product installation manual this chapter primarily introduces the configuration and commands related to management ethernet ports and ethernet interfaces ethernet interface for management configuration ethernet interface for management configuration introduction introduction the management port, usually with an rj 45 connector, is used to connect to a back end computer for debugging or to connect to a remote device for remote control it is generally named eth0 or mgmt 0 in the switch for asterfusion data center series products, the ip address is automatically obtained via the dhcp management port when asternos is installed, and can be viewed via the linux command /sbin/ifconfig eth0 or " sudo ifconfig eth0 once the system has been installed automatically, you can log in to the switch directly via ssh management port configuration management port configuration table 1 management port configuration table 1 management port configuration purpose commands description enter global configuration view configure terminal enter management port configuration view interface mgmt 0 configure the management port ipv4 address ip address a b c d/m gw a b c d ipv4 address with subnet mask /32 is not allowed to be configured addresses with subnet mask /31 is allowed in other subnet masks, addresses with the host portion all zeros or all ones are not allowed (optional) configure the management port ipv6 address ip address a b/m gw a b ipv6 address with subnet mask /127 or /128 is not allowed to be configured in other subnet masks, addresses with the host portion all zeros are not allowed, but all ones are allowed (optional) obtain the management port ip address via dhcp ip address dhcp alloc if the management port ip address is obtained via dhcp, manually configured management port ip addresses will not take effect exit management port configuration view exit save the configuration write display and maintenance display and maintenance table 2 management port display and maintenance table 2 management port display and maintenance purpose commands description check management port information show interface mgmt the ip of management port configured by the ifconfig or ip command is not displayed by this command specific configuration scenarios specific configuration scenarios first login first login table 3 first login table 3 first login purpose commands description enter global configuration view configure terminal enter management port configuration view interface mgmt 0 configure the management port ipv4 address ip address a b c d/m gw a b c d ipv4 address with subnet mask /32 is not allowed to be configured addresses with subnet mask /31 is allowed in other subnet masks, addresses with the host portion all zeros or all ones are not allowed (optional) configure the management port ipv6 address ip address a b/m gw a b ipv6 address with subnet mask /127 or /128 is not allowed to be configured in other subnet masks, addresses with the host portion all zeros are not allowed, but all ones are allowed exit management port configuration view exit save the configuration write restore to default configuration restore to default configuration table 4 restore to default configuration table 4 restore to default configuration purpose commands description restore to default configuration delete startup config \[ reserve mgmt ] run command reload to take effect option reserve mgmt determines whether to reserve mgmt ip and gateway reload reload logical interface configuration logical interface configuration introduction introduction logical interfaces are virtual interfaces that are capable of data exchange functions but do not physically exist and need to be created through configuration this section focuses on the several types of logical interfaces supported by the switch, as shown in the following table table 5 types of logical interface table 5 types of logical interface type of logical interface description vlanif interface vlanif interfaces are vlan based logical interfaces with layer 3 characteristics, each vlan corresponds to a vlanif interface lagif interface lagif interface is a bundle of multiple ethernet interfaces into a logical interface with layer 2 characteristics or layer 3 characteristics each ethernet interface that is bundled together is called a member interface ethernet layer 3 sub interface ethernet layer 3 sub interfaces are logical interfaces with layer 3 characteristics configured on a physical interface, and multiple sub interfaces can be configured on a physical interface loopback interface loopback interface is logical interface, and any data packets sent to it are considered to be sent to the switch itself once it has been created, its physical and link protocol state is always up until it is deleted loopback interfaces are configured with an ip address and can then be published to the public logical interface default configuration logical interface default configuration the default setting of the logical interfaces is shown in the table below table 6 logical interface default configuration table 6 logical interface default configuration parameters default value vlanif interface none lagif interface none ethernet layer 3 sub interface none loopback interface default ip address is 10 1 0 1/32 configuring the vlanif interface configuring the vlanif interface please refer to https //docs asteraix com/aidc/ethernet switching configuration guide#7inut configuring the lagif interface configuring the lagif interface please refer to https //docs asteraix com/aidc/ethernet switching configuration guide#k9rk6 configuring ethernet layer 3 sub interfaces configuring ethernet layer 3 sub interfaces configure layer 3 sub interfaces configure layer 3 sub interfaces a layer 3 ethernet interface supports the configuration of multiple sub interfaces, which can be individually configured with ip, mtu and mac address, or can be maintained independently to perform on/off operations table 7 configure layer 3 sub interfaces table 7 configure layer 3 sub interfaces purpose commands description enter global configuration view configure terminal create a sub interface and enter the sub interface view interface ethernet interface name subinterface number configure the ip address of the sub interface ip address { a b c d/m | a b/m } ipv4 address with subnet mask /32 is not allowed to be configured addresses with subnet mask /31 is allowed in other subnet masks, addresses with the host portion all zeros or all ones are not allowed ipv6 address with subnet mask /127 or /128 is not allowed to be configured in other subnet masks, addresses with the host portion all zeros are not allowed, but all ones are allowed configure the mtu of the sub interface mtu mtu shutdown sub interface shutdown configure the mac address of the sub interface mac address hh\ hh\ hh\ hh\ hh \ hh mac addresses are not case sensitive configure lag sub interfaces configure lag sub interfaces table 8 configure lag sub interfaces table 8 configure lag sub interfaces purpose commands description enter global configuration view configure terminal create a lag sub interface and enter the sub interface view interface link aggregation interface name subinterface number configure the ip address of the sub interface ip address { a b c d/m | a b/m } ipv4 address with subnet mask /32 is not allowed to be configured addresses with subnet mask /31 is allowed in other subnet masks, addresses with the host portion all zeros or all ones are not allowed ipv6 address with subnet mask /127 or /128 is not allowed to be configured in other subnet masks, addresses with the host portion all zeros are not allowed, but all ones are allowed configure the mtu of the sub interface mtu mtu shutdown sub interface shutdown configure the mac address of the sub interface mac address hh\ hh\ hh\ hh\ hh \ hh mac addresses are not case sensitive configure the loopback interface configure the loopback interface the switch is shipped with a loopback0 interface configured by default, which is a special and fixed loopback interface in addition to this, the user can configure multiple loopback ports, but only one ip address is supported for a single loopback port table 9 configuring the loopback interface table 9 configuring the loopback interface purpose commands description enter global configuration view configure terminal enter loopback interface configuration view or create a loopback interface interface loopback lo id configure loopback interface ip address ip address { a b c d/m | a b/m } configure vxlan interfaces configure vxlan interfaces please refer to https //docs asteraix com/aidc/vxlan configuration guide ethernet interface configuration ethernet interface configuration introduction introduction ethernet interfaces are generally used as service interfaces to undertake service transmissions and are sometimes referred to as ports rules for numbering rules for numbering default rules for numbering default rules for numbering the ethernet interface numbering format for asterfusion products is x/y x indicates the board number there are no boards in the current series, so x is specified as 0 y indicates the interface number, starting from 0 and increasing it should be noted that the naming intervals vary for different rate interfaces 25ge interfaces are numbered in increments of 1, e g , 0/0, 0/1 , and so on; 100ge and 200ge interfaces are numbered in increments of 4, e g , 0/0, 0/4, 0/8 , and so on; and 400ge interfaces are numbered in increments of are 8, such as 0/0, 0/8, 0/16 , and so on alias mode rules for numbering alias mode rules for numbering in addition to the default mode, the alias attribute (interface alias) is defined, with a one to one relationship with the physical port, related to the interface speed with the naming convention as table 10 shown, where the numbering starts at 1 table 10 alias schema of interface id naming convention table 10 alias schema of interface id naming convention interface speed alias 1g g 10g x 25g y 40g q 100g c 200g d 400g qc 800g e note x1 indicates the first 10g interface of the box switch c1 y1 indicates the first 25g interface of the first 100g interface after breakout interface default setting interface default setting the default setting of the ethernet interface is shown in the table below table 11 ethernet interface default setting table 11 ethernet interface default setting parameters default value interface name mode default auto negotiate close interface fec 10g interface none, others rs interface management status up interface speed 10g/25g/100g/200g/400g/800g interface description information n/a interface splitting unsplit interface mac learning function open interface lldp function open port id type in interface lldp ifname interface mtu 9216 bytes interface layer 2 and 3 operating mode layer 2 model interface mac address dynamically assigned by the system, or the same as the switch mac address arp proxy for interface disable interface startup delay 150s interface base configuration interface base configuration this section describes the basic configuration of ethernet interfaces configure the administrative state of the interface configure the administrative state of the interface the state of the ethernet interface is divided into admin and oper, of which there are two physical states, up and down the communication state may only be up when the administrative state of the interface is up; when the administrative state of the interface is down, the communication state will also be down this command is used to switch the administrative state of an interface by default, the administrative status of the interface is up and the user can turn the interface on or off according to needs table 12 configure the administrative status of interface table 12 configure the administrative status of interface purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name startup the interface no shutdown shutdown the interface shutdown note once a loopback interface has been created, it will remain up and cannot be shut down or started using the command configure the interface speed configure the interface speed the series supports the following interface speeds 10g, 25g, 40g, 100g, 200g, 400g and 800g users can configure the interface speed using the commands in the table below table 13 configure the interface rate table 13 configure the interface rate purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure the interface speed speed speed speed in mbit example: modify interface ethernet1 speed to 10g sonic# configure terminal sonic(config)# interface ethernet 0/1 sonic(config if 0/1)# no fec sonic(config if 0/1)# speed 10000 sonic(config if 0/1)# show this ! interface ethernet 0/1 mtu 9216 no fec speed 10000 sonic# show interface summary interface lanes speed mtu fec alias vlan oper admi type asym pfc 0/1 114 10g 9216 none y2 routed n/a up n/a n/a configure interface description information configure interface description information table 14 configure interface description information table 14 configure interface description information purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure interface description information description description the multiple configurations will overwrite it configure the startup delay of interface configure the startup delay of interface table 15 configure the startup delay of interface table 15 configure the startup delay of interface purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure the startup delay of interface startup delay time time startup delay time, range \[1, 65535], in seconds configure interface self negotiation configure interface self negotiation in the network, if the switches at both ends of the link cannot negotiate the appropriate data transmission capacity, the two parties cannot communicate properly the self negotiation function provides a way for interconnected devices to exchange information so that the switches at both ends of the physical link automatically select the same operating parameters through interactive packets in order to achieve the maximum transmission capacity that both parties can support the self negotiation includes the duplex mode and interface speed of the interfaces at both ends once the negotiation is passed, the switches on both ends of the link are locked to the same duplex mode and interface speed in non self negotiating mode, the above parameters need to be configured manually table 16 configure interface self negotiation table 16 configure interface self negotiation purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name enable interface self negotiation autoneg advertise self negotiation speed advertised speeds { speed | all } speed specify negotiation speedall advertise all supported speed configure the interface fec mode configure the interface fec mode fec (forward error correction) is an error correction method that improves signal quality by attaching error correction information to the data packet at the transmitter side and using the error correction information at the receiver side to correct errors generated during transmission, but also causes some delay to the signal the user can choose to turn this function off or on depending on the actual situation the fec methods supported by the switch are rs, fc and none note the fec method must be the same at both ends of the link, otherwise the interface will not be up table 17 configure the interface fec mode table 17 configure the interface fec mode purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure the interface fec mode fec { rs | fc } configure interface layer 2 and 3 mode switch configure interface layer 2 and 3 mode switch when using this command to switch between layer 2 and layer 3 modes of interface, only attribute configuration information (e g shutdown, description configuration) or configuration information that is supported by both layer 2 and layer 3 interfaces can be present under the interface for the mode switch function to take effect there must not be any configuration that is not supported by the switched interface mode if there are unsupported configurations on the interface, please clear all these configurations before executing the switchport or no switchport command for example, when an ip address is configured on interface 0/1, the ip needs to be removed before the switchport command can be executed table 18 configure layer 2 and 3 mode switch for interfaces table 18 configure layer 2 and 3 mode switch for interfaces purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name switche the operating mode of the interface to layer 3 no switchport switche the operating mode of the interface to layer 2 switchport configure interface isolation configure interface isolation only https //cloudswit ch/product/48 port 25g data center switch sonic enterprise marvell falcon/ and https //cloudswit ch/product/data center 100g switch enterprise sonic/ devices support this feature table 19 configure interface isolation table 19 configure interface isolation purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name enable interface isolation port isolate enable group name group name isolation group name disable interface isolation no port isolate enable configure interface breakout configure interface breakout interface breakout can split a high speed port into multiple low speed ports for use the interfaces supported by the switch can be used as a separate interface or split into multiple independent interfaces for use the interface splitting command is as follows table 20 configure interface breakout table 20 configure interface breakout purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name enable interface breakout breakout {4x25g\[10g] | 4x50g\[10g] | 2x200g\[100g] | 4x100g\[50g] | 2x100g\[50g] | 4x200g\[100g] | 2x400g\[200g]} the support of different product models for the number and speed of interface breakout is shown in the table below table 21 support for interface breakout capability table 21 support for interface breakout capability parameter description supported devices 4x25g\[10g] split one 100g port into four 25g ports cx308p 48y n, cx308p 48y n v2, cx532p n, cx532p n v2,cx564p n, cx664d n,cx732q n 4x50g\[10g] split one 200g port into four 50g ports cx664d n 2x200g\[100g] split one 400g port into two 200g ports cx732q n 4x100g\[50g] split one 400g port into four 100g ports cx732q n 2x100g\[50g] split one 200g port into two 50g ports cx664d n 4x200g\[100g] split one 800g port into four 200g ports cx864e n 2x400g\[200g] split one 200g port into two 400g ports cx864e n layer 2 interface configuration layer 2 interface configuration layer 2 ethernet interfaces work at the data link layer, handling layer 2 protocols and enabling fast layer 2 forwarding configure the mac learning switch for interface configure the mac learning switch for interface configure the interface's mac learning switch to require the operated interface to join the vlan table 22 configure mac learning switche for interfaces table 22 configure mac learning switche for interfaces purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name enable mac learning for the interface mac address learning layer 3 interface configuration layer 3 interface configuration layer 3 ethernet interface, also known as a rif (router interface) the layer 3 port works at the network layer and can be configured with ipv4/ipv6 addresses, handle layer 3 protocols and provide route functions configure the interface ip address configure the interface ip address table 23 configure the interface ip address table 23 configure the interface ip address purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure the interface ip address ip address {a b c d/m | a b/m} ipv4 address with subnet mask /32 is not allowed to be configured addresses with subnet mask /31 is allowed in other subnet masks, addresses with the host portion all zeros or all ones are not allowed ipv6 address with subnet mask /127 or /128 is not allowed to be configured in other subnet masks, addresses with the host portion all zeros are not allowed, but all ones are allowed configure the interface mtu configure the interface mtu the network layer generally needs to limit the maximum length of each packet sent when the network layer receives a copy of an ip packet to be sent, it which interface it should be forwarded to and queries the maximum transmission unit (mtu) of that interface the network layer compares the mtu value with the length of the ip packet to be sent if the length of the ip packet is greater than the mtu value, then the packet is fragmented and the length of the fragmented packet is less than or equal to the mtu the size of the mtu determines the maximum number of bytes that can be sent at one time by the sender a correctly configured mtu value is a prerequisite for proper and efficient communication between devices when the packet size in the network is large but the mtu configuration is too small, it may cause excessive packet fragmentation, which may be discarded by the qos queue and affect normal data transmission; if the mtu configuration is too large, it may exceed the maximum value that the receiving end can handle or exceed the maximum value that a device passing through on the sending path can handle, which may also cause packet fragmentation or even discard, adding to the burden of network transmission and affecting the normal transmission of data by default, the mtu of the interface is 9216 bytes table 24 configure the interface mtu table 24 configure the interface mtu purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure the interface mtu mtu mtu mtu range 1312 to 9216 configure the mac address of the interface configure the mac address of the interface by default, the mac address of the interface is dynamically assigned by the system or is the same as the mac address of the switch this series supports users to reconfigure the mac of physical interfaces, vlan interfaces and link aggregate interfaces table 25 configure the mac address of the interface table 25 configure the mac address of the interface purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name configure the mac address of the interface mac address hh\ hh\ hh\ hh\ hh \ hh mac addresses are not case sensitive configure interface loop traffic drop configure interface loop traffic drop table 26 configure interface loop traffic drop table 26 configure interface loop traffic drop purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name enable loop traffic drop loopback pkt drop crc check crc check crc (cyclic redundancy check) error packet detection is a commonly used error detection technique in data communication when a switch port receives a crc error packet, it indicates that an error occurred during data transmission after enabling crc error packet detection, if the switch receives 100 crc error packets within 10 seconds, it will set the interface to err down table 27 configure crc check table 27 configure crc check purpose commands description enter global configuration view configure terminal enable crc error packet detection function crc check enable configure the threshold parameter for crc error packet detection crc check threshod interval count interval set the interval in seconds, the range is 2 60, the default value is 10 count set the maximum count of crc error packets in the range of \[1,65535], the default value is 100 display and maintenance display and maintenance display interface configuration information display interface configuration information table 28 display interface configuration information table 28 display interface configuration information purpose commands description check interface description information show interface description check interface status information show interface summary check information about the interface show interface ethernet interface name check interface ipv4 address configuration show ip interfaces display interface status information display interface status information table 29 display interface status information table 29 display interface status information purpose commands description check interface status information show interface summary check information about the interface show interface ethernet interface name check interface statistics show counters interface \[ ethernet interface name ] check layer 3 port statistics show counters rif { ethernet | vlan | link aggregation } interface name check lldp neighbor information show lldp neighbor { summary | interface interface name} check startup delay information about the interface show interface startup delay clear interface statistics count clear interface statistics count table 30 clear interface statistics count table 30 clear interface statistics count purpose commands description clear interface statistics count information clear counters { interface | rif } display information on interface optical modules display information on interface optical modules table 31 display information on interface optical modules table 31 display information on interface optical modules purpose commands description display presence information of optical modules show interface transceiver \[ ethernet interface name ] presence display detailed information of optical modules show interface transceiver \[ethernet interface name ] eeprom \[detail ] display low power mode information of optical modules show interface transceiver \[ethernet interface name ] lpmode display interface isolation configuration information display interface isolation configuration information table 32 display interface isolation configuration information table 32 display interface isolation configuration information purpose commands description display interface isolation configuration information show isolate group summary \[ ethernet interface name ] console interface console interface introduction introduction console interface, or serial port, generally with rj 45 connector, which is connected to the com serial port of the configuration terminal and is used to build the field configuration environment by default, asternos 3 0 and above support serial console based logins and ssh based logins the default username/password for login are admin/asteros after logging into the switch via the serial port the user can configure the ip address of the management port (eth0) ,thereafter the user can log in to the switch using ssh example example for details on how to use the serial port, please refer to https //docs asteraix com/aidc/first use#8au7r debian gnu/linux 9 sonic ttys0 sonic login admin password last login mon jun 3 14 44 09 cst 2019 from 192 168 10 161 on pts/4 linux sonic 4 9 0 8 amd64 #1 smp debian 4 9 110 3+deb9u6 (2015 12 19) x86 64 / \ | | | \ | | / \ / | / \ / || | / \\| ' || \\| || | | |\\ \\ / \ \\ \\| | | /| | | |\ || | | | ) | / / \\ \\| / \\ | \\ || | | | \\ | \\ / | / \ asterfusion network operating system help http //www asterfusion com/ sonic#
