Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Check the IP address.

Check the IP address.

To check the IP address, use the "ifconfig" command.
In addition to checking the IP address, the ifconfig command can also be used to change it.

On CentOS7, you can also run the "ip" command with the "a" option instead of ifconfig.

Currently, ifconfig is being replaced by the ip command, and ifconfig may no longer be available in the future.

[root@Lion ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.11.62 netmask 255.255.255.0 broadcast 192.168.11.255
inet6 fe80::7646:a0ff:fefe:f95c prefixlen 64 scopeid 0x20<link>
ether 74:46:a0:fe:f9:5c txqueuelen 1000 (Ethernet)
RX packets 303293853 bytes 408640765545 (380.5 GiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 140943648 bytes 101594217154 (94.6 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 74:46:a0:fe:f9:5d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8412 bytes 25745980 (24.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8412 bytes 25745980 (24.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@Lion ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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 mq state UP group default qlen 1000
link/ether 74:46:a0:fe:f9:5c brd ff:ff:ff:ff:ff:ff
inet 192.168.11.62/24 brd 192.168.11.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::7646:a0ff:fefe:f95c/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 74:46:a0:fe:f9:5d brd ff:ff:ff:ff:ff:ff
タイトルとURLをコピーしました