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

时间:2021-05-18

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

  !

  !

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章