Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

Dell Networking S-Series: 기본 인터페이스 구성 - SONIC 4.0

Summary: SONIC 4.0 인터페이스 기본 구성 방법

This article applies to   This article does not apply to 

Instructions

Dell Networking S-Series: 기본 인터페이스 구성 - SONIC 4.0


요약: Sonic 4.0 인터페이스 기본 구성 방법
지침
이 단계에서는 스위치가 독립형 장치로, 공장 출고 시 기본 설정으로 구성되어 있다고 가정합니다. 작성된 예제는 링크된 기술 자료 문서를 참조하십시오.
기본 형식에서 Sonic 전면 패널 인터페이스의 이름은 이더넷 0에서 이더넷 X로 지정되며 X는 마지막 전면 패널 포트에 있습니다.  표준 이름 지정은 이더넷 x/y/z 모드를 사용합니다. 여기서 x/y는 슬롯/포트 번호, z는 브레이크아웃 포트에 사용됩니다.
 인터페이스 이름 지정 형식을 변경합니다. 기본 인터페이스 이름 지정 모드를 Native에서 Standard로 변경합니다.  
  1. Linux 프롬프트에서 "sonic-cli"로 Sonic CLI를 시작합니다.
admin@sonic:~$ sonic-cli
sonic#
 
  1. 현재 "show interface-naming"으로 설정된 interface 상태 모드를 표시합니다.
sonic# show interface-naming
Interface naming mode is native
sonic#
 
  1. 인터페이스 상태를 표시하고 기본 인터페이스 명명 규칙(기본 명명 규칙)을 확인합니다. "show interface status"(그림 1):
show interface status
그림 1: 인터페이스 상태 예시를 표시합니다.
  1. 스위치 구성을 수정하려면 "configure terminal" 명령을 실행합니다.
sonic# configure terminal
sonic(config)#
 
  1. 인터페이스 명명 모드를 Standard 모드로 변경하려면 "interface-naming standard" 명령을 사용합니다.
sonic(config)# interface-naming standard
Broadcast message: Interface naming mode has changed. Users running 'sonic-cli' are required to restart your session.
                                                                               
sonic(config)#
 
참고: 모드 변경을 적용하려면 모든 사용자가 Sonic CLI를 종료하고 다시 입력해야 합니다. .
  1. "exit"를 사용하여 구성 모드를 종료합니다.
sonic(config)# exit
sonic#
 
  1. "exit"를 사용하여 Sonic CLI를 종료합니다.
sonic# exit
admin@sonic:~$
 
  1. "sonic-cli"를 사용하여 Sonic CLI를 다시 입력합니다.
admin@sonic:~$ sonic-cli
sonic#
 
  1. "show interface status"를 사용하여 인터페이스 상태를 표시합니다.
sonic# show interface status

인터페이스 이름이 이더넷 X에서 이더넷 x/y로 변경되는 것을 확인합니다(그림 2).
Standard 모드: 인터페이스 상태 예시 보기
그림 2: Standard 모드: 인터페이스 상태 예시 보기
  1. "write memory"를 사용하여 실행 중인 구성을 시작 구성에 저장합니다.
sonic# write memory
sonic#

개별 인터페이스 구성: 구성 모드로 들어간 다음 인터페이스 구성 모드로 들어갑니다.
  1. "sonic-CLI"로 SONiC CLI를 시작합니다.
admin@sonic:~$ sonic-cli
sonic#
 
  1. "show running-configuration interface Eth 1/30"을 사용하여 인터페이스 구성을 표시합니다.
sonic# show running-configuration interface Eth 1/30
!
interface Eth1/30
 mtu 9100
 speed 25000
 fec none
 shutdown
 
  1. "configure terminal"을 사용하여 구성 모드로 이동합니다.
sonic# configure terminal
sonic(config)#
 
  1. "interface Eth 1/30"을 사용하여 인터페이스 Eth 1/30 구성 모드로 이동합니다.
sonic(config)# interface Eth 1/30
sonic(conf-if-Eth1/30)#
 
  1. "no shutdown"으로 인터페이스 Eth 1/30을 종료하지 않습니다.
sonic(conf-if-Eth1/30)# no shutdown
sonic(conf-if-Eth1/30)#
 
  1. "IP 주소 10.1.1.2/24"를 사용하여 인터페이스 Eth 1/30의 IP 주소를 구성합니다.
sonic(conf-if-Eth1/30)# ip address 10.1.1.2/24
sonic(conf-if-Eth1/30)#
 
  1. "end"를 사용하여 구성 모드를 종료합니다.
sonic(conf-if-Eth1/30)# end
sonic#
 
  1. "show running-configuration interface Eth 1/30"을 사용하여 인터페이스 구성을 표시합니다.
sonic# show running-configuration interface eth 1/30
!
interface Eth1/30
 mtu 9100
 speed 25000
 fec none
 no shutdown
 ip address 10.1.1.2/24
 
  1. "show ip interfaces"를 사용해 IP 인터페이스를 표시합니다.
sonic# show ip interfaces
Flags: U-Unnumbered interface, A-Anycast IP
-----------------------------------------------------------------------------------------------
Interface            IP address/mask                    VRF            Admin/Oper     Flags         
-----------------------------------------------------------------------------------------------
Eth1/30              10.1.1.2/24                                           up/up                        
sonic#
 
  1. "show interface eth 1/30"로 Eth 1/30 인터페이스 상태를 표시합니다.
(output truncated for brevity)

sonic# show interface eth 1/30
    
Eth1/30 is up, line protocol is up
Hardware is Eth
IPV4 address is 10.1.1.2/24
Mode of IPV4 address assignment: MANUAL
Mode of IPV6 address assignment: not-set
Interface IPv6 oper status: Disabled
IP MTU 9100 bytes
LineSpeed 25GB, Auto-negotiation off
FEC: DISABLED
Last clearing of "show interface" counters: never
…
 
  1. "write memory"를 사용하여 실행 중인 구성을 시작 구성에 저장합니다.
sonic# write memory
sonic#

다중 인터페이스 구성: 여러 인터페이스를 동시에 설정하려면 'interface range' 옵션을 사용합니다. show 명령을 사용하여 다양한 인터페이스를 볼 때는 'range' 키워드가 필요하지 않습니다.
예시:
  • 포트 14에서 15까지의 연속 범위는 "interface range ethernet 1/1/14-1/1/15"로 구성합니다.
  • 연속되지 않는 포트 범위 3,10,19는 "interface range ethernet 3,10,19"로 구성합니다.
  • 연속 범위와 비연속 범위를 혼합한 범위는 "interface range ethernet 1/1/3, 1/1/14-1/1/15"로 구성합니다.
  1. 다중 인터페이스를 구성할 때는 'range' 옵션이 필요하지 않습니다. 이더넷 1/1-1/3,1/5를 표시하려면 "show interface Eth 1/1-1/3,1/5" 명령을 사용합니다.
(output truncated for brevity)
sonic# show interface Eth 1/1-1/3,1/5
    
Eth1/1 is down, line protocol is down, reason admin-down
Hardware is Eth, address is 0c:02:22:c7:00:08
Mode of IPV4 address assignment: not-set
...
Output statistics:
        0 packets, 0 octets
        0 Multicasts, 0 Broadcasts, 0 Unicasts
        0 error, 0 discarded, 0 Oversize
    
Eth1/2 is down, line protocol is down, reason admin-down
Hardware is Eth, address is 0c:02:22:c7:00:08
Mode of IPV4 address assignment: not-set
...
Output statistics:
        0 packets, 0 octets
        0 Multicasts, 0 Broadcasts, 0 Unicasts
        0 error, 0 discarded, 0 Oversize
    
Eth1/3 is down, line protocol is down, reason admin-down
Hardware is Eth, address is 0c:02:22:c7:00:08
Mode of IPV4 address assignment: not-set
...
Output statistics:
        0 packets, 0 octets
        0 Multicasts, 0 Broadcasts, 0 Unicasts
        0 error, 0 discarded, 0 Oversize
    
Eth1/5 is down, line protocol is down, reason admin-down
Hardware is Eth, address is 0c:02:22:c7:00:08
Mode of IPV4 address assignment: not-set
...
Output statistics:
        0 packets, 0 octets
        0 Multicasts, 0 Broadcasts, 0 Unicasts
        0 error, 0 discarded, 0 Oversize
sonic(config)# end
 
  1. "configure terminal" 명령을 실행합니다.
sonic# configure terminal
sonic(config)#
 
  1. "interface range Eth1/1-1/3,1/5,1/7-1/9"를 사용하여 인터페이스 이더넷 1/1-1/3,1/5,/1/7-1/9 구성:
sonic(config)# interface range eth 1/1-1/3,1/5,1/7-1/9
%Info: Configuring only existing interfaces in range
sonic(conf-if-range-eth**)#
 
  1. "no shut"으로 인터페이스 미종료 구성:
sonic(conf-if-range-eth**)# no shutdown
sonic(conf-if-range-eth**)#
 
  1. "switchport access VLAN 1"을 사용하여 액세스 모드 VLAN 1에 대한 인터페이스 구성:
sonic(conf-if-range-eth**)# switchport access vlan 1
sonic(conf-if-range-eth**)#
 
  1. "show interface status"(그림 3)를 사용하여 사용자 구성 확인:
 
참고: Oper 및 Reason 열의 구성된 인터페이스 범위에 대한 상태가 변경되었습니다.
인터페이스 상태 예시 보기
그림 3: 인터페이스 상태 예시 보기
  1. "show vlan 1"을 사용하여 VLAN 1 인터페이스 할당 확인(그림 4):
VLAN 1 예시 보기
그림 4: VLAN 1 예시 보기 
  1. "write memory"를 사용하여 실행 중인 구성을 시작 구성에 저장합니다.
sonic# write memory
sonic#

자세한 내용은 Dell Technologies Enterprise SONiC 사용자 가이드 릴리스 문서를 참조하거나 Dell Technologies 기술 지원 부서에 문의하십시오.

Affected Products

Networking, Enterprise SONiC Distribution
Article Properties
Article Number: 000202172
Article Type: How To
Last Modified: 23 May 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.
Article Properties
Article Number: 000202172
Article Type: How To
Last Modified: 23 May 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.