Complete IKEv2 site-to-site IPsec VPN بنائیں: IKEv2 policy اور proposal، IPsec transform set، crypto map، tunnel group، اور NAT exemption۔
Complete IKEv2 site-to-site IPsec VPN banao: IKEv2 policy aur proposal, IPsec transform set, crypto map, tunnel group, aur NAT exemption.
Build a complete IKEv2 site-to-site IPsec VPN: IKEv2 policy and proposal, IPsec transform set, crypto map, tunnel group, and NAT exemption.
Site-to-site VPN دو company buildings کے درمیان public گلی (internet) کے نیچے کھودی ہوئی private armored tunnel ہے۔ IKEv2 وہ handshake ہے جس میں دونوں guards tunnel کے locks پر agree کرتے ہیں، کوئی truck گزرنے سے پہلے۔
Site-to-site VPN do company buildings ke darmiyan public gali (internet) ke neeche khodi hui private armored tunnel hai. IKEv2 woh handshake hai jisme dono guards tunnel ke locks par agree karte hain, koi truck guzarne se pehle.
A site-to-site VPN is a private armored tunnel dug between two company buildings across the public street (the internet). IKEv2 is the handshake where both guards agree on the tunnel's locks before any truck drives through.

EVE-NG میں دو ASAv nodes: ASA-A (outside 203.0.113.2، inside 10.1.1.0/24) اور ASA-B (outside 198.51.100.2، inside 10.2.2.0/24)، outside پر directly connected۔ Pre-shared key: OurSecret123۔ نیچے والے steps ASA-A کے لیے ہیں؛ ASA-B پر mirror کریں۔
EVE-NG mein do ASAv nodes: ASA-A (outside 203.0.113.2, inside 10.1.1.0/24) aur ASA-B (outside 198.51.100.2, inside 10.2.2.0/24), outside par directly connected. Pre-shared key: OurSecret123. Neeche wale steps ASA-A ke liye hain; ASA-B par mirror karo.
Two ASAv nodes in EVE-NG: ASA-A (outside 203.0.113.2, inside 10.1.1.0/24) and ASA-B (outside 198.51.100.2, inside 10.2.2.0/24), directly connected on outside. Pre-shared key: OurSecret123. Steps below are for ASA-A; mirror them on ASA-B.
IKEv2 policy define کریں (Phase 1): AES-256 encryption، SHA-256 integrity، Diffie-Hellman group 14، 24-hour lifetime۔
IKEv2 policy define karo (Phase 1): AES-256 encryption, SHA-256 integrity, Diffie-Hellman group 14, 24-hour lifetime.
Define the IKEv2 policy (Phase 1): AES-256 encryption, SHA-256 integrity, Diffie-Hellman group 14, 24-hour lifetime.
crypto ikev2 policy 10encryption aes-256integrity sha256group 14prf sha256lifetime seconds 86400exitIPsec proposal define کریں (Phase 2): AES-256 اور SHA-256 کے ساتھ ESP، 8-hour SA lifetime۔
IPsec proposal define karo (Phase 2): AES-256 aur SHA-256 ke sath ESP, 8-hour SA lifetime.
Define the IPsec proposal (Phase 2): ESP with AES-256 and SHA-256, 8-hour SA lifetime.
crypto ipsec ikev2 ipsec-proposal AES256-SHAprotocol esp encryption aes-256protocol esp integrity sha-256exitcrypto ipsec security-association lifetime seconds 28800Crypto ACL سے interesting traffic define کریں: دونوں sites کے درمیان LAN-to-LAN traffic encrypt ہوگا۔
Crypto ACL se interesting traffic define karo: dono sites ke darmiyan LAN-to-LAN traffic encrypt hoga.
Define interesting traffic with a crypto ACL: LAN-to-LAN traffic between the two sites gets encrypted.
access-list VPN_INTERESTING extended permit ip 10.1.1.0 255.255.255.0 10.2.2.0 255.255.255.0Crypto map بنائیں: interesting-traffic ACL bind کریں، remote peer set کریں، IPsec proposal attach کریں، اور map کو outside interface پر apply کریں۔
Crypto map banao: interesting-traffic ACL bind karo, remote peer set karo, IPsec proposal attach karo, aur map ko outside interface par apply karo.
Build the crypto map: bind the interesting-traffic ACL, set the remote peer, attach the IPsec proposal, and apply the map to the outside interface.
crypto map OUTSIDE_MAP 10 match address VPN_INTERESTINGcrypto map OUTSIDE_MAP 10 set peer 198.51.100.2crypto map OUTSIDE_MAP 10 set ikev2 ipsec-proposal AES256-SHAcrypto map OUTSIDE_MAP interface outsidePeer کے لیے tunnel group بنائیں دونوں طرف pre-shared key کے ساتھ، اور outside interface پر IKEv2 enable کریں۔
Peer ke liye tunnel group banao dono taraf pre-shared key ke sath, aur outside interface par IKEv2 enable karo.
Create the tunnel group for the peer with the pre-shared key on both sides, and enable IKEv2 on the outside interface.
tunnel-group 198.51.100.2 type ipsec-l2ltunnel-group 198.51.100.2 ipsec-attributesikev2 remote-authentication pre-shared-key OurSecret123ikev2 local-authentication pre-shared-key OurSecret123exitcrypto ikev2 enable outsideTwice-NAT identity exemption add کریں تاکہ VPN traffic NAT نہ ہو۔ ASA-B پر سارے steps addresses swap کرکے mirror کریں۔
Twice-NAT identity exemption add karo taake VPN traffic NAT na ho. ASA-B par sare steps addresses swap karke mirror karo.
Add the twice-NAT identity exemption so VPN traffic is not NATed. Mirror all steps on ASA-B with addresses swapped.
object network LOCAL_LANsubnet 10.1.1.0 255.255.255.0exitobject network REMOTE_LANsubnet 10.2.2.0 255.255.255.0exitnat (inside,outside) source static LOCAL_LAN LOCAL_LAN destination static REMOTE_LAN REMOTE_LAN no-proxy-arp🖱️ ASDM: Wizards > VPN Wizards > Site-to-Site VPN Wizard — guided wizard سے same config۔ASDM: Wizards > VPN Wizards > Site-to-Site VPN Wizard — guided wizard se same config.ASDM: Wizards > VPN Wizards > Site-to-Site VPN Wizard — the same config through a guided wizard.
دونوں ASAs پر configuration save کریں۔
Dono ASAs par configuration save karo.
Save the configuration on both ASAs.
write memory`show crypto ikev2 sa` میں active SA نظر آئے، `show crypto ipsec sa` میں encrypted/decrypted packet counters بڑھتے ہوں، اور 10.1.1.x سے 10.2.2.x تک ping کامیاب ہو۔
`show crypto ikev2 sa` mein active SA nazar aaye, `show crypto ipsec sa` mein encrypted/decrypted packet counters barhte hon, aur 10.1.1.x se 10.2.2.x tak ping kamyab ho.
`show crypto ikev2 sa` shows an active SA, `show crypto ipsec sa` shows encrypted/decrypted packet counters increasing, and a ping from 10.1.1.x to 10.2.2.x succeeds.
show crypto ikev2 sashow crypto ipsec sashow crypto map