CISCO 17.X NAT Mabapi le Stateless Static

CISCO-17-X-NAT-About-Stateless-Static-sehlahisoa

Tlhahisoleseding ya Sehlahiswa

Litlhaloso

  • Lebitso la Sehlahiswa: Stateless Static NAT
  • Phetolelo: IOS XE Bengaluru 17.4.1a

Litaelo tsa Tšebeliso ea Sehlahisoa

Ho hlophisa Stateless Static ka hare le ka ntle ho NAT
Ho lokisa phetolelo e sa fetoheng ea NAT e nang le 'mapa o sa fetoheng o behiloe ho se nang boemo, latela mehato ena

  1. Numella mokhoa o khethehileng oa EXEC ka ho kenya taelo:
    enable
  2. Kenya mokhoa oa tlhophiso ea lefats'e ka ho kenya taelo:
    configure terminal
  3. Lokisa phetolelo ea ka hare ea mohloli o tsitsitseng oa NAT ka ho kenya
    taelo: ip nat inside source static local-ip global-ip
    stateless
  4. Lokisa phetolelo ea kantle ea mohloli o sa fetoheng oa NAT ka ho kenya
    taelo: ip nat outside source static global-ip local-ip
    stateless
  5. Tsoa ho tlhophiso ea lefats'e ka ho kenya taelo:
    exit
  6. Boloka tlhophiso 'me u tsoe ka ho kenya taelo:
    end

Ho Hlophisa Stateless Static NAT Port Forwarding
Ho hlophisa phetisetso ea port ea NAT e sa fetoheng, latela mehato ena

  1. Numella mokhoa o khethehileng oa EXEC ka ho kenya taelo:
    enable
  2. Kenya mokhoa oa tlhophiso ea lefats'e ka ho kenya taelo:
    configure terminal
  3. Lokisa phetolelo ea ka hare ea mohloli o tsitsitseng oa NAT ka port
    ho fetisa ka ho kenya taelo: ip nat inside source
    static local-ip global-ip stateless
  4. Lokisa phetolelo ea kantle ea mohloli o sa fetoheng oa NAT ka port
    ho fetisa ka ho kenya taelo: ip nat outside source
    static global-ip local-ip stateless
  5. Tsoa ho tlhophiso ea lefats'e ka ho kenya taelo:
    exit
  6. Boloka tlhophiso 'me u tsoe ka ho kenya taelo:
    end

LBH

  • Stateless Static NAT ke eng?
    Stateless Static NAT e lumella liphetolelo tsa motho ka mong tsa liaterese tsa lehae ho ea ho liaterese tse kantle tsa lefatše, ho kenyeletsoa liaterese tsa IP le liphetolelo tsa nomoro ea port.
  • Morero oa Stateless Static NAT ke ofe?
    Sepheo sa Stateless Static NAT ke ho etsa liphetolelo tse sa fetoheng tsa liaterese tsa poraefete ho liaterese tsa sechaba, ho thusa baamoheli ba marangrang a sebaka seo ho eang ho sona ho qala sephethephethe ho moamoheli ea fetoletsoeng haeba ba lumelloa ke lenane la phihlello.
  • Phapano ke efe lipakeng tsa NAT ea Naha le Stateful?
    Ho NAT e se nang Naha, ha ho na mananeo a etsoang bakeng sa phallo ea sephethephethe, athe ho Stateful NAT, linako li etsoa bakeng sa phallo e ngoe le e ngoe.

Tlhahisoleseding e mabapi le Stateless Static NAT

  • Static Network Address Translation (NAT) e lumella mosebelisi ho etsa liphetolelo tsa motho ka mong tsa liaterese tsa lehae tse ka hare ho liaterese tsa lefatše tse kantle. E lumella liaterese tsa IP ka bobeli le liphetolelo tsa nomoro ea boema-kepe ho tloha kahare ho ea ho sephethephethe sa kantle le kantle ho sephethephethe se ka hare.
  • Static NAT e etsa phetolelo e tsitsitseng ea liaterese tsa poraefete ho liaterese tsa sechaba. Hobane NAT e sa fetoheng e fana ka liaterese ho latela motho a le mong, o hloka palo e lekanang ea liaterese tsa sechaba joalo ka liaterese tsa poraefete. Hobane aterese ea sechaba e tšoana bakeng sa khokahanyo e 'ngoe le e 'ngoe e latellanang le NAT e sa fetoheng, 'me ho na le molao o phehellang oa ho fetolela, NAT e sa fetoheng e thusa baamoheli ba marangrang a sebaka ho qala sephethephethe ho moamoheli ea fetoletsoeng haeba lethathamo la phihlello le teng le e lumellang .

Ho IOS XE Bengaluru 17.4.1a tokollo, lentsoe le lecha le se nang boemo le hlahisoa bakeng sa likhetho tsa tlhophiso ea Cisco IOS XE e tsitsitseng NAT. Khetho ena e sebetsa feela ho taelo e sa fetoheng ea NAT. Ha 'mapa o sa fetoheng o behiloe ho se nang boemo, ha ho na linako tse etsoang bakeng sa phallo eo ea sephethephethe.

  • Limmapa tsa NAT le Keno ea Phetolelo, leqepheng la 1
  • Lithibelo bakeng sa Phetolelo ea Aterese ea Netweke ea Naha e sa tsitsitseng, leqepheng la 2
  • Ho hlophisa NAT ea Stateless Static, leqepheng la 2
  • Ho Hlophisa NAT e tsitsitseng e tsitsitseng ka NAT e tsitsitseng ea Static Stateless ho Sesebelisoa sa Redundant , leqepheng la 8
  • Example: Ho Hlophisa Static e se nang Naha NAT, leqepheng la 9
  • Lintlha tse mabapi le Statless Static NAT, leqepheng la 10

Limmapa tsa NAT le Keno ea Phetolelo

Haeba 'mapa oa NAT o sa sebetseng o le teng hammoho le limmapa tse ling tsa NAT tse se nang palo, ho tla etsoa lethathamong la phetolelo la NAT. Tafole e latelang e hlalosa menyetla ea ho theha phallo ha phallo e ts'oana le 'mapa oa NAT tse peli hape e le ka boqhetseke ebile ha ho na maemo a ho hloka chelete.

Lethathamo la 1: Limmapa tsa NAT le Keno ea Phetolelo

Ho etsa 'mapa 1 ka

Ha ho Hlokeho

Ho etsa 'mapa 2 ka

Ha ho Hlokeho

'Mapa 1

ka Redundancy

Ho etsa 'mapa 2 ka

Khalefo

Pōpo e Phallang
Naha E bolelang NA NA Ee
Naha Naha NA NA Che
NA NA E bolelang Naha Ka bobeli ba sebetsang le ba standby
Ho etsa 'mapa 1 ka Ha ho Hlokeho Ho etsa 'mapa 2 ka Ha ho Hlokeho 'Mapa 1

ka Redundancy

Ho etsa 'mapa 2 ka Khalefo Pōpo e Phallang
NA NA Naha Naha Eseng maemong a mabeli a sebetsang le a standby

Lithibelo bakeng sa Phetolelo ea Aterese ea Marang-rang ea Stateless Static

Lithibelo tse latelang li sebetsa ho Stateless Static NAT:

  • Stateless Static NAT e tšehetsoa feela ho IPv4.
  • Stateless Static NAT e tšehetsoa feela ka mokhoa oa kamehla oa NAT. Haeba u fetola mokhoa oa CGN, o tla hlōleha ha limmapa tse se nang naha li se li lokiselitsoe.
  • Stateless Static NAT ha e tšehetsoe bakeng sa 'mapa o sa fetoheng o nang le 'mapa oa litsela.
  • Stateless Static NAT ha e tšehetse ts'ebetso ea ALG bakeng sa limmapa tse sa fetoheng.

Ho hlophisoa ha Stateless Static NAT

U ka hlophisa NAT e sa fetoheng ea naha ho tse latelang:

  • Ka hare ho NAT e tsitsitseng
  • Ka ntle ho NAT e tsitsitseng
  • Ka har'a marang-rang a tsitsitseng a NAT
  • Ka ntle ho marang-rang a tsitsitseng a NAT
  • Ka hare ho NAT e tsitsitseng e nang le PAT
  • Ka ntle ho NAT e tsitsitseng e nang le PAT

Ho hlophisa Stateless Static ka hare le ka ntle ho NAT
Etsa mosebetsi o latelang ho lokisa phetolelo e sa fetoheng ea NAT e nang le 'mapa o sa fetoheng. Ha o beha 'mapa o tsitsitseng hore o se ke oa ba le boemo, linako ha li etsetsoe phallo eo.

KAKARETSO MEHATO

  1. nolofalletsa
  2. lokisa terminal
  3. ip nat inside source static local-ip global-ip stateless
  4. ip nat kantle ho mohloli static global-ip local-ip stateless
  5. Etsoa
  6. QETA

LIEKETSENG MHATO

Taelo kapa Ketso Morero
Mohato oa 1 nolofalletsa

ExampLe: Router> lumella

  • E nolofalletsa mokhoa o khethehileng oa EXEC.
  • Kenya phasewete ea hau haeba u khothalletsoa.
Mohato oa 2 lokisa terminal

ExampLe: Router# lokisa terminal

E kenya mokhoa oa tlhophiso ea lefats'e.
Mohato oa 3 ip nat ka hare ho mohloli static local-ip global-ip e se nang naha

ExampLe: Router(config)# ip nat ka hare mohloding static 10.1.1.1 100.1.1.1 stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea lehae le aterese ea ka hare ea lefats'e.
Mohato oa 4 ip nat ntle mohloli static global-ip local-ip e se nang naha

ExampLe: Router(config)# ip nat ntle mohloding static 100.1.1.1 10.1.1.1 stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea kantle ea lefatše le aterese ea lehae.
Mohato oa 5 Etsoa

ExampLe: Router(config-haeba)# tsoa

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa tlhophiso ea lefatše lohle.
Mohato oa 6 QETA

ExampLe: Router(config-if)# end

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa EXEC o khethehileng.

Ho Hlophisa Stateless Static NAT Port Forwarding
Etsa mosebetsi o latelang ho lokisa phetisetso e sa fetoheng ea NAT e nang le 'mapa o sa fetoheng e behiloe maemong a sa tsitsang. Ha o beha 'mapa o tsitsitseng hore o se ke oa ba le boemo, linako ha li etsetsoe phallo eo.

KAKARETSO MEHATO

  1. nolofalletsa
  2. lokisa terminal
  3. ip nat inside source static {tcp|udp} local-ip local-port global-ip global-port extendable Stateless
  4. ip nat outside source static {tcp|udp} global-ip global-port local-ip local-port extendable Stateless
  5. Etsoa
  6. QETA

LIEKETSENG MHATO

Taelo kapa Ketso Morero
Mohato oa 1 nolofalletsa

ExampLe:

Router> lumella

  • E nolofalletsa mokhoa o khethehileng oa EXEC.
  • Kenya phasewete ea hau haeba u khothalletsoa.
Mohato oa 2 lokisa terminal

ExampLe: Router# lokisa terminal

E kenya mokhoa oa tlhophiso ea lefats'e.
Mohato oa 3 ip nat ka hare ho mohloli static {tcp|udp} local-ip local-port global-ip global-port e atolositsoeng e se nang Naha

ExampLe: Router(config)# ip nat ka hare ho mohloli static tcp

10.1.1.1 80 100.11.1.1 8080 e atolositsoeng e se nang naha

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea lehae le aterese ea ka hare ea lefats'e.
Mohato oa 4 ip nat ntle mohloli static {tcp|udp} global-ip global-port local-ip local-port e atolositsoeng e se nang Naha

ExampLe:

Router(config)# ip nat kantle ho mohloli static tcp
100.1.1.1 8080 10.1.1.1 80 e atolositsoeng e se nang naha

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea kantle ea lefatše le aterese ea lehae.
Mohato oa 5 Etsoa

ExampLe: Router(config-haeba)# tsoa

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa tlhophiso ea lefatše lohle.
Mohato oa 6 QETA

ExampLe:

Router(config-if)# end

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa EXEC o khethehileng.

Ho lokisa Network of Stateless Static NAT
Etsa mosebetsi o latelang ho lokisa marang-rang a sa fetoheng a NAT a nang le 'mapa o sa fetoheng o behiloe ho se nang boemo. Ha o beha 'mapa o tsitsitseng hore o se ke oa ba le boemo, linako ha li etsetsoe phallo eo.

KAKARETSO MEHATO

  1. nolofalletsa
  2. lokisa terminal
  3. ip nat ka hare ho mohloli marang-rang a tsitsitseng local-network-mask global-network-mask E se nang naha
  4. ip nat ntle mohloli static network global-network-mask local-network-mask E se nang naha
  5. Etsoa
  6. QETA

LIEKETSENG MHATO

Taelo kapa Ketso Morero
Mohato oa 1 nolofalletsa

ExampLe:

Router> lumella

  • E nolofalletsa mokhoa o khethehileng oa EXEC.
  • Kenya phasewete ea hau haeba u khothalletsoa.
Mohato oa 2 lokisa terminal

ExampLe: Router# lokisa terminal

E kenya mokhoa oa tlhophiso ea lefats'e.
Mohato oa 3 ip nat ka hare ho mohloli o tsitsitseng oa marang-rang local-network-mask global-network-mask Naha

ExampLe: Router(config)# ip nat ka hare ho marang-rang a tsitsitseng a mohloli

10.0.0.0 100.1.1.0 /24 ntle le naha

E theha phetolelo e tsitsitseng lipakeng tsa marang-rang a lehae le marang-rang a ka hare ho lefatše.
Mohato oa 4 ip nat ntle le mohloli o tsitsitseng oa marang-rang global-network-mask local-network-mask Naha

ExampLe: Router(config)# ip nat kantle ho marang-rang a tsitsitseng 100.0.0.0 10.1.1.0 /24 stateless

E theha phetolelo e tsitsitseng lipakeng tsa marang-rang a kantle ho naha le marang-rang a lehae.
Mohato oa 5 Etsoa

ExampLe: Router(config-haeba)# tsoa

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa tlhophiso ea lefatše lohle.
Mohato oa 6 QETA

ExampLe: Router(config-if)# end

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa EXEC o khethehileng.

Ho lokisa Stateless Static NAT le VRF
Etsa mosebetsi o latelang ho lokisa phetolelo e sa fetoheng ea NAT e nang le 'mapa o sa fetoheng e behiloe maemong a sa tsitsang ho VRF e tsebang boemo ba NAT. Ha o beha 'mapa o tsitsitseng hore o se ke oa ba le boemo, linako ha li etsetsoe phallo eo.

KAKARETSO MEHATO

  1. nolofalletsa
  2. lokisa terminal
  3. ip nat ka hare ho mohloli static local-ip global-ip [vrf vrf-name [match-in-vrf ]] Stateless
  4. ip nat ntle mohloli static global-ip local-ip [vrf vrf-name [match-in-vrf ]] Stateless
  5. Etsoa
  6. QETA

LIEKETSENG MHATO

Taelo kapa Ketso Morero
Mohato oa 1 nolofalletsa

ExampLe: Router> lumella

  • E nolofalletsa mokhoa o khethehileng oa EXEC.
  • Kenya phasewete ea hau haeba u khothalletsoa.
Mohato oa 2 lokisa terminal

ExampLe: Router# lokisa terminal

E kenya mokhoa oa tlhophiso ea lefats'e.
Mohato oa 3 ip nat ka hare ho mohloli static     local-ip global-ip [vrf vrf-lebitso [match-in-vrf ]] Naha

ExampLe: Router(config)# ip nat ka hare ho mohloli o tsitsitseng

10.1.1.1 100.11.1.1 vrf vrf1 match-in-vrf stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea lehae le aterese ea ka hare ea lefats'e.
  • The match-in-vrf keyword e thusa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang.
  • The Naha keyword ha e thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.
Mohato oa 4 ip nat ntle mohloli static      global-ip                                                    local-ip [vrf

vrf-lebitso [match-in-vrf ]] Naha

ExampLe: Router(config)# ip nat kantle ho mohloli o tsitsitseng

100.1.1.1 10.1.1.1 vrf vrf1 match-in-vrf stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea kantle ea lefatše le aterese ea lehae ea ka hare.
  • The match-in-vrf keyword e thusa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang.
  • The Naha keyword ha e thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.
Mohato oa 5 Etsoa

ExampLe: Router(config-haeba)# tsoa

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa tlhophiso ea lefatše lohle.
Mohato oa 6 QETA

ExampLe: Router(config-if)# end

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa EXEC o khethehileng.

Ho Hlophisa Stateless Static NAT le Static Stateless Static NAT Forwarding
Etsa mosebetsi o latelang ho hlophisa phepelo ea boema-kepe ea NAT e sa fetoheng ka VRF e nang le 'mapa o sa fetoheng e behiloe maemong a sa tsitsang. Ha o beha 'mapa o tsitsitseng hore o se ke oa ba le boemo, linako ha li etsetsoe phallo eo.

KAKARETSO MEHATO

  1. nolofalletsa
  2. lokisa terminal
  3. ip nat ka hare ho mohloli static {tcp | udp} local-ip local-port global-ip global-port [vrf vrf-name [match-in-vrf ]] e atolositsoeng e se nang boemo
  4. ip nat ntle mohloli static {tcp | udp} global-ip global-port local-ip local-port [vrf vrf-name [match-in-vrf ]] e atolositsoeng e se nang boemo
  5. Etsoa
  6. QETA

LIEKETSENG MHATO

Taelo kapa Ketso Morero
Mohato oa 1 nolofalletsa

ExampLe: Router> lumella

  • E nolofalletsa mokhoa o khethehileng oa EXEC.
  • Kenya phasewete ea hau haeba u khothalletsoa.
Mohato oa 2 lokisa terminal

ExampLe: Router# lokisa terminal

E kenya mokhoa oa tlhophiso ea lefats'e.
Mohato oa 3 ip nat ka hare ho mohloli static {tcp | udp} local-ip local-port global-ip global-port [vrf vrf-lebitso [match-in-vrf ]] e atolositsoeng e se nang naha

ExampLe: Router(config)# ip nat ka hare ho mohloli static tcp

10.1.1.1 80 100.11.1.1 8080 vrf 1 match-in-vrf extendable stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea lehae le aterese ea ka hare ea lefats'e.
  • The match-in-vrf keyword e thusa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang.
  • The Naha keyword ha e thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.
Mohato oa 4 ip nat ntle mohloli static {tcp | udp} global-ip global-port local-ip local-port [vrf vrf-lebitso [match-in-vrf ]] e atolositsoeng e se nang naha

ExampLe:

Router(config)# ip nat kantle ho mohloli static tcp
100.1.1.1 8080 10.1.1.1 80 vrf 1 match-in-vrf extendable stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea kantle ea lefatše le aterese ea lehae ea ka hare.
  • The match-in-vrf keyword e thusa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang.
  • The Naha keyword ha e thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.
Mohato oa 5 Etsoa

ExampLe: Router(config-haeba)# tsoa

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa tlhophiso ea lefatše lohle.
Mohato oa 6 QETA

ExampLe: Router(config-if)# end

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa EXEC o khethehileng.

Ho lokisa NAT e tsitsitseng e tsitsitseng e nang le NAT e tsitsitseng ea Static ka har'a Sesebelisoa sa Redundant
Etsa mosebetsi o latelang ho lokisa phetolelo e sa fetoheng ea NAT e nang le 'mapa o sa fetoheng. Ha o beha 'mapa o tsitsitseng hore o se ke oa ba le boemo, linako ha li etsetsoe phallo eo. Tokisong ena, ho 'mapa o sa fetoheng feela ho behiloeng ho se na boemo. Phatlalatso ea NAT e etsoa ha phallo e lumellana le lipolelo tsa 'mapa ka bobeli kapa haeba e lumellana le kenyo e hlakileng ea 'mapa feela. Leha ho le joalo, e ke ke ea etsoa haeba e lumellana le ho kena ha naha feela.

KAKARETSO MEHATO

  1. nolofalletsa
  2. lokisa terminal
  3. ip nat inside source static local-ip global-ip [vrf vrf-name [redundancy group name [match-in-vrf ]]] e se nang boemo
  4. ip nat inside source static local-ip global-ip [vrf vrf-name [redundancy group name match-in-vrf ]]] e se nang boemo
  5. Etsoa
  6. QETA

LIEKETSENG MHATO

Taelo kapa Ketso Morero
Mohato oa 1 nolofalletsa

ExampLe: Router> lumella

  • E nolofalletsa mokhoa o khethehileng oa EXEC.
  • Kenya phasewete ea hau haeba u khothalletsoa.
Mohato oa 2 lokisa terminal

ExampLe: Router# lokisa terminal

E kenya mokhoa oa tlhophiso ea lefats'e.
Mohato oa 3 ip nat ka hare ho mohloli static     local-ip global-ip [vrf vrf-lebitso [lebitso la sehlopha sa redundancy [match-in-vrf ]]] e se nang naha

ExampLe: Router(config)# ip nat ka hare ho mohloli o tsitsitseng

10.180.4.4 10.236.214.218 vrf vrf1 redundancy 1 mapping-id 11 match-in-vrf stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea lehae le aterese ea ka hare ea lefats'e.
  • The match-in-vrf keyword e thusa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang.
  • The Naha keyword ha e thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.
Mohato oa 4 ip nat ka hare ho mohloli static     local-ip global-ip [vrf vrf-lebitso [lebitso la sehlopha sa redundancy match-in-vrf ]]] e se nang naha

ExampLe: Router(config)# ip nat kantle ho mohloli o tsitsitseng
10.180.4.8 10.240.214.220 vrf vrf1 redundancy 1 mapping-id 10 match-in-vrf stateless

E theha phetolelo e tsitsitseng lipakeng tsa aterese ea lehae le aterese ea ka hare ea lefats'e.
  • The match-in-vrf keyword e thusa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang.
  • The Naha keyword ha e thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.
Taelo kapa Ketso Morero
Mohato oa 5 Etsoa

ExampLe: Router(config-haeba)# tsoa

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa tlhophiso ea lefatše lohle.
Mohato oa 6 QETA

ExampLe: Router(config-if)# end

E tsoa mokhoeng oa tlhophiso ea sebopeho 'me e khutlela mokhoeng oa EXEC o khethehileng.

ExampLe: Ho hlophisa NAT ea Stateless Static

Stateless Static NAT
E latelang example e bonts'a mokhoa oa ho hlophisa phetolelo e sa sisinyeheng kahare le kantle ho NAT lipakeng tsa aterese ea IP ea lehae 10.1.1.1 le aterese ea IP ea lefats'e 100.1.1.1. Lentsoe la bohlokoa la Stateless ha le thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.

  • Router# lokisa terminal
  • Router(config)# ip nat ka hare mohloding static 10.1.1.1 100.1.1.1 stateless
  • Router(config)# ip nat ntle mohloding static 100.1.1.1 10.1.1.1 stateless

Stateless Static NAT le Port Forwarding
E latelang example e bonts'a mokhoa oa ho lokisa phetolelo e sa fetoheng ea ho fetisa koung ea NAT lipakeng tsa aterese ea IP ea lehae 10.1.1.1 le aterese ea IP ea lefats'e 100.1.1.1. Lentsoe la bohlokoa la Stateless ha le thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.

  • Router# lokisa terminal
  • Router(config)# ip nat ka hare mohloding static tcp 10.1.1.1 80 100.11.1.1 8080 extendable stateless
  • Router(config)# ip nat ntle mohloli static tcp 100.1.1.1 8080 10.1.1.1 80 extendable stateless

Stateless Static NAT Network
E latelang exampLe e bonts'a mokhoa oa ho lokisa marang-rang a sa tsitsitseng a NAT pakeng tsa marang-rang a kahare a lehae le marang-rang a kahare a lefats'e. Lentsoe la bohlokoa la Stateless ha le thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.

  • Router# lokisa terminal
  • Router(config)# ip nat ka hare mohloding static netweke 10.0.0.0 100.1.1.0 /24 stateless Router(config)# ip nat ntle mohloli static netweke 100.0.0.0 10.1.1.0 /24 stateless

Static Stateless NAT e nang le VRF
E latelang example e bonts'a mokhoa oa ho lokisa phetolelo e sa fetoheng ea NAT lipakeng tsa aterese ea IP ea lehae 10.1.1.1 le aterese ea IP ea lefats'e 100.1.1.1. Lebitso la sehlooho la match-in-vrf le nolofalletsa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang. Lentsoe la bohlokoa la Stateless ha le thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.

  • Router# lokisa terminal
  • Router(config)# ip nat inside source static 10.1.1.1 100.11.1.1 vrf vrf1 match-in-vrf stateless
  • Router(config)# ip nat kantle ho mohloli o tsitsitseng 100.1.1.1 10.1.1.1 vrf vrf1 match-in-vrf stateless
  • Router(config)# Router(config-if)# end

Static Stateless NAT e nang le Static Stateless Static NAT Port Forwarding
E latelang example e bonts'a mokhoa oa ho lokisa phetolelo e sa fetoheng ea NAT lipakeng tsa aterese ea IP ea lehae 10.1.1.1 le aterese ea IP ea lefats'e 100.1.1.1. Lebitso la sehlooho la match-in-vrf le nolofalletsa NAT kahare le kantle ho sephethephethe ho VRF e tšoanang. Lentsoe la bohlokoa la Stateless ha le thehe likenyo tsa phallo bakeng sa 'mapa o sa fetoheng.

  • Router# lokisa terminal
  • Router(config)# ip nat inside source static tcp 10.1.1.1 80 100.11.1.1 8080 vrf 1 match-in-vrf extendable stateless
  • Router(config)# ip nat ntle mohloli static tcp 100.1.1.1 8080 10.1.1.1 80 vrf 1 match-in-vrf extendable stateless
  • Router(config)# Router(config-if)# end

NAT e tsitsitseng e tsitsitseng e nang le Static Stateless NAT ho Sesebelisoa ho ea ho Sesebelisoa HA
E latelang example e bonts'a mokhoa oa ho hlophisa NAT e sa fetoheng e sa fetoheng e nang le NAT e sa fetoheng e ts'oanang e tsamaellanang le phallo e nang le redundancy ea sesebelisoa ho sesebelisoa e lumelletsoeng.

  • Router# lokisa terminal
  • ip nat inside source static 10.180.4.4 10.236.214.218 vrf vrf1 redundancy 1 mapping-id 11 match-in-vrf stateless
  • ip nat ntle mohloli static 10.180.4.8 10.240.214.220 vrf vrf1 redundancy 1 mapping-id 10

Lintlha tse mabapi le Statless Static NAT

Letlapa la 2: Litaba tsa Boemo bakeng sa Statless Static NAT

Lebitso la Sebopeho Litokollo Lintlha tsa Sebopeho
Boemo bo sa tsitsang NAT Cisco IOS XE Bengaluru 17.4 Lentsoe la sehlooho le lecha e se nang naha e hlahisoa bakeng sa tlhophiso ea IOS XE e tsitsitseng ea NAT.

Litokomane / Lisebelisoa

CISCO 17.X NAT Mabapi le Stateless Static [pdf] Buka ea Taelo
17.X NAT Mabapi le Stateless Static, 17.X, NAT Mabapi le Stateless Static, Mabapi le Stateless Static, Stateless Static, Static

Litšupiso

Tlohela maikutlo

Aterese ea hau ea lengolo-tsoibila e ke ke ea phatlalatsoa. Libaka tse hlokahalang li tšoailoe *