TCP负载均衡地址转换(锐捷设备)
生活随笔
收集整理的這篇文章主要介紹了
TCP负载均衡地址转换(锐捷设备)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
【實驗名稱】 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
?????? TCP負載均衡地址轉換
?
【實驗目的】?????? 掌握多臺服務器復用同一IP地址時的TCP負載均衡地址轉換技術。
?
【背景描述】?????? 你是某網站的高級網絡管理員,你的網站為了更好的給外界提供下載服務,用兩臺服務器共同承擔外界對你網站的FTP下載。但是網站的FTP下載地址已經固定唯一,請你能實現兩臺服務器對同一服務的負載分擔,且不能讓外界探測到你服務器的數量。
?
【實現功能】?????? 多臺主機共享一個虛擬IP地址,實現服務負載分擔。
?
【實驗拓撲】【實驗設備】 R<?xml:namespace prefix = st2 ns = "Tencent" />2624(2臺)
?
【實驗步驟】 第一步: 基本配置 Red-Giant>enable??????????????????????????????????? Red-Giant#configure terminal??????????????????????????????????????????????????????????????????????????????????? Red-Giant(config)#hostname R1???????????????????????????? R1(config)#interface serial 0???????????????????????????? R1(config-if)#ip address 200.198.12.1 255.255.255.0??????????????????????????????????????????????? R1(config-if)#clock rate 64000????????????????????????????? R1(config-if)#no sh?????????????????? R1(config-if)#exi???????????????? R1(config)#interface fastethernet 0?????????????????????????????????? R1(config-if)#ip address <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />10.1.1.1 255.255.255.0?????????????????????????????????????????????? R1(config-if)#no sh?????????????????? R1(config-if)#end???????????????? Red-Giant#configure terminal Red-Giant(config)#hostname R2 R2(config)#interface serial 0 R2(config-if)#ip address 200.198.12.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exi R2(config)#interface fastethernet 0 R2(config-if)#ip address 100.100.100.1 255.255.255.0 R2(config-if)#end 驗證測試:R2#ping 200.198.12.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echoes to 200.198.12.1 timeout is 2 seconds: !!!!!?
第二步:配置TCP負載均衡地址轉換 R1(config)# ip nat pool realhosts 10.1.1.2 10.1.1.3 netmask 255.255.255.0 type rotary ?!定義真實地址負載分擔???? ?????????????????????????????????????????????????????????????????????????????????????????? R1(config)#access-list 1 permit 10.1.1.100????????????????????????????????????????? R1(config)#ip nat inside de???????????????????????????????????????????????????? ??????????????????? R1(config)#ip nat inside destination list 1 pool realhosts !定義一個虛擬的IP地址表現為代表幾個主機的唯一地址???????????????????????????????????????????????????????? R1(config)#interface serial 0???????????????????????????? R1(config-if)#ip nat outside??????????????????????????? R1(config-if)#exi???????????????? R1(config)#interface fastethernet 0?????????????????????????????????? R1(config-if)#ip nat inside?
驗證測試: R1#sh ip nat translations Pro Inside global????? Inside local?????? Outside local????? Outside global Tcp 10.1.1.100:21???? 10.1.1.2:21????? 100.100.100.100:1178? 100.100.100.100:1178 Tcp 10.1.1.100:21 ????10.1.1.3:21?????? 100.100.100.50:1024? 100.100.100.50:1024?
【注意事項】 l???????? 不要把inside和outside應用的接口弄錯 l???????? 要建立一個虛擬地址代表多臺服務器總結
以上是生活随笔為你收集整理的TCP负载均衡地址转换(锐捷设备)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android教程之实现动作感应技术
- 下一篇: c#资源管理器【转】