ellis
        
文章: 13
 |
于 2003-09-30 15:30 
iczfirz wrote: LP wrote: sounds quite hard to do that bor... never see this case before , i just know two leased line to do load balancing only~~ good assignment...let me try to do some rearch sin~~ any findings in cisco homepage? no la... 搵唔到有 nat overload + load dist. 家陣我得五粒可用ip.. 所以唯有自己nat overload再load dist. 今日買左兩件2514.. 新既config係咁... 未加入hsrp. 外係202.123.165.24/248 內係private ip 1.0.0.x.. 哥仔你地點睇.. 點先可以搞埋內部1.0.0.x可以自己有自己load dist? interface Ethernet0 ip address 202.123.165.26 255.255.255.128 ip nat outside ! interface Ethernet1 ip address 1.0.0.1 255.255.255.0 ip nat inside ! ip nat pool net-27 202.123.165.27 202.123.165.27 netmask 255.255.255.128 ip nat pool www1 1.0.0.130 1.0.0.131 prefix-length 28 type rotary ip nat inside source list 1 pool net-27 overload ip nat inside destination list 2 pool www1 no ip classless ip route 0.0.0.0 0.0.0.0 202.123.165.25 ip route 202.123.165.27 255.255.255.255 Ethernet1 no ip http server ip pim bidir-enable ! access-list 1 permit 1.0.0.0 0.0.0.255 access-list 2 permit 202.123.165.27 seems impossible: 1. When internal hosts communicate with your real host, it will not pass via the router or default gateway. It will contact real host directly. 2. According to Cisco docs, TCP load dist is one way communication. "nat inside' will repsonse to 'nat outside', your internal host cannot perform anymore NAT to your real hosts. Two possible way: 1. assign public IP for your real host, assign one virual public IP for public load sharing to your real host. assign private IP for your real host for internal load sharing. map private IP to real host ( public IP )Some modification in router is need to do load sharing. 2. If you have two 2514, let say R1 and R2, make you real hosts a seperate segment between R1 and R2, say 20.20.20.x. public load sharing will do the same as you configure, also configure a internal load sharing in R1. Then it will looks like the as follow: R1--Real Host segement -- R2 R1 for internal segment, R2 for public segment. But you will lost HSRP for this option, or you need get one more 2514 or others. Two options above need to test, but conceptually, option 2 will work. But there is a most easlier way to do internal load distribution. If you have internal DNS, why not just enable the load balancing fuction for your internal real hosts, then DNS will serve as round robin basis for real hosts to internal hosts This is the most fast way to configure and for sure should work. wai.
|