由于使用路由器导致IP冲突 [英] IP Conflicts due to use of router

查看:105
本文介绍了由于使用路由器导致IP冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用我的路由器连接到互联网时,ipv4地址是xyza,当我使用像whatismyip这样的网站验证我的IP时,它们会显示不同的IP!..我知道必须有一些配置问题路由器设置,但如果我以某种方式使IP地址静态(我从这些网站看到),是否有可能使用该IP完成与其他计算机的连接?什么是使用静态IP的好处?

When i connect to the internet using my router, the ipv4 address is x.y.z.a,where as,when i use sites like whatismyip to verify my ip,they show a different ip!..I know there must be some configuration issues with the router settings,But if i make somehow the ip address Static(which i see from those sites),Could it be possible to accomplish connections with other computers using that ip? What's the benifit of using static ip?

推荐答案

如果你说的是路由器,你可能意味着像linksys或tplink这样的SOHO路由器。它们不仅仅是路由器,它们还可以在网络上的设备之间共享您的单个WAN。为此,他们使用所谓的 NAT [ ^ ]并且可能 DHCP [< a href =https://en.wikipedia.org/wiki/target =_ blanktitle =New Window> ^ ]。这些与严格无关。有副作用:内部IP地址对外部世界不可见,您访问的每个站点都会看到您从提供商处获得的单个WAN IP - 这是您可以通过whatsmyip和其他类似站点看到的内容。

静态IP意味着您没有从DHCP服务器获取IP地址。您的WAN IP和本地IP可以是静态或动态的,它们无论如何都不相关。

如果您不使用路由器,您将连接WAN IP,但您无法共享连接。

有一个选项可以同时拥有 - 但只有当提供商和路由器支持它时:pppoe pass-through。

如果您拥有的WAN IP地址与您拥有的设备数量一样多,则不需要NAT功能,您可以使用常规路由器(或者如果支持此选项,您可以切换NAT) ),但是你需要在本地设备上设置WAN IP地址或使用WAN端DHCP。
If you speak of a router you probably mean a SOHO router like linksys or tplink and so on. They are not just routers, they also share your single wan ip between devices on your network. To do this, they use so-called NAT[^] and probably DHCP[^] also. These to are not strictly related. There is on side-effect: the inside IP addresses are not visible to the outer world, every site you are visiting is seeing the single WAN IP you got from your provider - that is what you can see with whatsmyip and other similar sites.
A static IP means, that you don't get your IP address from a DHCP server. Your WAN IP and your local IP can be bot static or dynamic, they are not related howsoever.
If you don't use the router you will connect with the WAN IP, but you can't share the connection.
There is one option to have both - but only if the provider and the router is supporting it: pppoe pass-through.
If you got as many WAN IP addresses as many devices you have you don't need the NAT functionality and you can use a regular router instead (or you can switch of NAT, if this option is supported), but than you will need to set WAN IP addresses on the local devices or use WAN side DHCP.


使用端口转发概念我解决了这个问题!谢谢@ZoltánZörgő
Using the port forwarding concept i solved the issue! Thanks @Zoltán Zörgő


这篇关于由于使用路由器导致IP冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆