DELL Networking SONiC: Como configurar o endereço IPv4 e a unidade máxima de transmissão em interfaces de camada 3

Resumen: Este artigo explica como configurar o endereço IPv4 e as interfaces de unidade máxima de transmissão (MTU) no Dell Networking SONiC. Este artigo usa um switch que executa o Dell SONiC 4.1. ...

Este artículo se aplica a Este artículo no se aplica a Este artículo no está vinculado a ningún producto específico. No se identifican todas las versiones del producto en este artículo.

Instrucciones

 
Pré-requisitos
Estamos usando a nomenclatura de interface padrão para demonstrar os conceitos. Consulte o artigo da Dell 202172 Dell Networking Série S: Configuração básica da interface — SONiC 4.0 para obter mais informações sobre nomenclatura de interface


Índice

Atribua um endereço IP.

MTU
 

Atribua um endereço IP.

Sintaxe de configuração
Comando Explicação
admin@DELLSONiC:~$ sonic-cli
Entrar na interface de linha de comando de gerenciamento da Dell
DELLSONiC# configure terminal
Entrar no modo de configuração
DELLSONiC(config)# interface <Eth slot/port><Vlan ID><PortChannel ID><Eth slot/port.subport><Loopback ID>
Configurar interface, VLAN, PortChannel, subinterface, loopback.
DELLSONiC(conf-if-XXXX)# ip address A.B.C.D/mask
Configure o endereço IP com máscara.
DELLSONiC(conf-if-XXXX)# no ip address A.B.C.D/mask
Remova o endereço IP.
DELLSONiC(conf-if-XXXX)# no shutdown
Se a interface estiver desligada, desligue-a.

Mostrar um comando para verificar o endereço IP.
Comando Explicação
admin@DELLSONiC:~$ sonic-cli
Entrar na interface de linha de comando de gerenciamento da Dell
DELLSONiC# configure terminal
Entrar no modo de configuração
DELLSONiC# show ip interfaces
Mostrar IP configurado em Interfaces.
DELLSONiC# show running-configuration interface <Eth slot/port><Vlan ID><PortChannel ID><Loopback ID> 
Mostrar configuração da interface
 
Vamos configurar um endereço IP na interface Eth 1/1 com o endereço IP 10.0.0.1/24.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Eth 1/1
DELLSONiC(config-if-Eth1/1)# ip address 10.0.0.1/24
DELLSONiC(config-if-Eth1/1)# end
DELLSONiC#

Vamos verificar a configuração.
DELLSONiC# show ip interfaces
Flags: U-Unnumbered interface, A-Anycast IP
-----------------------------------------------------------------------------------------------------------------
Interface            IP address/mask                              VRF                 Admin/Oper     Flags
-----------------------------------------------------------------------------------------------------------------
Eth1/1               10.0.0.1/24                                                      up/up
DELLSONiC# show running-configuration interface Eth 1/1
!
interface Eth1/1
 mtu 9100
 no shutdown
 ip address 10.0.0.1/24
DELLSONiC#

 

Vamos configurar o endereço IP na VLAN 1 com o endereço IP 10.0.0.1/24.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Vlan 1
DELLSONiC(config-if-Vlan1)# ip address 10.0.0.1/24
DELLSONiC(config-if-Vlan1)# end
DELLSONiC#

Vamos verificar a configuração.
DELLSONiC# show ip interfaces
Flags: U-Unnumbered interface, A-Anycast IP
-----------------------------------------------------------------------------------------------------------------
Interface            IP address/mask                              VRF                 Admin/Oper     Flags
-----------------------------------------------------------------------------------------------------------------
Vlan1                10.0.0.1/24                                                      up/up
DELLSONiC# show running-configuration interface Vlan 1
!
interface Vlan1
 ip address 10.0.0.1/24
 
Vamos configurar o endereço IP no PortChannel 1 com o endereço IP 10.0.0.1/24.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1
DELLSONiC(config-if-po1)# ip address 10.0.0.1/24
DELLSONiC(config-if-po1)# end

Vamos verificar a configuração.
DELLSONiC# show ip interfaces
Flags: U-Unnumbered interface, A-Anycast IP
-----------------------------------------------------------------------------------------------------------------
Interface            IP address/mask                              VRF                 Admin/Oper     Flags
-----------------------------------------------------------------------------------------------------------------
PortChannel1         10.0.0.1/24                                                      up/up
DELLSONiC# show running-configuration interface PortChannel 1
!
interface PortChannel1
 no shutdown
 ip address 10.0.0.1/24
DELLSONiC#

 

Vamos configurar o endereço IP no Loopback 1 com o endereço IP 10.0.0.1/32.
 
Nota: O loopback suporta apenas o comprimento do prefixo /32 ou a sub-rede.
 
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Loopback 1
DELLSONiC(config-if-lo1)# ip address 10.0.0.1/32
DELLSONiC(config-if-lo1)# end
DELLSONiC#

Vamos verificar a configuração.
DELLSONiC# show ip interfaces
Flags: U-Unnumbered interface, A-Anycast IP
-----------------------------------------------------------------------------------------------------------------
Interface            IP address/mask                              VRF                 Admin/Oper     Flags
-----------------------------------------------------------------------------------------------------------------
Loopback1            10.0.0.1/32                                                      up/up
DELLSONiC# show running-configuration interface Loopback 1
!
interface Loopback 1
 ip address 10.0.0.1/32
DELLSONiC#
 

Atribuir endereço IP do Anycast

Consulte o artigo Dell Networking SONiC: como configurar o gateway estático Anycast (endereço anycast) sobre como configurar o endereço anycast. 

 

MTU

Sintaxe de configuração
Comando Explicação
admin@DELLSONiC:~$ sonic-cli
Entrar na interface de linha de comando de gerenciamento da Dell
DELLSONiC# configure terminal
Entrar no modo de configuração
DELLSONiC(config)# interface <Eth slot/port><Vlan ID><PortChannel ID><Eth slot/port.subport>
Configurar interface, VLAN, PortChannel, subinterface.
DELLSONiC(conf-if-XXXX)# mtu <MTU>
Configurar MTU Alterar MTU (1312 para 9216). Padrão 9100
DELLSONiC(conf-if-XXXX)# no mtu
Configure a MTU padrão na interface (o padrão é 9100).

Mostrar comandos para verificar a MTU.
Comando Explicação
admin@DELLSONiC:~$ sonic-cli
Entrar na interface de linha de comando de gerenciamento da Dell
DELLSONiC# configure terminal
Entrar no modo de configuração
DELLSONiC# show interface <Eth slot/port><Vlan ID><PortChannel ID>
Mostrar detalhes da interface.
DELLSONiC# show running-configuration interface <Eth slot/port><Vlan ID><PortChannel ID>
Mostrar configuração da interface
DELLSONiC#show interface status
Mostrar status da interface

 

  • Notas sobre a configuração da MTU

    • Configure a MTU nos membros da VLAN antes de configurar a MTU da VLAN. Todos os membros de uma VLAN devem ter o mesmo valor de MTU. Os membros marcados devem ter uma MTU de link 4 bytes maior do que os membros sem marca para contabilizar a tag de pacote.
    • Configure a MTU nos membros do port channel antes de configurar a MTU do port channel. Todos os membros de um port channel devem ter o mesmo valor de MTU. Os membros marcados devem ter uma MTU de link 4 bytes maior do que os membros sem marca para contabilizar a tag de pacote.
    • Certifique-se de que a MTU dos membros do port channel seja maior ou igual à MTU do port channel. Se você configurar a MTU nos membros do port channel depois de configurar a MTU do port channel, a MTU do port channel pode não ser atualizada. O sistema seleciona o menor valor de MTU configurado no port channel ou nos membros do port channel para ser o MTU do port channel. Por exemplo, o port channel contém membros marcados com MTU de link de 1522 e MTU IP de 1500, e membros sem marcação com MTU de link de 1518 e MTU de IP de 1500. A MTU de link do port channel não pode ter mais de 1518 bytes e a MTU de IP não pode ser maior que 1500 bytes.
Vamos configurar a MTU na interface Eth 1/1.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Eth 1/1
DELLSONiC(config-if-Eth1/1)# mtu 1500
DELLSONiC(config-if-Eth1/1)# end

Vamos verificar a configuração (saída grepped para brevidade).
DELLSONiC# show interface status
--------------------------------------------------------------------------------------------------------------------------------------
Name                Description                   Oper           Reason         AutoNeg   Speed          MTU            Alternate Name
--------------------------------------------------------------------------------------------------------------------------------------
Eth1/1              -                             up             oper-up        off       25000          1500           Ethernet0
DELLSONiC# show running-configuration interface Eth 1/1
!
interface Eth1/1
 mtu 1500
 no shutdown
DELLSONiC# show interface Eth 1/1

Eth1/1 is up, line protocol is up, reason oper-up
Hardware is Eth, address is xx:xx:xx:xx:xx:xx
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
Interface IPv6 oper status: Disabled
IP MTU 1500 bytes
LineSpeed 25GB, Auto-negotiation off
Link-training: off

 

Vamos configurar a MTU na interface VLAN.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Vlan 1
DELLSONiC(config-if-Vlan1)# mtu 1500
DELLSONiC(config-if-Vlan1)# end
DELLSONiC#

Vamos verificar a configuração (saída grepped para brevidade).
DELLSONiC# show interface Vlan 1

Vlan1 is up, line protocol is up
Hardware is Vlan, address is xx:xx:xx:xx:xx:xx
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
Interface IPv6 oper status: Disabled
IP MTU 1500 bytes
Time since last interface status change: 02:33:17
DELLSONiC# show running-configuration interface Vlan 1
!
interface Vlan1
 mtu 1500

 

Vamos configurar o PortChannel 1 com MTU 1500.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1
DELLSONiC(config-if-po1)# mtu 1500
DELLSONiC(config-if-po1)# end
DELLSONiC#

Vamos verificar a configuração (saída grepped para brevidade).
DELLSONiC# show running-configuration interface PortChannel 1
!
interface PortChannel1 mode on
 mtu 1500
 no shutdown
DELLSONiC# show interface status
--------------------------------------------------------------------------------------------------------------------------------------
Name                Description                   Oper           Reason         AutoNeg   Speed          MTU            Alternate Name
--------------------------------------------------------------------------------------------------------------------------------------
Eth1/1              -                             up             oper-up        off       25000          1500           Ethernet0
Eth1/2              -                             up             oper-up        off       25000          1500           Ethernet1


PortChannel1        -                             up             oper-up        -         25000          1500           -
DELLSONiC# show interface PortChannel 1
PortChannel1 is up, line protocol is up, reason oper-up, mode Static
Hardware is PortChannel, address is xx:xx:xx:xx:xx:xx
Minimum number of links to bring PortChannel up is 1
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
Graceful shutdown: Disabled
MTU 1500
LineSpeed 25.0GB
Events:

Productos afectados

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON ...
Propiedades del artículo
Número del artículo: 000218581
Tipo de artículo: How To
Última modificación: 10 abr 2024
Versión:  5
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.