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 \<font color="#1d50a2">ethernet interface for management configuration\</font> \<font color="#1d50a2">introduction\</font> 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 \<font color="#1d50a2">management port configuration\</font> \<font color="#1d05a2">table 1 management port configuration\</font> 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 \<font color="#1d50a2">display and maintenance\</font> \<font color="#1d05a2">table 2 management port display and maintenance\</font> 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 \<font color="#1d50a2">specific configuration scenarios\</font> \<font color="#1d50a2">first login\</font> \<font color="#1d05a2">table 3 first login\</font> 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 \<font color="#1d50a2">restore to default configuration\</font> \<font color="#1d05a2">table 4 restore to default configuration\</font> 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 \<font color="#1d50a2">logical interface configuration\</font> \<font color="#1d50a2">introduction\</font> 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 \<font color="#1d05a2">table 5 types of logical interface\</font> 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 \<font color="#1d50a2">logical interface default configuration\</font> the default setting of the logical interfaces is shown in the table below \<font color="#1d05a2">table 6 logical interface default configuration\</font> 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 \<font color="#1d50a2">configuring the vlanif interface\</font> please refer to https //docs asteraix com/aidc/ethernet switching configuration guide#7inut \<font color="#1d50a2">configuring the lagif interface\</font> please refer to https //docs asteraix com/aidc/ethernet switching configuration guide#k9rk6 \<font color="#1d50a2">configuring ethernet layer 3 sub interfaces\</font> \<font color="#1d50a2">configure layer 3 sub interfaces\</font> 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 \<font color="#1d05a2">table 7 configure layer 3 sub interfaces\</font> 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 \<font color="#1d50a2">configure lag sub interfaces\</font> \<font color="#1d05a2">table 8 configure lag sub interfaces\</font> 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 \<font color="#1d50a2">configure the loopback interface\</font> 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 \<font color="#1d05a2">table 9 configuring the loopback interface\</font> 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 } \<font color="#1d50a2">configure vxlan interfaces\</font> please refer to https //docs asteraix com/aidc/vxlan configuration guide \<font color="#1d50a2">ethernet interface configuration\</font> \<font color="#1d50a2">introduction\</font> ethernet interfaces are generally used as service interfaces to undertake service transmissions and are sometimes referred to as ports \<font color="#1d50a2">rules for numbering\</font> \<font color="#1d50a2">default rules for numbering\</font> 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 \<font color="#1d50a2">alias mode rules for numbering\</font> 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 \<font color="#1d05a2">table 10 alias schema of interface id naming convention\</font> 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 \<font color="#1d50a2">interface default setting\</font> the default setting of the ethernet interface is shown in the table below \<font color="#1d05a2">table 11 ethernet interface default setting\</font> 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 \<font color="#1d50a2">interface base configuration\</font> this section describes the basic configuration of ethernet interfaces \<font color="#1d50a2">configure the administrative state of the interface\</font> 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 \<font color="#1d05a2">table 12 configure the administrative status of interface\</font> 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 \<font color="#1d50a2">configure the interface speed\</font> 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 \<font color="#1d05a2">table 13 configure the interface rate\</font> 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 \<font color="#1d50a2">configure interface description information\</font> \<font color="#1d05a2">\</font> 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 \<font color="#1d50a2">configure the startup delay of interface\</font> \<font color="#1d05a2">table 15 configure the startup delay of interface\</font> 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 \<font color="#1d50a2">configure interface self negotiation\</font> 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 \<font color="#1d05a2">table 16 configure interface self negotiation\</font> 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 \<font color="#1d50a2">configure the interface fec mode\</font> 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 \<font color="#1d05a2">table 17 configure the interface fec mode\</font> 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 } \<font color="#1d50a2">configure interface layer 2 and 3 mode switch\</font> 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 \<font color="#1d05a2">table 18 configure layer 2 and 3 mode switch for interfaces\</font> 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 \<font color="#1d50a2">configure interface isolation\</font> only cx308p 48y n v2 https //cloudswit ch/product/48 port 25g data center switch sonic enterprise marvell falcon/ and cx532p n v2 https //cloudswit ch/product/data center 100g switch enterprise sonic/ devices support this feature \<font color="#1d05a2">table 19 configure interface isolation\</font> 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 \<font color="#1d50a2">configure interface breakout\</font> 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 \<font color="#1d05a2">table 20 configure interface breakout\</font> 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 \<font color="#1d05a2">table 21 support for interface breakout capability\</font> 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 800g port into two 400g ports cx864e n \<font color="#1d50a2">layer 2 interface configuration\</font> layer 2 ethernet interfaces work at the data link layer, handling layer 2 protocols and enabling fast layer 2 forwarding \<font color="#1d50a2">configure the mac learning switch for interface\</font> configure the interface's mac learning switch to require the operated interface to join the vlan \<font color="#1d05a2">table 22 configure mac learning switche for interfaces\</font> 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 \<font color="#1d50a2">layer 3 interface configuration\</font> 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 \<font color="#1d50a2">configure the interface ip address\</font> \<font color="#1d05a2">table 23 configure the interface ip address\</font> 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 \<font color="#1d50a2">configure the interface mtu\</font> 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 \<font color="#1d05a2">table 24 configure the interface mtu\</font> 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 \<font color="#1d50a2">configure the mac address of the interface\</font> 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 \<font color="#1d05a2">table 25 configure the mac address of the interface\</font> 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 \<font color="#1d50a2">configure interface loop traffic drop\</font> \<font color="#1d05a2">table 26 configure interface loop traffic drop\</font> purpose commands description enter global configuration view configure terminal enter ethernet interface view interface ethernet interface name enable loop traffic drop loopback pkt drop \<font color="#1d50a2">crc check\</font> 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 \<font color="#1d05a2">table 27 configure crc check\</font> 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 \<font color="#1d50a2">display and maintenance\</font> \<font color="#1d50a2">display interface configuration information\</font> \<font color="#1d05a2">table 28 display interface configuration information\</font> 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 \<font color="#1d50a2">display interface status information\</font> \<font color="#1d05a2">table 29 display interface status information\</font> 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 \<font color="#1d50a2">clear interface statistics count\</font> \<font color="#1d05a2">table 30 clear interface statistics count\</font> purpose commands description clear interface statistics count information clear counters { interface | rif } \<font color="#1d50a2">display information on interface optical modules\</font> \<font color="#1d05a2">table 31 display information on interface optical modules\</font> 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 \<font color="#1d50a2">display interface isolation configuration information\</font> \<font color="#1d05a2">table 32 display interface isolation configuration information\</font> purpose commands description display interface isolation configuration information show isolate group summary \[ ethernet interface name ] \<font color="#1d50a2">console interface\</font> \<font color="#1d50a2">introduction\</font> 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 \<font color="#1d50a2">example\</font> 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#
