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

two interfaces from same router cant ping each other

janbaztaimoor
Level 1
Level 1


Here is my setup
Screenshot from 2024-04-12 20-59-24.png

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.

 

1 Accepted Solution

Accepted Solutions

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

View solution in original post

7 Replies 7

Without NAT in router this not work

MHM

explain that solution a little bit please

 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

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.

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

Hello,

I think the ip default gateway command might be the problem. Try and remove that (no ip default-gateway)...

Wizard4777
Level 1
Level 1

default route won't work because there is no nat in the config. configure ACL and NAT

Review Cisco Networking for a $25 gift card