1 更新或升级系统
sudo apt-get update
2 安装ipconfig的工具
sudo apt install net-tools
3 查看ip
ifconfig