Hello,
I understand that DH is used to generate a symmetric key over a unsecure channel, it is needed to send algorithm over a unsecure channel.
Below is my question:
R1------Internet------R2
For eg R1 & R2 negotiate on pre-defined key 10.
Then R1 generate random secret number 5(this will not be disclosed and it generated based on group number for eg group2, group5)
Now addition of pre-define key 10 and random secret no 5 = 15-->this key is shared to R2
R2 does same thing, addition of pre-define 10 and here random secret 15=25-->shares with R1.
Now when R1 will say whetever no i have received from R2, i will add my secret number to that.
i.e 25+5=30-->From this number they generate encryption & hashing algorithm
R2 does same process and gets same number i.e 30.
Question here is in my vpn configuration i haven't defined any pre-share no. How does R1 & R2 negotites on number 10 ?
crypto isakmp policy 1
authentication pre-share---->only used for authentication
hash md5
encryption 3des
group 2
crypto isakmp key cisco 123 address 192.1.23.3
Phase 2
crypto ipsec transform-set TSET1 esp-3des esp-md5-hmac
access-list 101 permit ip 10.1.1.0 0.0.0.255 10.3.3.0 0.0.0.255
Crypto map CMAP 10 ipsec-isakmp
set peer 192.1.23.3
set transform-set TSET1
match address 101
int e0/0
crypto map CMAP
Thanks,
Nick