ACE

From Frotmail Projects
Jump to navigation Jump to search

Overzicht

           10.0.0.0/24           10.0.1.0/24
 [LAPTOP]---------------[ROUTER]-------------[ SWITCH ]  
       .5               .1    .1              /      \
                                        .10  /        \ .20
                                       [SERVER]      [ACE]
Client VLAN 200
Server VLAN 210
Server IP   10.0.1.10
ACE IP      10.0.1.20
Service VIP 10.0.1.11
NAT pool    10.0.1.21 - 10.0.1.22 (pat)

Config op ACE

Admin Context

interface gigabitEthernet 1/1
  description servers
  switchport trunk allowed vlan 210
  no shutdown
context test
  description test
  allocate-interface vlan 243

test Context

access-list ALL line 8 extended permit ip any any
access-list ALL line 16 extended permit icmp any any
probe tcp probe_http
  description HTTP test
  port 80
rserver host server
  description server
  ip address 10.0.1.10
  inservice
serverfarm host FARM-server
  description test
  probe probe_http
  rserver server
    inservice
class-map match-any VIP-test
  100 match virtual-address 10.0.1.11 any
policy-map type loadbalance first-match LOAD-test
  class class-default
    serverfarm FARM-server
policy-map multi-match int210
  class VIP-test
    loadbalance vip inservice
    loadbalance policy LOAD-test
    nat dynamic 1 vlan 210
interface vlan 210
  description test
  ip address 10.0.1.20 255.255.255.0
  access-group input ALL
  nat-pool 1 10.0.1.21 10.0.1.22 netmask 255.255.255.255 pat
  service-policy input int210
  no shutdown
ip route 0.0.0.0 0.0.0.0 10.0.1.1