cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3059
Views
0
Helpful
7
Replies

NAT not working on CISCO 2911 router.

SENALEX
Level 1
Level 1

dear all participants of cisco forums,

I recentelly reconfigured my cissco 2911 router from scratch and i configured the NAT, but for some reason it is not doing the routing and it is not picking up hte default gatway, all i get is "Gateway of last resort not set " error in the "show ip route " command:

please see below my details of configuration and kindly notify me the part i missied:

for seurity reasones i have used fictious IP's in this forum ; please help:

 

****************************************my ips*************************

internal LAN is : 132.20.0.0/16

My static public IP i got from ISP is :168.199.62.33/31

deafult gateway for my public IP:169.144.46.1

DNS server for my public IP is : 231.55.69.148/4.2.2.2

 

****************************************************************

My router is cisco2911 and it has 2 gigabitinterfaces

so i want my outside interface to be "GigabitEthernet0/0
and my inside interface to be "Gigabitethernet0/1

 

***********************my current router config*************************

the configuration i did on my router is as follows
and for some reasone the router is not picking up
the deafult gateway- "Gateway of last resort not set",



interface GigabitEthernet0/0
ip address 168.199.62.33 255.255.254.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 132.20.0.1 255.255.0.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
!
ip default-gateway 169.144.46.1
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list INSIDE_ADDRESSES interface GigabitEthernet0/0 overload
!
ip access-list standard INSIDE_ADDRESSES
permit 132.20.0.0 0.0.255.255
!

 

 

1 Accepted Solution

Accepted Solutions

Hello


@SENALEX wrote:

!

 " for seurity reasones i have used fictious IP's in this forum ; please help"

 


Below is an with revised sample addressing to accommodate communication between your wan interface and the ISP next hop

internal LAN is : 132.20.0.0/16
My static public IP i got from ISP is :168.199.62.33/30
deafult gateway for my public IP:168.199.62.34/30
DNS server for my public IP is : 231.55.69.148/4.2.2.2


conf t
interface GigabitEthernet0/0
ip address 168.199.62.33 255.255.255.252
exit

no ip default-gateway 169.144.46.1
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 168.199.62.34

res

Paul

 

 

 

 

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

7 Replies 7

Hello,

 

remove the line:

 

ip default-gateway 169.144.46.1

 

and add the line below instead:

 

ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0

Hello


@SENALEX wrote:

!

 " for seurity reasones i have used fictious IP's in this forum ; please help"

 


Below is an with revised sample addressing to accommodate communication between your wan interface and the ISP next hop

internal LAN is : 132.20.0.0/16
My static public IP i got from ISP is :168.199.62.33/30
deafult gateway for my public IP:168.199.62.34/30
DNS server for my public IP is : 231.55.69.148/4.2.2.2


conf t
interface GigabitEthernet0/0
ip address 168.199.62.33 255.255.255.252
exit

no ip default-gateway 169.144.46.1
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0 168.199.62.34

res

Paul

 

 

 

 

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Dear paul,

thank you very much this has solved my problem.

kind regards,

Hi Everyone

 

I think might have similar issue my router 2800 series, try to configure NAT PAT, does not seem to be working, i havent applied many configurations yet only started by trying to see if i could access the internet before proceeding further. I am Desperately need to learn how Cisco router work in a real world networking & in production by applying correct concepts i read through the books & practicals, Im not sure if i missed something i also attached my screenshot from router for running configure. Please kindly advise & correct me if i'm doing something wrong.. DHCP was configure for my local address.. Http server ?

 

First applied below (failed)

Device# config t

Device(config)# ip nat pool Intercom 102.165.214.1 102.165.214.7 netmask 255.155.255.0

device(config)# ip nat inside source list 1 pool Intercom overload

Device(config) int fa0/0
Device(config-if) ip address 10.91.12.6 255.255.255.248
Device(config-if) ip nat inside
Device(config-if)no shut

Device(config) int fa0/1
Device(config-if) ip address 102.165.214.7 255.255.255.0 (public ip)failed.PNG
Device(config-if) ip nat outside
Device(config-if) access-list 1 permit any any

 

Second applied (failed)


Device# config t

Device(config)# ip nat pool Intercom 102.165.214.1 102.165.214.7 netmask 255.155.255.0

device(config)# ip nat inside source list 1 pool Intercom overload

Device(config) int fa0/0
Device(config-if) ip address 10.91.12.6 255.255.255.248
Device(config-if) ip nat inside
Device(config-if)no shut

Device(config) int fa0/1
Device(config-if) ip address 102.165.214.7 255.255.255.0
Device(config-if) ip nat outside
Device(config-if) access-list 1 permit 10.91.12.0 0.0.0.15

Hello,

 

do you have a static default route configured ?

 

ip route 0.0.0.0 0.0.0.0 FastEthernet0/1

 

Also, I assume the below is a typo ?

 

Device(config)# ip nat pool Intercom 102.165.214.1 102.165.214.7 netmask 255.155.255.0

 

Do you know what the next hop IP address is for the FastEthernet0/1 interface ?

 

Either way, try and see if you get the simplified config below to connect you to the Internet:

 

interface FastEthernet0/0
ip address 10.91.12.6 255.255.255.248
ip nat inside
!
interface FastEthernet0/1
ip address 102.165.214.7 255.255.255.0
ip nat outside
!
ip nat inside source list 1 interface FastEthernet0/1 overload
!
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1
!
access-list 1 permit 10.91.12.0 0.0.0.15

Hi 

I have went through configurations, & Verified NAT Translations. Attached my host receiving ip from DHCP, but somehow no internet, at 1 first i thought i should use public DNS hoping to reach internet i can ping my global  address. 

nAt NIC.PNGNAT trans.PNG

Hello,

 

post your current full configuration...