01-15-2018 11:50 PM - edited 03-05-2019 09:46 AM
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
!
Solved! Go to Solution.
01-16-2018 01:56 AM
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
01-16-2018 12:27 AM
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
01-16-2018 01:56 AM
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
01-23-2018 02:52 AM
02-24-2019 08:38 AM - edited 02-24-2019 08:41 AM
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)
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
02-24-2019 01:11 PM
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
03-04-2019 10:20 PM - edited 03-04-2019 10:23 PM
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.
03-04-2019 11:47 PM
Hello,
post your current full configuration...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide