Dell Networking SONiC 암호 복구
요약: 이 문서에서는 Dell Networking SONiC에서 암호를 재설정하거나 복구하는 방법에 대해 설명합니다.
이 문서는 다음에 적용됩니다.
이 문서는 다음에 적용되지 않습니다.
이 문서는 특정 제품과 관련이 없습니다.
모든 제품 버전이 이 문서에 나와 있는 것은 아닙니다.
지침
|
참고: 이 절차를 수행하려면 스위치를 재부팅해야 합니다. 필요한 다운타임을 예약합니다(해당하는 경우). 재부팅 시 저장되지 않은 변경 사항이 모두 손실됩니다.
|
GRUB에서 관리자 암호를 복구할 수 있습니다. Dell Networking SONiC에서 관리자 암호를 잊어버리거나 분실한 경우 이 절차를 사용할 수 있습니다.
- 직렬 또는 USB 콘솔 포트를 사용하여 스위치에 연결합니다.
- 스위치를 재부팅하거나 전원을 켭니다. 하드 재부팅을 수행할 수 있습니다.
- GRUB 메뉴가 나타날 때까지 기다립니다.
GNU GRUB version 2.02
+----------------------------------------------------------------------------+
|*SONiC-OS-4.0.5-Enterprise_Base |
| ONIE |
| |
| |
+----------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line.
- GRUB 메뉴에서 SONiC 버전을 선택하고 e 키를 눌러 GRUB 편집기를 엽니다.
GNU GRUB version 2.02 /----------------------------------------------------------------------------\ |setparams 'SONiC-OS-4.0.5-Enterprise_Base' | | | | search --no-floppy --label --set=root SONiC-OS | | echo 'Loading SONiC-OS OS kernel ...' | | insmod gzio | | if [ x = xxen ]; then insmod xzio; insmod lzopio; fi | | insmod part_msdos | | insmod ext2 | | linux /image-4.0.5-Enterprise_Base/boot/vmlinuz-4.19.0-9-2-amd64 \| |root=UUID=1ef6ad59-xxxx-xxxx-xxxx-68fe15d8a089 rw console=tty0 console=tty\| |S0,115200n8 quiet intel_idle.max_cstate=0 net.ifnames=0 bi\| |osdevname=0 loop=image-4.0.5-Enterprise_Base/fs.squashfs lo\|v |opfstype=squashfs crashkernel=0M-2G:2\|v \----------------------------------------------------------------------------/ Minimum Emacs-like screen editing is supported. TAB lists completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a command-line or ESC to discard edits and return to the GRUB menu.
- 화살표 키를 사용하여 "linux /image---"로 시작하는 줄로 이동합니다. 아래 샘플 출력에 줄이 표시됩니다.
GNU GRUB version 2.02 /----------------------------------------------------------------------------\ |setparams 'SONiC-OS-4.0.5-Enterprise_Base' | | | | search --no-floppy --label --set=root SONiC-OS | | echo 'Loading SONiC-OS OS kernel ...' | | insmod gzio | | if [ x = xxen ]; then insmod xzio; insmod lzopio; fi | | insmod part_msdos | | insmod ext2 | | linux /image-4.0.5-Enterprise_Base/boot/vmlinuz-4.19.0-9-2-amd64 \| |root=UUID=1ef6ad59-xxxx-xxxx-xxxx-68fe15d8a089 rw console=tty0 console=tty\| |S0,115200n8 quiet intel_idle.max_cstate=0 net.ifnames=0 bi\| |osdevname=0 loop=image-4.0.5-Enterprise_Base/fs.squashfs lo\|v |opfstype=squashfs crashkernel=0M-2G:2\|v \----------------------------------------------------------------------------/ Minimum Emacs-like screen editing is supported. TAB lists completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a command-line or ESC to discard edits and return to the GRUB menu.
| GRUB 편집기에서 화살표 키가 작동하지 않는 경우 아래 키를 사용하여 줄로 이동합니다. UP: CTRL+p 아래로: CTRL+n 왼쪽: CTRL+b 오른쪽: CTRL+f |
- r/w와 console=tty0 사이에 다음 줄을 입력합니다.
init=/bin/bash
샘플 출력은 아래에 나와 있습니다(실제 출력에는 색상이 표시되지 않음).
GNU GRUB version 2.02
/----------------------------------------------------------------------------\
|setparams 'SONiC-OS-4.0.5-Enterprise_Base' |
| |
| search --no-floppy --label --set=root SONiC-OS |
| echo 'Loading SONiC-OS OS kernel ...' |
| insmod gzio |
| if [ x = xxen ]; then insmod xzio; insmod lzopio; fi |
| insmod part_msdos |
| insmod ext2 |
| linux /image-4.0.5-Enterprise_Base/boot/vmlinuz-4.19.0-9-2-amd64 \|
|root=UUID=aaa4e106-1eed-xxxx-xxxx-1d7bb8cdb93c rw init=/bin/bash console=t\|
|ty0 console=ttyS0,115200n8 quiet intel_idle.max_cstate=0 n\|
|et.ifnames=0 biosdevname=0 loop=image-4.0.5-Enterprise_Base\|v
|/fs.squashfs loopfstype=squashfs cras\|v
\----------------------------------------------------------------------------/
Minimum Emacs-like screen editing is supported. TAB lists
completions. Press Ctrl-x or F10 to boot, Ctrl-c or F2 for a
command-line or ESC to discard edits and return to the GRUB menu.
변경 사항을 삭제하려면 ESC 키를 누릅니다. 이 작업을 수행하면 변경 사항을 저장하지 않고 GRUB 메뉴로 돌아갑니다.
|
참고: 이 삽입은 재부팅을 견디지 못합니다. 암호가 복구된 후에는 GRUB를 편집할 필요가 없습니다.
|
- F10 또는 Ctrl+x를 눌러 부팅합니다.
샘플 부팅 순서
Booting a command listBooting a command list Loading SONiC-OS OS kernel ...Loading SONiC-OS OS kernel ... Loading SONiC-OS OS initial ramdisk ...Loading SONiC-OS OS initial ramdisk ... AF, DXE_EXIT_BOOT_SERVICES(03101019) B, B, bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell root@(none):/#
- 다음 Linux 명령을 사용하여 암호를 수정할 수 있습니다. 아래 예에서는 사용자 계정 관리자를 수정합니다.
passwd <username> root@(none):/# passwd admin Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
- 다음 명령을 실행하여 스위치를 재부팅합니다.
root@(none):/# echo "b" > /proc/sysrq-trigger
또는
root@(none):/# reboot -f
스위치가 재부팅된 후 새 자격 증명으로 스위치에 로그인할 수 있습니다.
해당 제품
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
...
문서 속성
문서 번호: 000212939
문서 유형: How To
마지막 수정 시간: 13 12월 2023
버전: 2
다른 Dell 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.