Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Certification Preparation
Cisco
CCST & CCNA (Entry-level & Associate)
nat configuration question
dnt123
Hi all, I'm having a problem configuring NAT to connect to the internet on my 2621 router that is connected to a cable modem which uses dhcp. My current configuration is listed below, and i was wondering if i'm missing anything or if something is incorrect. Any advice would be greatly appreciated appreciated. Thanks alot!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
!
!
interface FastEthernet0/0
ip address dhcp
ip nat outside
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
no fair-queue
!
interface FastEthernet0/1
ip address 192.168.x.x 255.255.255.0
ip nat inside
duplex auto
speed auto
!
ip nat inside source list 102 interface FastEthernet0/0 overload
ip http server
no ip http secure-server
ip classless
!
!
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
dtlokee
I think you ACL needs to be modified, but I can't tell because you've changed your IP address to 192.168.x.x (I don't understand why) but your acl is only going to match on 192.168.0.x due to a wildcard mask of 0.0.0.255
dnt123
My apologies, my ip address used for that line is 192.168.0.1 for interface fa0/1.
dtlokee
You are mssing a default route, but the NAT stuff looks good
dnt123
I see, so its not working becuase there is no default route? I also set my pc's tcp/ip settings to have an
ip address of: 192.168.0.2
subnet: 255.255.255.0
default gateway: 192.168.0.1
should anything else be configured to have my computer connect to the internet? Thanks again
dtlokee
Your router will need a default route to the next hop router (ISP)
dnt123
Thanks that sounds good to me!, gonna give that a try
dtlokee
you may be able to use the "ip route 0.0.0.0 0.0.0.0 dhcp" command to use the default gateway provided by your ISP as the default route. This was added in 12.3(
T so depending on the IOS version this may not be available.
EDIT: Damn smilies turned (
into a smiley face
Netstudent
I just thought maybe you thought you were cool for knowing that.
dnt123
Its working now thanks alot!, I also found out that you should do a power cycle on your cable modem so it recognizes your router and also add dns server addresses on your tcp/ip settings in windows.
ChrisPinSg
nat / pat i hate it i still dont get it, so what to put for the source list and acl, am gonna borrow ccna icnd when pple return it to the library. bet i wouldnt really get it there, i did it on packet tracer 5 times but still dont get what the commands mean lol
networker050184
For the source list you put the number of the access-list you create. You create the access-list to only allow what hosts or network you want to be translated. The concepts are pretty simple once you get the hang of it, but it can get a bit confusing at times. You should definitley get a book to learn about NAT, but you can read this
How NAT Works
from the Cisco technical documentation to get you started now.
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS