当前位置: 首页 > news >正文

昆明云纺片区网站建设/宁波seo关键词排名

昆明云纺片区网站建设,宁波seo关键词排名,网站设计工具更好的做网站,2019网站建设有限公司你是某公司的网络管理员,公司办公网需要接入互联网,公司只向 ISP 申请了一条专线,该专线分配了一个公司 IP 地址,配置实现全公司的主机都能访问外网。 技术原理 NAT 将网络划分为内部网络和外部网络两部分,局域网主机…

 

你是某公司的网络管理员,公司办公网需要接入互联网,公司只向 ISP 申请了一条专线,该专线分配了一个公司 IP 地址,配置实现全公司的主机都能访问外网。

技术原理

NAT 将网络划分为内部网络和外部网络两部分,局域网主机利用 NAT 访问网络时,是将局域网内部的本地地址转换为全局地址(互联网合法的 IP 地址)后转发数据包;
NAT 分为两种类型:NAT(网络地址转换)和 NAPT(网络端口地址转换 IP 地址对应一个全局地址)。
NAPT:使用不同的端口来映射多个内网 IP 地址到一个指定的外网 IP 地址,多对一。
NAPT 采用端口多路复用方式。内部网络的所有主机均可共享一个合法外部 IP 地址实现对 Internet 的访问,从而可以最大限度地节约 IP 地址资源。同时,又可隐藏网络内部的所有主机,有效避免来自 Internet 的攻击。因此,目前网络中应用最多的就是端口多路复用方式。

ISP(Internet Service Provider),互联网服务提供商,即向广大用户综合提供互联网接入业务、信息业务和增值业务的电信运营商。ISP是经国家主管部门批准的正式运营企业,享受国家法律保护。

实验步骤

新建 Packet Tracer 拓扑图

(1)R1 为公司出口路由器,其与 ISP 路由器之间通过 V.35 电缆串口连接,DCE 端连接在 R1 上,配置其时钟频率 64000;
(2)配置 PC 机、服务器及路由器接口 IP 地址;
(3)在各路由器上配置静态路由协议,让 PC 间能相互 Ping 通;
(4)在 R1 上配置 NAPT。
(5)在 R1 上定义内外网络接口。
(6)验证主机之间的互通性。

实验设备

PC 2 台;Server-PT 1 台;Switch_2950-24 1 台 Router-PT 2 台;直通线;交叉线;DCE串口线PC1192.168.1.2
255.255.255.0
192.168.1.1PC2192.168.1.3
255.255.255.0
192.168.1.1Server200.1.2.2
255.255.255.0
200.1.2.1R1en
conf t
host R1
int fa 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
int s 2/0
ip address 200.1.1.1 255.255.255.0
no shutdown
clock rate 64000R2en
conf t
host R2
int s 2/0
ip address 200.1.1.2 255.255.255.0
no shutdown
int fa 0/0
ip address 200.1.2.1 255.255.255.0
no shutdownR1exit
ip route 200.1.2.0 255.255.255.0 200.1.1.2R2exit
ip route 192.168.1.0 255.255.255.0 200.1.1.1
end
show ip routePC1CMD
ping 200.1.2.2 (success)Web 浏览器
http://200.1.2.2 (success)R1int fa 0/0
ip nat inside
int s 2/0
ip nat outside
exit
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat pool jaking 200.1.1.3 200.1.1.3 netmask 255.255.255.0 #设置名称为jaking的地址池,起始和终止IP都是200.1.1.3
ip nat inside source list 1 pool jaking overload (无 overload 表示多对多,有 overload 表示多对一)
end
show ip nat translations(无结果)PC1Web 浏览器
http://200.1.2.2 (success)R1show ip nat translations(有 1 个结果)PC2Web 浏览器
http://200.1.2.2 (success)R1show ip nat translations(有 2 个结果)

实战演练

R1Continue with configuration dialog? [yes/no]: nPress RETURN to get started!Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R1
R1(config)#int fa 0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#int s 2/0
R1(config-if)#ip add 200.1.1.1 255.255.255.0
R1(config-if)#no shut%LINK-5-CHANGED: Interface Serial2/0, changed state to down
R1(config-if)#clock rate 64000
R1(config-if)#R2 Continue with configuration dialog? [yes/no]: nPress RETURN to get started!Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R2
R2(config)#int s 2/0
R2(config-if)#ip add 200.1.1.2 255.255.255.0
R2(config-if)#no shut%LINK-5-CHANGED: Interface Serial2/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upR2(config-if)#int fa 0/0
R2(config-if)#ip add 200.1.2.1 255.255.255.0
R2(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR2(config-if)#R1R1(config-if)#exit
R1(config)#ip route 200.1.2.0 255.255.255.0 200.1.1.2R2R2(config-if)#exit
R2(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1
R2(config)#end
R2#
%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setS    192.168.1.0/24 [1/0] via 200.1.1.1
C    200.1.1.0/24 is directly connected, Serial2/0
C    200.1.2.0/24 is directly connected, FastEthernet0/0PC1CMD
ping 200.1.2.2 (success)PC>ipconfigIP Address......................: 192.168.1.2
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.1PC>ping 200.1.2.2Pinging 200.1.2.2 with 32 bytes of data:Request timed out.
Reply from 200.1.2.2: bytes=32 time=24ms TTL=126
Reply from 200.1.2.2: bytes=32 time=25ms TTL=126
Reply from 200.1.2.2: bytes=32 time=20ms TTL=126Ping statistics for 200.1.2.2:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:Minimum = 20ms, Maximum = 25ms, Average = 23msPC>ping 200.1.2.2Pinging 200.1.2.2 with 32 bytes of data:Reply from 200.1.2.2: bytes=32 time=25ms TTL=126
Reply from 200.1.2.2: bytes=32 time=20ms TTL=126
Reply from 200.1.2.2: bytes=32 time=23ms TTL=126
Reply from 200.1.2.2: bytes=32 time=25ms TTL=126Ping statistics for 200.1.2.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 20ms, Maximum = 25ms, Average = 23ms

Web 浏览器
http://200.1.2.2 (success)

PC2CMD
ping 200.1.2.2 (success)PC>ipconfigIP Address......................: 192.168.1.3
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.1PC>ping 200.1.2.2Pinging 200.1.2.2 with 32 bytes of data:Reply from 200.1.2.2: bytes=32 time=31ms TTL=126
Reply from 200.1.2.2: bytes=32 time=17ms TTL=126
Reply from 200.1.2.2: bytes=32 time=19ms TTL=126
Reply from 200.1.2.2: bytes=32 time=23ms TTL=126Ping statistics for 200.1.2.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 17ms, Maximum = 31ms, Average = 22ms

Web 浏览器
http://200.1.2.2 (success)

R1R1(config)#int fa 0/0
R1(config-if)#ip nat inside
R1(config-if)#int s 2/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255
R1(config)#ip nat pool jaking 200.1.1.3 200.1.1.3 netmask 255.255.255.0
R1(config)#ip nat inside source list 1 pool jaking overload
R1(config)#end
R1#
%SYS-5-CONFIG_I: Configured from console by consoleR1#show ip nat translations
R1#PC1Web 浏览器
http://200.1.2.2 (success)R1
show ip nat translations(有 1 个结果)R1#show ip nat translations
Pro  Inside global     Inside local       Outside local      Outside global
tcp 200.1.1.3:1026     192.168.1.2:1026   200.1.2.2:80       200.1.2.2:80PC2Web 浏览器
http://200.1.2.2 (success)R1
show ip nat translations(有 2 个结果)R1#show ip nat translations
Pro  Inside global     Inside local       Outside local      Outside global
tcp 200.1.1.3:1026     192.168.1.2:1026   200.1.2.2:80       200.1.2.2:80
tcp 200.1.1.3:1024     192.168.1.3:1026   200.1.2.2:80       200.1.2.2:80

总结

至此,用思科模拟器进行网络端口地址转换 NAPT 配置完毕。

http://www.jmfq.cn/news/5138569.html

相关文章:

  • 做京东网站采购的工作内容/华为手机业务最新消息
  • 网站运营推广难做吗/推广活动策划方案范文
  • 帮人家做网站能赚多少钱/seo推广软件排行榜前十名
  • 学生做的网站成品/信息流广告代运营
  • 可以做请柬的网站/百度风云榜各年度小说排行榜
  • 供应链公司是什么行业/seo优化公司哪家好
  • 摄影 网站 模板/推广方案框架
  • python 可以做网站吗/平台搭建
  • 网站设计培训/seo工作是什么意思
  • 阿里云网站主体变更怎么做/新闻发稿平台有哪些?
  • 厦门网站建设报/seo属于技术还是营销
  • 网站开发就业前景分析/百度软件中心下载
  • 模板网站制作时间/2024新闻热点摘抄
  • 代理分佣后台网站开发/潍坊关键词优化排名
  • 免费自助音乐网站申请/网页制作平台有哪些
  • 网站怎么做sem优化/cpc广告点击日结联盟
  • 焦作网站制作-焦作网站建设-焦作网络公司-维科网络/最新国际新闻大事件
  • 中文网站建设英文网站建设/手机建站教程
  • 长春电商网站建设哪家好/杭州网站seo
  • 商务网站建设工程师是/优化流程
  • 淮安做网站app/站长工具排名分析
  • 书签制作 小学生的手工书签/seo如何优化
  • 做歌厅广告在哪个网站做好/seo搜索推广费用多少
  • 网站建设公司前景/重庆百度seo公司
  • 宁波网站排名方法/自媒体怎么赚钱
  • 沈阳的网站建设/长春seo关键词排名
  • 济南长兴建设集团有限公司网站/天津百度关键词推广公司
  • 天津网站开发贴吧/百度在线使用
  • 球赛投注网站开发/响应式网站模板的优势
  • 帝国做视频网站/外贸企业网站推广