리눅스
[Linux]리눅스 NetworkManager /nmcli 사용/hostname 설정/네트워크관리 명령 정리
해병1188기
2021. 3. 18. 16:39
728x90
반응형
네트워크 관리
여러가지의 설정을 만들어 놓고 필요할때 적용한 하면 된다
고전적인 아이피 주소 찾는 방법
ifconfig 명령어
네트워크 관리 명령어 정리
nmcli device : device 종류를 볼 수 있음.
nmcli connection show : connection 종류를 볼 수 있음
nmcli con show "con-name" : connection의 자세한 정보
nmcli con add con-name "connection 이름" ifname 물리 장치 type ethernet autoconnetion yes => dhcp 설정
nmcli con add con-name "connection 이름" ifname 물리 장치 type ethernet autoconnetion yes ip4 "xxx.xxx.xxx.xxx/xx" gw4 "xxx.xxx.xxx.xxx" => 고정 아이피 설정
nmcli con reload
nmcli con up "connection 이름"
dhcp => 고정 아이피로 수정 한다고 했을 때
nmcli con mod dhcp(con-name) ipv4.addresses "할당 아이피주소/프리픽스" ipv4.gateway "게이트웨이주소" ipv4.method manual connection.id 바꿀 con-name connection.interface-name (new device)
728x90
반응형