雙線網路發行伺服器以及用戶端上網

來源:互聯網
上載者:User

標籤:雙線上網


 650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/37/F6/wKioL1OxWLmjK7g8AAKrIOzm6e0000.jpg" title="image001.png" alt="wKioL1OxWLmjK7g8AAKrIOzm6e0000.jpg" />

實驗要求

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

!

!

 


本文出自 “飛冰” 部落格,請務必保留此出處http://wangjunkang.blog.51cto.com/8809812/1432686

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.