networking - Router Has 2 IP's?
问题描述
I just read a router can and expected to have minimum of 2 ips, my question is when I type:
"What's my ip"
in google it shows me one public ip but how it decides which one of the two to show?
Plus, How can I see all my router ips on macOS?
解决方案
你混合了两件事。
路由器在不同网络上需要至少 2 个接口这一事实实际上与您的外部公共网络地址与您的内部私有地址不同这一事实无关。前一个事实与路由器的定义有关。而后一个事实与常用的“NAT”(网络地址转换)协议有关。
推荐阅读
- angular - 无论如何使用带有 express-ws 的 websockets 和带有 Angular Universal 9 应用程序的 WebSocket 客户端 api?
- can-bus - CAN 总线中的帧确认
- python - python - 如何在python中的matplotlib条形图中为某些条形着色?
- android - Android 导航抽屉模板无法工作,除非它在 Emulator AS4.0 上通过制表符和光标键导航
- networking - istio 主机匹配规则重定向问题
- reactjs - react-table 在渲染时重新初始化
- java - 如何修复缓慢的 gradle clean build
- laravel - Laravel Routes - 可以在不同表单上重用来自一个表单的 ajax 路由调用吗?
- python - 使用唯一的数据框,但行是一个列表,而不是“一维数组”
- android - 无法启动 Observatory HTTP 服务器 Flutter/Dart