Method used to check the IP address and MAC address of a storage device

Method used to check the IP address and MAC address of a storage device:
1. Use the SSH tool to log in to the debug mode.
2. Run ip a to check the IP address and MAC address of the storage device.
Storage:~ # ip a
a: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/16 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
b: sit0: mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
c: eth0: mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
link/ether 78:1d:ba:cc:c7:6b brd ff:ff:ff:ff:ff:ff
d: eth1: mtu 1500 qdisc pfifo_fast master bond0 qlen 1000
link/ether 78:1d:ba:cc:c7:6b brd ff:ff:ff:ff:ff:ff
e: eth2: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 78:1d:ba:cc:c7:69 brd ff:ff:ff:ff:ff:ff
inet 129.22.242.4/16 brd 129.22.255.255 scope global eth2
inet 172.168.128.102/16 brd 172.168.255.255 scope global eth2:1
inet6 2002:8116:93d:b:7a1d:baff:fecc:c769/64 scope global dynamic
valid_lft 2591901sec preferred_lft 604701sec
inet6 fec0::b:7a1d:baff:fecc:c769/64 scope site dynamic
valid_lft 2591901sec preferred_lft 604701sec
inet6 fec0::11/10 scope site tentative flags 08
valid_lft forever preferred_lft forever
inet6 fe80::7a1d:baff:fecc:c769/64 scope link
valid_lft forever preferred_lft forever
f: eth3:mtu 1500 qdisc noop qlen 1000
link/ether 78:1d:ba:cc:c7:68 brd ff:ff:ff:ff:ff:ff
g: bond0: mtu 1500 qdisc noqueue
link/ether 78:1d:ba:cc:c7:6b brd ff:ff:ff:ff:ff:ff
inet 127.127.127.11/24 brd 127.127.127.255 scope global bond0
inet6 fe80::7a1d:baff:fecc:c76b/64 scope link
valid_lft forever preferred_lft forever
h: bond1: mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
i: bond2: mtu 1500 qdisc noop
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
Note:
Use bond0 as an example. 78:1d:ba:cc:c7:6b following link/either is the MAC address and 127.127.127.11 following inet is the IP address.

Scroll to top