- 查看内网IP
ifconfig
# 简化输出
ifconfig | grep inet
# 简化输出
或
ifconfig -a
或
ip addr
- 查看外网的ip
curl ifconfig.me
ifconfig
# 简化输出
ifconfig | grep inet
# 简化输出
或
ifconfig -a
或
ip addr
curl ifconfig.me
命令: ip address 简写ip a 过滤出来某个网卡的ip:
Centos7之上的操作系统默认使用firewalld作为防火墙组件,相比之前的iptables来说,firewalld在进行网络管理的时候,更加便利,今天我们来探究一下firewalld的使用方法。 一防火墙启动演示机器:10.200.19.146 (打开防火墙)系统:CentOS Linux release 7.4.170810.199.137.114(源端访问发起机器)注:后文验证
在实际工作中你是否有过这样的困扰,一天需要跑多个客户。每个客户的办公环境中的内网IP地址信息都需要进行手动设置,如果只去一次的客户还好。如果长期需要在这些IP地址中切换,每到一个客户的办公环境都需要手动设置一遍是不是很痛苦。这样的操作虽然每次花的时间不多,但是还是比较费劲去配置IP信息。有些时候还找不到对应客户的IP地址需要重新去问一遍。如果有这么一个工具可以让你不必每次手动配置IP地
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M