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地址。