Berikut Script untuk mengecek IP Address pada CentOS dan RedHat
ifconfig
[root@centos ~]# ifconfig
ens160: flags=4163
inet 192.168.88.100 netmask 255.255.255.0 broadcast 192.168.88.255
inet6 fe80::20c:29ff:fe5a:6451 prefixlen 64 scopeid 0x20
ether 00:0c:29:5a:64:51 txqueuelen 1000 (Ethernet)
RX packets 620208 bytes 69236740 (66.0 MiB)
RX errors 0 dropped 24 overruns 0 frame 0
TX packets 13680 bytes 2557071 (2.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ip add
[root@centos ~]# ip add
2: ens160:
link/ether 00:0c:29:5a:64:51 brd ff:ff:ff:ff:ff:ff
inet 192.168.88.100/24 brd 192.168.88.255 scope global noprefixroute ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe5a:6451/64 scope link
valid_lft forever preferred_lft forever
[root@centos ~]#
0 komentar