• R2 uchun ham shu komadalar yoziladi
  • O‘zbekiston respublikаsi raqamli texnologiyalar vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti samarqand filiali




    Download 12,7 Mb.
    Pdf ko'rish
    bet137/167
    Sana25.05.2024
    Hajmi12,7 Mb.
    #253984
    1   ...   133   134   135   136   137   138   139   140   ...   167
    Bog'liq
    O‘zbekiston respublikàsi raqamli texnologiyalar vazirligi muhamm (1)

    2. IPsec ni sozlash 


    185 
    1. R0 marshrutizatori lokal tarmog`idan R2 marshrutizatori lokal tarmog`igacha trafiklarni 
    aniqlash uchun ACL 100 ro`yxatini sozlang. 
    R0(config)#access-list 100 permit ip 192.168.1.0 0.0.0.255 172.16.1.0 0.0.0.255
    2. R2 marshrutizatori uchun ham yuqoridagi buyruqni takrorlang. 
    R2(config)#access-list 100 permit ip 172.16.1.0 0.0.0.255 192.168.1.0 0.0.0.255
    3. R0 va R2 marshrutizatorlarida ISAKMP 1 kriptografiyasini va yana shifrlash kalitini 
    TATU qilib sozlang. 
    R0 uchun: 
    R0(config)# crypto isakmp enable 
    R0(config)#crypto isakmp policy 1 
    R0(config-isakmp)#encryption 3des
    R0(config-isakmp)#hash md5
    R0(config-isakmp)#authentication pre-share
    R0(config-isakmp)#group 2 
    R0(config-isakmp)#lifetime 86400 
    R0(config-isakmp)#exit 
    R0(config)#crypto isakmp key KALIT address 80.80.80.2
    R0(config)#crypto ipsec transform-set TATU esp-3des esp-md5-hmac
    R0(config)#access-list 100 permit ip 192.168.1.0 0.0.0.255 172.16.1.0 0.0.0.255
    R0(config)#crypto map KARTA 10 ipsec-isakmp
    R0(config-crypto-map)#set peer 80.80.80.2 
    R0(config-crypto-map)#set transform-set TATU 
    R0(config-crypto-map)#match address 100 
    R0(config-crypto-map)#exit 
    R0(config)#interface fastEthernet 0/1 
    R0(config-if)#crypto map KARTA 
    R0(config-if)#exit 
    R2 uchun ham shu komadalar yoziladi 
    R2(config)# crypto isakmp enable 
    R2(config)#crypto isakmp policy 1 
    R2(config-isakmp)#encryption 3des
    R2(config-isakmp)#hash md5
    R2(config-isakmp)#authentication pre-share
    R2(config-isakmp)#group 2 
    R2(config-isakmp)#lifetime 86400 
    R2(config-isakmp)#exit 
    R2(config)#crypto isakmp key KALIT address 195.158.1.1
    R2(config)#crypto ipsec transform-set TATU esp-3des esp-md5-hmac
    Router2(config)#access-list 100 permit ip 172.16.1.0 0.0.0.255 192.168.1.0 0.0.0.255
    R2(config)#crypto map KARTA 10 ipsec-isakmp
    R2(config-crypto-map)#set peer 195.158.1.1 
    R2(config-crypto-map)#set transform-set TATU 
    Router2(config-crypto-map)#match address 100 
    Router2(config-crypto-map)#exit 
    Router2(config)#interface fastEthernet 0/1 
    Router2(config-if)#crypto map KARTA 
    Router2(config-if)exit 
    Router2(config)ip route 0.0.0.0 0.0.0.0 80.80.80.1

    Download 12,7 Mb.
    1   ...   133   134   135   136   137   138   139   140   ...   167




    Download 12,7 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    O‘zbekiston respublikаsi raqamli texnologiyalar vazirligi muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti samarqand filiali

    Download 12,7 Mb.
    Pdf ko'rish