一、查看当前 IP 地址:
1、在 ubuntu 下,我们可以使用 iptables 命令来查看当前的 IP 地址。
2、使用 iptables 命令的语法: iptables[- n][- l][- r][- u][- c][- v][- help][- localhost][- interfacename][- port][- address][- speed][- addr][- origin][- phone][- dns][- name][- protocol][- maxippty][- timeout][- remote][- gateway][- psi][- length][- packet][- sizeofbyteswith (bytes)][- version][- verbose][- pause][- lineup][- pathname][- hostname][- password][- defaultifext}]3、使用 ifconfig 命令查看当前的 IP 地址:
二、查看网卡的 IP 地址: