DELL Networking SONiC: IPv4-osoitteen ja enimmäislähetysyksikön määrittäminen Layer 3 -liitännöissä

Summary: Tässä artikkelissa kerrotaan, miten IPv4-osoitteen ja MTU (maximum transmission unit) -liitännät määritetään Dell Networking SONiC:ssä. Tässä artikkelissa käytetään kytkintä, jossa on Dell SONiC 4.1. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

 
Edellytykset
Käytämme vakiorajapintojen nimeämistä käsitteiden havainnollistamiseen. Katso Dellin artikkelia Dell Networking S-Series 202172: Basic Interface Configuration - SONiC 4.0 tarjoaa lisätietoja liittymien nimeämisestä


Indeksi

Määritä IP-osoite.

MTU
 

Määritä IP-osoite.

Konfiguraation syntaksi
Komento Selitys
admin@DELLSONiC:~$ sonic-cli
Siirry Dellin hallinnan komentoriviliittymään
DELLSONiC# configure terminal
Siirry määritystilaan
DELLSONiC(config)# interface <Eth slot/port><Vlan ID><PortChannel ID><Eth slot/port.subport><Loopback ID>
Määritä liittymä, VLAN, PortChannel, aliliittymä, silmukointi.
DELLSONiC(conf-if-XXXX)# ip address A.B.C.D/mask
Määritä IP-osoite maskin avulla.
DELLSONiC(conf-if-XXXX)# no ip address A.B.C.D/mask
Poista IP-osoite.
DELLSONiC(conf-if-XXXX)# no shutdown
Jos liittymä on sammutettu, poista liittymän sulkeminen.

Näytä komento, jolla voit vahvistaa IP-osoitteen.
Komento Selitys
admin@DELLSONiC:~$ sonic-cli
Siirry Dellin hallinnan komentoriviliittymään
DELLSONiC# configure terminal
Siirry määritystilaan
DELLSONiC# show ip interfaces
Näytä IP määritetty kohdassa Liitännät.
DELLSONiC# show running-configuration interface <Eth slot/port><Vlan ID><PortChannel ID><Loopback ID> 
Näytä liittymän määritykset
 
Määritetään IP-osoite käyttöliittymässä Eth 1/1 IP-osoitteella 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#

Tarkistetaan määritykset.
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#

 

VLAN 1:n IP-osoite määritetään IP-osoitteeksi 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#

Tarkistetaan määritykset.
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
 
Määritetään PortChannel 1:n IP-osoite IP-osoitteella 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

Tarkistetaan määritykset.
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#

 

Määritetään Loopback 1: n IP-osoite IP-osoitteella 10.0.0.1/32.
 
HUOMAUTUS: Silmukka tukee vain etuliitteen /32 pituutta tai aliverkkoa.
 
 
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#

Tarkistetaan määritykset.
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#
 

Määritä Anycastin IP-osoite

Katso artikkelista Dell Networking SONiC: Staattisen Anycast-yhdyskäytävän (anycast-osoitteen) määrittäminen Anycast-osoitteen määrittämisestä. 

 

MTU

Konfiguraation syntaksi
Komento Selitys
admin@DELLSONiC:~$ sonic-cli
Siirry Dellin hallinnan komentoriviliittymään
DELLSONiC# configure terminal
Siirry määritystilaan
DELLSONiC(config)# interface <Eth slot/port><Vlan ID><PortChannel ID><Eth slot/port.subport>
Määritä liittymä, VLAN, PortChannel, aliliittymä.
DELLSONiC(conf-if-XXXX)# mtu <MTU>
MTU:n muutoksen määrittäminen MTU (1312–9216). Oletus 9100
DELLSONiC(conf-if-XXXX)# no mtu
Määritä oletusarvoinen MTU liittymässä (oletus on 9100).

Näytä MTU:n tarkistuskomennot.
Komento Selitys
admin@DELLSONiC:~$ sonic-cli
Siirry Dellin hallinnan komentoriviliittymään
DELLSONiC# configure terminal
Siirry määritystilaan
DELLSONiC# show interface <Eth slot/port><Vlan ID><PortChannel ID>
Näytä liittymän tiedot.
DELLSONiC# show running-configuration interface <Eth slot/port><Vlan ID><PortChannel ID>
Näytä liittymän määritykset
DELLSONiC#show interface status
Näytä liittymän tila

 

  • MTU-määrityksen huomautukset

    • Määritä VLAN-jäsenten MTU ennen VLAN MTU:n määrittämistä. Kaikilla VLAN-verkon jäsenillä on oltava sama MTU-arvo. Merkityillä jäsenillä on oltava linkki, joka on 4 tavua suurempi kuin merkitsemättömillä jäsenillä, jotta pakettitunniste voidaan ottaa huomioon.
    • Määritä ensin porttikanavan jäsenten MTU, ennen kuin määrität porttikanavan MTU:n. Kaikilla porttikanavan jäsenillä on oltava sama MTU-arvo. Merkityillä jäsenillä on oltava linkki, joka on 4 tavua suurempi kuin merkitsemättömillä jäsenillä, jotta pakettitunniste voidaan ottaa huomioon.
    • Varmista, että porttikanavan jäsenten MTU on suurempi tai yhtä suuri kuin porttikanavan MTU. Jos määrität MTU:n porttikanavan jäsenille sen jälkeen, kun olet määrittänyt porttikanavan MTU:n, porttikanavan MTU:ta ei ehkä päivitetä. Järjestelmä valitsee pienimmän MTU-arvon, joka määritetään porttikanavalle tai porttikanavan jäsenille porttikanavan MTU:ksi. Esimerkiksi porttikanava sisältää merkittyjä jäseniä, joiden Link MTU on 1522 ja IP MTU 1500, ja merkitsemättömiä jäseniä, joiden Link MTU on 1518 ja IP MTU 1500. Porttikanavan linkki-MTU ei voi olla suurempi kuin 1518 tavua ja IP-MTU enintään 1500 tavua.
Määritetään MTU käyttöliittymässä 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

Tarkistetaan kokoonpano (Output Grepped lyhyyden vuoksi).
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

 

Määritetään MTU VLAN-liittymässä.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Vlan 1
DELLSONiC(config-if-Vlan1)# mtu 1500
DELLSONiC(config-if-Vlan1)# end
DELLSONiC#

Tarkistetaan kokoonpano (Output Grepped lyhyyden vuoksi).
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

 

Määritetään PortChannel 1 MTU 1500: lla.
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1
DELLSONiC(config-if-po1)# mtu 1500
DELLSONiC(config-if-po1)# end
DELLSONiC#

Tarkistetaan kokoonpano (Output Grepped lyhyyden vuoksi).
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:

Affected Products

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 ...
Article Properties
Article Number: 000218581
Article Type: How To
Last Modified: 10 Apr 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.