본문 바로가기

Infra Architecture/linux

[ Linux ] ifconfig

반응형

ifconfig 명령어

ifconfig명령어를 통해 ip, netmask, broadcast등을 확인할 수 있다. net-tools가 설치되어있어야 명령어를 실행할 수 있으며 net-tools가 설치되지 않은 상태에서 ifconfig명령어를 실행하면 command not found 에러메세지가 출력된다.

 

duru@ykd2:/sbin$ ifconfig
Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools

duru@ykd2:/sbin$ sudo apt install net-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  net-tools
...............중략......................
No VM guests are running outdated hypervisor (qemu) binaries on this host.

duru@ykd2:/sbin$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.219.114  netmask 255.255.255.0  broadcast 192.168.219.255

 

 

반응형

'Infra Architecture > linux' 카테고리의 다른 글

[ Centos ] IP 변경 방법  (0) 2023.02.28
[ Linux ] 사설 및 공인 IP 확인  (0) 2023.01.08
[ Linux ] DNS 확인  (0) 2023.01.08
[ Linux ] sudo 권한 주기  (0) 2023.01.08
[ Linux ] 유저 생성  (0) 2023.01.08