如何查询路由端口信息(怎么查看路由器开放端口) (路由器端查看)
编辑:rootadmin
路由器怎么设置 路由器全部怎么安装 路由器怎么设置 路由器亮红灯哪种故障 路由器登录入口和光猫的区别 路由器怎么重启 路由器怎么连接 路由器桥接教程详细 路由器干什么用:如何查询路由端口信息怎么查看路由器*端口如何查看路由器端口号一、如何查询路由端口信息1.查询机器用了哪个端口displayarpdynamicType:S-StaticD-DynamicIPAddressMACAddressVLANIDPortNameAgingType..2.-5e-aGigabitEthernet6/0/D..2.--beGigabitEthernet6/0/D..2.--eGigabitEthernet6/0/D..3.--bGigabitEthernet6/0/D..3.-5e-aGigabitEthernet6/0/D..3.--cGigabitEthernet6/0/D..3.f-e2b2-5a0aGigabitEthernet6/0/D或者查看MAC*对应的端口displaymac-addressMACADDRVLANIDSTATEPORTINDEXAGINGTIME(s)-5e-LearnedGigabitEthernet6/0/1AGING-ba-LearnedGigabitEthernet6/0/1AGINGf-d-abLearnedGigabitEthernet6/0/1AGINGf-d-aLearnedGigabitEthernet6/0/1AGING2.通过查询配置信息查询商品名字displaycurrent-configurationinterfaceGigabitEthernet6/0/portaccessvlan#interfaceGigabitEthernet6/0/portaccessvlan#interfaceGigabitEthernet6/0/portaccessvlan#interfaceGigabitEthernet6/0/#interfaceGigabitEthernet6/0/#interfaceGigabitEthernet6/0/#interfaceGigabitEthernet6/0/portaccessvlan.查看端口状态displayinterfaceGigabitEthernet6/0/GigabitEthernet6/0/currentstate:UPIPSendingFrames'FormatisPKTFMT_ETHNT_2,Hardwareaddressisf-e2b2-5bTheMaximumTran*itUnitisMediatypeisTwistedpair,loopbacknotsetPorthardwaretypeis_BASE_TMbps-speedmode,Full-duplexmodeLinkspeedtypeisautonegotiation,LinkduplextypeisautonegotiationFlow-controlisnotenabledTheMaximumFrameLengthisAllowjumboframetopassPVID:Mditype:autoPortlink-type:accessTaggedVLANID:noneUntaggedVLANID:Lastsecondsinput:0packets/sec5bytes/secLastsecondsoutput:6packets/secbytes/secInput(total):packets,bytes-broadcasts,-multicastsInput(normal):packets,-byte*roadcasts,multicastsInput:0inputerrors,0runts,-giants,0throttles,0CRC0frame,-overruns,-aborts,-ignored,-parityerrorsOutput(total):packets,bytes-broadcasts,-multicasts,-pausesOutput(normal):packets,-byte*roadcasts,multicasts,0pausesOutput:0outputerrors,-underruns,-bufferfailures0aborts,0deferred,0collisions,0latecollisions-lostcarrier,-nocarrierReceivePacketPeakValueInfo:bytes/sec,happenedat:8:-8-Tran*itPacketPeakValueInfo:bytes/sec,happenedat::--.对于一个端口对应多个IP的需要查到这个网卡*先*第一台路由器,查看IPdisplayarpdynamicType:S-StaticD-DynamicIPAddressMACAddressVLANIDPortNameAgingType..2.-5e-aGigabitEthernet6/0/D..2.--beGigabitEthernet6/0/D..2.--eGigabitEthernet6/0/D..3.--bGigabitEthernet6/0/D..3.-5e-aGigabitEthernet6/0/D..3.--cGigabitEthernet6/0/D..3.f-e2b2-5a0aGigabitEthernet6/0/D..2.f-e2b2-5a0aGigabitEthernet6/0/D..2.f-d-acGigabitEthernet6/0/D..2.-7da9-9f8dGigabitEthernet6/0/D..2.-7da9-9f5cGigabitEthernet6/0/D..2.f-d-aGigabitEthernet6/0/D..2.-7da9-8ffGigabitEthernet6/0/D..2.-7da9-9f8dGigabitEthernet6/0/D..2.-7da9-9f3bGigabitEthernet6/0/D..2.f-d-abGigabitEthernet6/0/D..2.-5e-GigabitEthernet6/0/D..2.-5e-GigabitEthernet6/0/D..2.f-d-aeGigabitEthernet6/0/D..2.f-d-aGigabitEthernet6/0/D..2.f-d-acGigabitEthernet6/0/D..2.-5e-GigabitEthernet6/0/D..2.f-d-abGigabitEthernet6/0/D..2.f-d-aGigabitEthernet6/0/D..2.-7da9-9f5cGigabitEthernet6/0/D..2.-ba-GigabitEthernet6/0/D..2.-ba-GigabitEthernet6/0/D再*第二台路由器displaymac-addressvlanMACADDRVLANIDSTATEPORTINDEXAGINGTIME(s)-5e-aLearnedGigabitEthernet6/0/1AGING-ba-LearnedGigabitEthernet6/0/1AGINGf-e2b2-5bLearnedGigabitEthernet6/0/1AGINGf-d-aeLearnedGigabitEthernet6/0/1AGINGf-d-afLearnedGigabitEthernet6/0/1AGINGf-d-aLearnedGigabitEthernet6/0/1AGINGf-d-aLearnedGigabitEthernet6/0/1AGING-7da9-8ffLearnedGigabitEthernet6/0/1AGING-7da9-9f3bLearnedGigabitEthernet6/0/1AGING-7da9-9f5cLearnedGigabitEthernet6/0/1AGING-7da9-9f8dLearnedGigabitEthernet6/0/1AGINGf-d-acLearnedGigabitEthernet6/0/AGINGf-d-aLearnedGigabitEthernet6/0/AGINGf-d-abLearnedGigabitEthernet6/0/AGING-5e-LearnedGigabitEthernet6/0/AGING-ba-LearnedGigabitEthernet6/0/AGING---macaddress(es)foundinvlan---这样就可以查出..2.这个IP用的是GigabitEthernet6/0/这个端口二、怎么查看路由器*端口我估计你用的是普通的小型路由器,可能路由器上有防火墙功能,至为非熟知端口一般不会做*。很可能是你pc的上的防火墙上把端口关闭了,检查下防火墙的设置,启动财务软件,在运行里输入cmd,在console窗口里输入netstate-a检查端口至是否是listen状态。如果是listen状态证明本地端口已经打开可以进行tcp连接,如果还是无法连接。可能是你的isp提供的接入禁止使用端口至.联系你的isp。如果公司有硬件防火墙或者路由器上带有防火墙功能,如果提供web配置方式可以使用web页面进行配置,里面应该有相关选项(图文并茂比较简单直观)。如果web配置中无法提供对端口过滤功能的配置就采用本地配置方式。使用rs—串口线缆连接路由器的console口和pc机的串口。在pc机上开始->附件->通讯->超级终端,设置好通信参数,通常是波特率,8位数据位,1位停止位,无奇偶校验,无流控,不同厂商可能参数不一致,请查看产品手册。进入后由于可能有不同的*作*常用的有ios(思科设备)和vrp(华为的设备)两种*作*大同小异(但是通常的配置都是在第三层上的配置不涉及传输层的配置,打开tcp端口应该是集成有防火墙的路由器的配置)具体配置命令还要查看产品手册。我能提供的信息就这么多。三、如何查看路由器端口号用netstat-a-n命令查看。用state命令查看相关讯息:L*TEN:侦听来自远方的TCP端口的连接请求SYN-SENT:再发送连接请求后等待匹配的连接请求SYN-RECEIVED:再收到和发送一个连接请求后等待对方对连接请求的确认ESTABL*HED:代表一个打开的连接FIN-WAIT-1:等待远程TCP连接中断请求,或先前的连接中断请求的确认FIN-WAIT-2:从远程TCP等待连接中断请求CLOSE-WAIT:等待从本地用户发来的连接中断请求CLOSING:等待远程TCP对连接中断的确认LAST-ACK:等待原来的发向远程TCP的连接中断请求的确认TIME-WAIT:等待足够的时间以确保远程TCP接收到连接中断请求的确认CLOSED:没有任何连接状态