STATIC NAT cisco router

Опубликовано: 21 Октябрь 2024
на канале: IT DEVELOPMENT
369
1

STATIC NAT


interface xxx(inside)
ip nat inside

interface XXX(outside)
ip nat ouside



ip nat inside source static X.X.X.X(LOCAL IP ADDRESS) X.X.X.X OUTSIDE IP ADDRESS


show ip nat translations

-----------------------------------------------------------------------------------------------------------------------
CMD

interface gig 0
ip nat inside

interface serial 0
ip nat ouside

ip nat inside source static 10.0.0.2 1.1.1.1

show ip nat translations
------------------------------------------------------------------------------------------------------------------------

R1 CONFIGURATION:-


Router#SHOW RUN
Building configuration...

Current configuration : 1309 bytes
!
version 15.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool ccp-pool
network 10.10.10.0 255.255.255.248
default-router 10.10.10.1
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid C819HGW-PT-K9 sn FTX18066A3L
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0
ip address 10.0.0.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
!
interface Serial0
ip address 1.1.1.1 255.255.255.0
ip nat outside
clock rate 2000000
!
interface Wlan-GigabitEthernet0
description Internal switch interface connecting to the embedded AP
!
interface wlan-ap0
description Service module interface to manage the embedded AP
ip unnumbered Vlan1
!
interface Cellular0
no ip address
shutdown
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$
ip address 10.10.10.1 255.255.255.248
!
ip nat inside source static 10.0.0.2 1.1.1.1
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0
!
ip flow-export version 9
!
!
access-list 23 permit 10.10.10.0 0.0.0.7
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


Router#

by
Antony Melvin