• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

xin hỏi về cách cấu hình nat dùng hsrp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • xin hỏi về cách cấu hình nat dùng hsrp

    Xin mọi người chỉ giúp làm sao để dùng nat pool thay thế cho số dòng lệnh quá nhiều như sau:

    redundancy
    !
    track 1 interface GigabitEthernet0/0 line-protocol
    !
    track 2 interface GigabitEthernet0/1 line-protocol
    !
    interface GigabitEthernet0/0
    description $ETH-LAN$
    ip address 192.168.0.2 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    duplex auto
    speed auto
    standby 1 ip 192.168.0.1
    standby 1 timers 1 3
    standby 1 priority 110
    standby 1 preempt delay minimum 1800
    standby 1 authentication mobionrt
    standby 1 track 2 decrement 10
    !
    !
    interface GigabitEthernet0/1
    description $ETH-WAN$
    ip address 203.191.200.2 255.255.255.0
    ip nat outside
    ip virtual-reassembly
    duplex auto
    speed auto
    standby 0 priority 105
    standby 2 ip 203.191.200.1
    standby 2 priority 105
    standby 2 preempt delay minimum 60 reload 60 sync 60
    standby 2 name HSRP_IN
    standby 2 track 1 decrement 20

    ip nat Stateful id 1
    redundancy HSRP_IN
    mapping-id 1
    as-queuing disable
    protocol udp
    ip nat translation udp-timeout 120
    ip nat translation dns-timeout 120
    ip nat inside source static 192.168.10.101 203.191.200.11 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.102 203.191.200.12 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.103 203.191.200.13 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.104 203.191.200.14 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.105 203.191.200.15 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.106 203.191.200.16 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.107 203.191.200.17 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.108 203.191.200.18 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.109 203.191.200.19 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.10.120 203.191.200.10 redundancy HSRP_IN mapping-id 1
    ...................
    ip nat inside source static 192.168.10.228 203.191.200.128 redundancy HSRP_IN mapping-id 1

    ip nat inside source static 192.168.20.129 203.191.200.129 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.130 203.191.200.130 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.131 203.191.200.131 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.132 203.191.200.132 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.133 203.191.200.133 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.134 203.191.200.134 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.135 203.191.200.135 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.136 203.191.200.136 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.137 203.191.200.137 redundancy HSRP_IN mapping-id 1
    ip nat inside source static 192.168.20.138 203.191.200.38 redundancy HSRP_IN mapping-id 1
    ...................
    ip nat inside source static 192.168.20.254 203.191.200.254 redundancy HSRP_IN mapping-id 1


    !
    access-list 1 permit 192.168.10.0 0.0.0.255
    access-list 2 permit 192.168.20.0 0.0.0.255


    Xin cảm ơn nhiều.
Working...
X