R1
interface e0
ip nat inside
interface e1
ip nat outside
access-list 1 permit 10.1.22.0 0.0.0.255
ip nat inside source list 1 interface e1 overload
#show ip nat translation
object network INSIDE
subnet 10.1.22.0 255.255.255.0
nat (inside,outside) dynamic interface
#show xlate
R2
interface e0/0
ip add 10.1.22.2 255.255.255.0
ip ospf 1 area 0
no shut
R4
interfrace e0/0
ip add 211.239.123.4 255.255.25.50
ip ospf 1 area 0
no shutdown
ASA
interface g0/0
nameif inside
security-level 100
ip add 10.1.22.254 255.255.255.0 #show interface ip brief
no shut #show nameif
interface g0/1
nameif outside
security-level 99
ip add 211.239.123.254 255.255.255.0
no shut
router ospf 1
network 10.1.22.0 255.255.255.0 area 0 #show ospf neighbor
network 211.239.123.0 255.255.255.0 area 0 #show route
policy-map global_policy
class inspection_default
inspect icmp
ASA#show conn
neighbor 단절
ASA#show ospf neighbor로 보면, R4와 Neighbor가 단절됨
R2#ping 211.239.123.4 ........
>>> R4이 10.1.22.0/24를 모르기 때문 입니다.
>>> ASA에서 211.239.123.254로 PAT하시면, 됩니다.
policy-map global_policy
class inspection_default
inspect icmp
-> sh run에서 복사하면된다.
config)#hostname ASA1
다음과 같이 ASA2에서 ASA1로 변경된 것을 확인할 수 있다.
ASA2에서 conmmand를 작성하려고 하면 다음과 같이 작성하지 말라는 command가 나온다.
config)#prompt hostname priority state
ASA2#failover active
-> active를 가져오겠다
ASA2#no failover acitive
-> active를 가져오지 않겠다
설정이 동기화되는 것을 확인한다.
#show access-list
-> SW5 (e1/0, e0/3, e0/1)에 vlan 10 설정
-> SW6 (e1/0, e0/3, e0/1)에 vlan 20 설정
-> SW1 (e1/0) vlan 10,
-> SW1 (E0/1) VLAN 10
-> SW1 (E0/2) VLAN 100
-> SW1 (E0/3) VLAN 20
-> SW2 (E0/1) VLAN 20
-> SW2 (E0/2) VLAN 100
-> SW2 (E0/3) VLAN 10
-> vlan 10은 SW5의 E0/3이 Blocking
-> vlan 20은 SW6의 E0/3이 Blocking
SW1
SW5
SW2
SW6
SW1,SW2에 VLAN10,VLAN 20에 대한 HSRP를 구성합니다.
SW1은 VLAN 10에 대해, Active,
SW2은 VLAN 20에 대해, Active로 설정합니다.
SW1#show standby brief로 확인합니다.
SW1,SW2,ASA1에 OSPF를 구성합니다.
SW3,SW4,ASA1에 OSPF를 구성합니다.
ASA#show ospf neighbor >> 4개의 neighbor 확인
ASA#show route
SW3#show ip ospf neighbor로 확인합니다.