欢迎来到天天文库
浏览记录
ID:18539150
大小:51.00 KB
页数:11页
时间:2018-09-19
《如何利用静态路由实现网络访问控制》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、我们公司的局域网是这样的一个TP-LINK(IP:192.168.1.1)接外线然后一个无线路由接TP-LINK局域网段是由无线路由分配为192.168.0.X现在装了一个服务器为了远程访问是接的TP-LINK,IP为192.168.1.28问题是如何访问网段为192.168.0.X的电脑TP-LINK设置:netgear设置:可还是ping不通192.168.1.28但可以ping通192.168.1.101TP-LINK(IP:192.168.1.1)上添加静态路由,凡是访问0段的请求,都送到无线路由的1段IP
2、上。最简单的方法:首先这两个网段接到同一个HUB上然后打开本地网络属性,设置网卡IP地址,填写方法为只填写IP地址子网掩码DNS服务器地址网关不填填写完后在IP地址高级设置中,在添加两外一个网段的IP地址和子网掩码OK,确定退出假设A网段IP为198.162.82.5子网掩码:255.255.255.0网关198.162.82.1且A的IP地址为网卡默认IP地址B网段IP为192.21.12.5子网掩码:255.255.255.0网关192.21.12.1进入dos窗口,使用route命令route-padd0.0
3、.0.0mask0.0.0.0198.162.82.1route-padd192.0.0.0mask255.0.0.0192.21.12.1好了,下面可以PING一下各自的网关ping198.162.82.1ping192.21.12.1如果通了,你就可以在这两个网段互访了如果不通,看设置是否正确在DOS窗口输入routeprint看是否有两个网段的路由表iproute后面加的是目的网段,目的网段掩码,下一跳!静态路由就是手工在路由器中添加到某个目标网段的路径信息。iproute192.168.12.0255.25
4、5.255.0192.168.11.1定义一条到某个网段(192.168.12.0)的路径,其实就是定义到这个网段的下一跳路由器接口(192.168.11.1)。beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametotheca
5、blecoreprovidesbindingintoacircle,harnesstiespacingisgenerally100mm;branchofficesshallbebindingonbothends,eachcore静态路由配置2009-03-0616:18Router1改名Router>Router>enRouter#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnamerouter1配置端口f0
6、/0router1(config)#intf0/0router1(config-if)#ipaddress172.16.1.1255.255.255.0router1(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceFastEthernet0/0,changedstatetoup配置端口s0router1(config-if)#ints0router1(config-if)#ipaddress172.16.2.1255.255.255.0router1(config-if)
7、#noshutdown%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoup%LINK-3-UPDOWN:InterfaceSerial0,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetodown配置时钟频率router1(config-if)#clockrate64000router1(config-if)#noshutdownrouter1(config
8、-if)#exit设置静态路由router1(config)#iproute172.16.3.0255.255.255.0beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensure
此文档下载收益归作者所有