DELL Networking SONiC: 레이어 3 인터페이스에서 IPv4 주소 및 최대 전송 유닛을 구성하는 방법
Summary: 이 문서에서는 Dell Networking SONiC에서 IPv4 주소 및 MTU(Maximum Transmission Unit) 인터페이스를 구성하는 방법에 대해 설명합니다. 이 문서에서는 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
|
필수 구성 요소
개념을 설명하기 위해 표준 인터페이스 이름 지정을 사용하고 있습니다. 다음 Dell Networking S-Series에 202172 Dell 문서를 참조하십시오. 기본 인터페이스 구성 - SONiC 4.0 을 참조하십시오. 인터페이스 이름 지정에 관한 자세한 내용 |
인덱스
IP 주소를 할당합니다.
구성 구문
| 명령 | 설명 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Dell 관리 명령줄 인터페이스 입력 |
DELLSONiC# configure terminal |
구성 모드 진입 |
DELLSONiC(config)# interface <Eth slot/port><Vlan ID><PortChannel ID><Eth slot/port.subport><Loopback ID> |
인터페이스, VLAN, PortChannel, 하위 인터페이스, 루프백을 구성합니다. |
DELLSONiC(conf-if-XXXX)# ip address A.B.C.D/mask |
마스크로 IP 주소를 구성합니다. |
DELLSONiC(conf-if-XXXX)# no ip address A.B.C.D/mask |
IP 주소를 제거합니다. |
DELLSONiC(conf-if-XXXX)# no shutdown |
인터페이스가 종료된 경우 인터페이스 종료를 해제합니다. |
IP 주소를 확인하는 명령을 표시합니다.
| 명령 | 설명 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Dell 관리 명령줄 인터페이스 입력 |
DELLSONiC# configure terminal |
구성 모드 진입 |
DELLSONiC# show ip interfaces |
인터페이스에 구성된 IP를 표시합니다. |
DELLSONiC# show running-configuration interface <Eth slot/port><Vlan ID><PortChannel ID><Loopback ID> |
인터페이스 구성 표시 |
IP 주소 10.0.0.1/24를 사용하여 인터페이스 Eth 1/1에서 IP 주소를 구성해 보겠습니다.
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# |
구성을 확인하겠습니다.
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# |
IP 주소 10.0.0.1/24를 사용하여 VLAN 1의 IP 주소를 구성해 보겠습니다.
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# |
구성을 확인하겠습니다.
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 |
IP 주소 10.0.0.1/24를 사용하여 PortChannel 1에서 IP 주소를 구성해 보겠습니다.
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 |
구성을 확인하겠습니다.
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# |
IP 주소 10.0.0.1/32를 사용하여 루프백 1의 IP 주소를 구성해 보겠습니다.
참고: 루프백은 /32 접두사 길이 또는 서브넷만 지원합니다.
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# |
구성을 확인하겠습니다.
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# |
Anycast IP 주소 할당애니캐스트 주소를 구성하는 방법은 Dell Networking SONiC 정적 애니캐스트 게이트웨이(애니캐스트 주소)를 구성하는 방법 문서를 참조하십시오. |
Mtu
구성 구문
| 명령 | 설명 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Dell 관리 명령줄 인터페이스 입력 |
DELLSONiC# configure terminal |
구성 모드 진입 |
DELLSONiC(config)# interface <Eth slot/port><Vlan ID><PortChannel ID><Eth slot/port.subport> |
인터페이스, VLAN, PortChannel, 하위 인터페이스를 구성합니다. |
DELLSONiC(conf-if-XXXX)# mtu <MTU> |
MTU 구성 MTU 변경(1312에서 9216으로). 기본값: 9100 |
DELLSONiC(conf-if-XXXX)# no mtu |
인터페이스에서 기본 MTU를 구성합니다(기본값은 9100). |
MTU를 확인하는 명령을 표시합니다.
| 명령 | 설명 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
Dell 관리 명령줄 인터페이스 입력 |
DELLSONiC# configure terminal |
구성 모드 진입 |
DELLSONiC# show interface <Eth slot/port><Vlan ID><PortChannel ID> |
인터페이스 세부 정보를 표시합니다. |
DELLSONiC# show running-configuration interface <Eth slot/port><Vlan ID><PortChannel ID> |
인터페이스 구성 표시 |
DELLSONiC#show interface status |
인터페이스 상태 표시 |
-
MTU 구성 참고 사항
- VLAN MTU를 구성하기 전에 먼저 VLAN 멤버에서 MTU를 구성합니다. VLAN의 모든 구성원은 동일한 MTU 값을 가져야 합니다. 태그가 지정된 구성원은 패킷 태그를 설명하기 위해 태그가 지정되지 않은 구성원보다 4바이트 높은 링크 MTU가 있어야 합니다.
- 포트 채널 MTU를 구성하기 전에 포트 채널 멤버에서 MTU를 먼저 구성합니다. 포트 채널의 모든 멤버는 동일한 MTU 값을 가져야 합니다. 태그가 지정된 구성원은 패킷 태그를 설명하기 위해 태그가 지정되지 않은 구성원보다 4바이트 높은 링크 MTU가 있어야 합니다.
- 포트 채널 멤버의 MTU가 포트 채널 MTU보다 크거나 같은지 확인하십시오. 포트 채널 MTU를 구성한 후 포트 채널 구성원에 대한 MTU를 구성하면 포트 채널 MTU가 업데이트되지 않을 수 있습니다. 시스템은 포트 채널 또는 포트 채널 멤버에 구성된 가장 낮은 MTU 값을 포트 채널 MTU로 선택합니다. 예를 들어, 포트 채널에는 링크 MTU가 1522이고 IP MTU가 1500인 태그 지정된 멤버와 링크 MTU가 1518이고 IP MTU가 1500인 태그 없는 멤버가 포함되어 있습니다. 포트 채널의 링크 MTU는 1518바이트보다 높을 수 없으며 해당 IP MTU는 1500바이트보다 클 수 없습니다.
인터페이스 Eth 1/1에서 MTU를 구성해 보겠습니다.
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 |
구성을 확인해 보겠습니다(간결하게 하기 위해 출력이 Grepped됨).
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 |
VLAN 인터페이스에서 MTU를 구성해 보겠습니다.
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# interface Vlan 1 DELLSONiC(config-if-Vlan1)# mtu 1500 DELLSONiC(config-if-Vlan1)# end DELLSONiC# |
구성을 확인해 보겠습니다(간결하게 하기 위해 출력이 Grepped됨).
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 |
MTU 1500으로 PortChannel 1을 구성해 보겠습니다.
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# interface PortChannel 1 DELLSONiC(config-if-po1)# mtu 1500 DELLSONiC(config-if-po1)# end DELLSONiC# |
구성을 확인해 보겠습니다(간결하게 하기 위해 출력이 Grepped됨).
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.