Run the command:运行命令:
ip address show IP地址显示
In the output you will find lines like these:在输出你会发现线一样,这些:
inet 127.0.0.1 /8 scope host lo在Inet 127.0.0.1 / 8范围东道国劳
inet 192.168.1.10 /24 brd 192.168.1.255 scope global eth1在Inet 192.168.1.10 / 24 brd 192.168.1.255全球范围eth1

The highlighted portions are your (ipv4) ip addresses.突出的部分是你的( IPv4 )的IP地址。

The /8 or /24 represents your network. / 8 /或24代表您的网络。 /8 means your subnet mask is 255.0.0.0 and /24 means your subnet mask is 255.255.255.0. / 8意味着您的子网掩码255.0.0.0和/ 24意味着您的子网掩码是255.255.255.0 。 You will not have a subnet typically for a point-to-point connection.您将不会有一个子网,通常为点对点的连接。

Note: The lines containing inet6 provides the ipv6 addresses.注:包含以下内容的行inet6提供IPv6地址。