04-12-2024 10:33 AM
Here is my setup
here is the output of `sh run` command on my router
`
R1#sh run
Building configuration...
Current configuration : 1313 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.0.0 10.0.0.24
!
ip dhcp pool rhel_network
network 10.0.0.0 255.255.255.128
default-router 10.0.0.1
dns-server 8.8.8.8 8.8.4.4
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
archive
log config
hidekeys
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
interface FastEthernet0/0
ip address 192.168.122.101 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.1 255.255.255.128
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 10.0.0.0 0.0.0.127 area 1
network 192.168.122.0 0.0.0.255 area 1
!
ip default-gateway 192.168.122.1
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.122.1
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end`
Interface f0/1 10.0.0.1 can ping 192.168.122.101
R1#ping 192.168.122.101 source f0/1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.122.101, timeout is 2 seconds:
Packet sent with a source address of 10.0.0.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms
R1#
but it cant ping 192.168.122.1
R1#ping 192.168.122.1 source f0/1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.122.1, timeout is 2 seconds:
Packet sent with a source address of 10.0.0.1
.....
Success rate is 0 percent (0/5)
if you check the running config, default route is configured but its not working.
Also OSPF is configured but that dosent seem to work.
Any Ideas please.
Solved! Go to Solution.
04-12-2024 11:32 AM
This NAT cloud know the path to 10.0.0.0?
No it only know direct connection between it and router' any prefix behind router dont known by cloud
That why we need NAT
MHM
04-12-2024 10:46 AM
Without NAT in router this not work
MHM
04-12-2024 10:52 AM
explain that solution a little bit please
04-12-2024 11:09 AM
access-list 10 permit ip 10.0.0.0 0.0.0.255
Ip nat inside source list 10 interface f0/0 overload
!
Interface f0/0
Ip nat outside
!
Interface f0/1
Ip nat inside
MHM
04-12-2024 11:17 AM
I am a new student of CCNA so I need to understand why it's not working and why this solution should work.
If you can point me to some documents that clear this specific solution, It will be really helpful.
04-12-2024 11:32 AM
This NAT cloud know the path to 10.0.0.0?
No it only know direct connection between it and router' any prefix behind router dont known by cloud
That why we need NAT
MHM
04-12-2024 11:23 AM
Hello,
I think the ip default gateway command might be the problem. Try and remove that (no ip default-gateway)...
04-14-2024 01:22 AM
default route won't work because there is no nat in the config. configure ACL and NAT
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