Infra Architecture/linux

[ Linux ] ifconfig

물극필반99 2023. 1. 8. 13:11
반응형

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

 

 

반응형