当前位置:首页 > 知识小科普 > 正文内容

双线网络发布服务器以及客户端上网介绍

wenjunwen6个月前 (10-28)知识小科普146

  实验要求:

  1、公司想将自己的服务器双线发布出去。

  2、员工可以访问电信和网通的WEB服务器。

  配置思路:

  1、事先指明公司和电信网通路由器的NAT的内部和外部端口。配置NAT路由器的默认路由。

  2、实现公网网络互通。

  3、公司配置:

  配置访问控制列表

  access-list 100 permit ip any 电信非直连网段 (允许电信网段)

  access-list100 deny ip any 电信非直连网段 (拒绝电信网段)

  access-list 100 permit ip any any (允许所有网段通信)

  配置PAT ip nat inside source list 100 电信wan口 overload

  ipnat inside source list 101 网通wan口 overload

  发布网站 ip nat inside source static tcp 服务器私网地址 80 电信公网地址 80

  ip nat inside source static tcp 服务器私网地址 80 网通公网地址 80

  4.电信和网通配置

  配置访问列表 access-list 1 permit公司内网网段

  配置PAT ip nat inside sourcelist 1 interface FastEthernet0/0 overload

  发布网站 ip nat inside source statictcp 192.168.5.3 80 192.168.4.100 80

  实验配置如下:

  router0:(公司路由器)

  interfaceFastEthernet0/0

  ip address 192.168.3.1 255.255.255.0

  ip nat outside

  duplex auto

  speed auto

  !

  interfaceFastEthernet0/1

  ip address 192.168.6.1 255.255.255.0

  ip nat outside

  duplex auto

  speed auto

  !

  interfaceFastEthernet1/0

  ip address 192.168.1.1 255.255.255.0

  ip nat inside

  duplex auto

  speed auto

  !

  interfaceFastEthernet1/1

  ip address 192.168.2.1 255.255.255.0

  ip nat inside

  duplex auto

  speed auto

  !

  interfaceVlan1

  no ip address

  shutdown

  !

  ipnat inside source list 100 interface FastEthernet0/0 overload

  ipnat inside source list 101 interface FastEthernet0/1 overload

  ipnat inside source static tcp 192.168.2.3 80 192.168.3.101 80

  ipnat inside source static tcp 192.168.2.2 80 192.168.3.100 80

  ipnat inside source static tcp 192.168.2.3 80 192.168.6.101 80

  ipnat inside source static tcp 192.168.2.2 80 192.168.6.100 80

  ipclassless

  iproute 192.168.4.0 255.255.255.0 FastEthernet0/0

  iproute 192.168.7.0 255.255.255.0 FastEthernet0/1

  !

  !

  access-list100 permit ip any 192.168.4.0 0.0.0.255

  access-list101 deny ip any 192.168.4.0 0.0.0.255

  access-list101 permit ip any any

  router1:(公网路由器)

  interfaceFastEthernet0/0

  ip address 192.168.3.2 255.255.255.0

  duplex auto

  speed auto

  !

  interfaceFastEthernet0/1

  ip address 192.168.4.1 255.255.255.0

  duplex auto

  speed auto

  router2:(公网路由器)

  interface FastEthernet0/0

  ip address192.168.6.2 255.255.255.0

  duplex auto

  speed auto

  !

  interface FastEthernet0/1

  ip address192.168.7.1 255.255.255.0

  duplex auto

  speed auto

  router3:(电信路由器)

  interface FastEthernet0/0

  ipaddress 192.168.4.2 255.255.255.0

  ip natoutside

  duplexauto

  speedauto

  !

  interface FastEthernet0/1

  ipaddress 192.168.5.1 255.255.255.0

  ip natinside

  duplexauto

  speedauto

  !

  interface Vlan1

  no ipaddress

  shutdown

  !

  ip nat inside source list 1 interfaceFastEthernet0/0 overload

  ip nat inside source static tcp 192.168.5.380 192.168.4.100 80

  ip classless

  ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

  !

  !

  access-list 1 permit 192.168.5.0 0.0.0.255

  !

  !

  router4:(网通路由器)

  interface FastEthernet0/0

  ipaddress 192.168.7.2 255.255.255.0

  ip natoutside

  duplexauto

  speedauto

  !

  interface FastEthernet0/1

  ipaddress 192.168.8.1 255.255.255.0

  ip natinside

  duplexauto

  speedauto

  !

  interface Vlan1

  no ipaddress

  shutdown

  !

  ip nat inside source list 1 interfaceFastEthernet0/0 overload

  ip nat inside source static tcp 192.168.8.380 192.168.7.100 80

  ip classless

  ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

  !

  !

  access-list 1 permit 192.168.8.0 0.0.0.255

  !

  !

标签: [db:标签]

相关文章

国产手机是什么?国产手机是什么?国产手机是什么?

国产手机是指中国大陆自主研发生产的手机。代工的世界品牌手机不能算国产手机。国产手机包括以下三大类:中国自主品牌普通大众手机,如OPPO、联想、步步高、亿通、金立;中国自主品牌主营智能手机,如信得乐、T...

200兆宽带有必要wifi6吗?

200兆宽带有必要wifi6吗?

  【200兆宽带有必要wifi6吗】这几年网络硬件的更新一年胜似一年,不管是移动数据网络的迭代还是家用宽带的升级,林林总总的新硬件不断推出供消费者挑选。今年的家用wifi市场最让引人注目的当属wi...

100兆宽带有必要wifi6吗?

100兆宽带有必要wifi6吗?

  【100兆宽带有必要wifi6吗】这几年网络硬件的更新一年胜似一年,不管是移动数据网络的迭代还是家用宽带的升级,林林总总的新硬件不断推出供消费者挑选。今年的家用wifi市场最让引人注目的当属wi...

无线路由器放在床附近对人有辐射么?

无线路由器放在床附近对人有辐射么?

  无线路由器放床附近是有辐射的,但是对身体健康并不会有影响,建议在选购无线路由器的时候选择正规大品牌的产品。无线路由器和手机都符合国家标准的不高于0.4瓦/平方米的要求。无线路由器半米外的辐射值基...

无线路由器设置 192.1681.1 打不开 求解

无线路由器设置 192.1681.1 打不开 求解

  无线路由器地址无法打开主要有三种原因,一是与路由器内部连接的网路中断,二是路由器的设置地址被修改,三是路由器本身发生故障。具体操作步骤如下:  1、当与路由器内部连接的网路中断(可能是网线断裂或...

wifi是什么

wifi是什么

  WiFi大家都不会陌生,简单来说,就是无线上网。那么wifi是什么?它是一种可以将个人电脑、手持设备(如PDA、手机)等终端以无线方式互相连接的技术。接下来给大家详细的科普下:wifi是什么? ...