반응형
방법 1. ip addr 사용
#ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether de:ad:be:e2:89:91 brd ff:ff:ff:ff:ff:ff
inet 115.68.24.107/24 brd 115.68.24.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::dcad:beff:fee2:8991/64 scope link
valid_lft forever preferred_lft forever
방법2. net-tools 설치
yum 으로 net-tools 설치하면 ifconfig 명령어가 먹힌다.
반응형
'centos 7' 카테고리의 다른 글
Jenkins 설치시 public key not installed 에러 상황 (0) | 2024.03.21 |
---|---|
systemctl 명령어 모음 (0) | 2019.12.24 |
pstree가 안먹힐때 (0) | 2016.10.12 |
centos 7 yum 사용시 rpmdb open failed 에러 발생시 (0) | 2016.09.07 |