07-20-2024 04:22 AM
Hi!
How can I configure this network to have ping from CiscoLinuxBased-2/CiscoLinuxBased-3/CiscoLinuxBased-4 in Ubuntu?
I configured ospf between routers and I also advertise 192.168.107.0/24 in ospf on CiscoLinuxBased-1.
I attached 2 photos.
This is the config from routers:
CiscoLinuxBased-1
interface GigabitEthernet0/1
ip address 10.0.0.13 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 10.0.0.1 255.255.255.252
duplex auto
speed auto
media-type rj45
router ospf 1
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.12 0.0.0.3 area 0
network 192.168.107.0 0.0.0.255 area 0
CiscoLinuxBased-2
interface GigabitEthernet0/0
ip address 10.0.0.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.0.0.5 255.255.255.252
duplex auto
speed auto
media-type rj45
router ospf 1
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.4 0.0.0.3 area 0
!
CiscoLinuxBased-3
interface GigabitEthernet0/0
ip address 10.0.0.9 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.0.0.14 255.255.255.252
duplex auto
speed auto
media-type rj45
router ospf 1
network 10.0.0.8 0.0.0.3 area 0
network 10.0.0.12 0.0.0.3 area 0
CiscoLinuxBased-4
interface GigabitEthernet0/0
ip address 10.0.0.10 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.0.0.6 255.255.255.252
duplex auto
speed auto
media-type rj45
router ospf 1
network 10.0.0.4 0.0.0.3 area 0
network 10.0.0.12 0.0.0.3 area 0
07-20-2024 04:42 AM
Hi
I believe you made one mistake on CiscoLinuxBased-4. You add the network 10.0.0.12 instead 10.0.0.8.
You need to make sure the router is receiving the network 192.168.107.0. You can check with show ip route and you need to make sure your linux server have a route to the network 10.0.0.0.
07-20-2024 04:50 AM
I modified that network on CiscoLinuxBased-4
I received the route 192.168.107.0 on all routers, I have from all routers in 192.168.107.139.
192.168.107.137 is on CiscoLinuxBased-1 (int g0/0), but 192.168.107.139 does not respond to ping.
How can I configure on ubuntu a router to 10.0.0.0?
CiscoLinuxBased-3#show ip route 192.168.107.0
Routing entry for 192.168.107.0/24
Known via "ospf 1", distance 110, metric 2, type intra area
Last update from 10.0.0.13 on GigabitEthernet0/1, 01:16:17 ago
Routing Descriptor Blocks:
* 10.0.0.13, from 192.168.107.139, 01:16:17 ago, via GigabitEthernet0/1
Route metric is 2, traffic share count is 1
CiscoLinuxBased-4#show ip route 192.168.107.0
Routing entry for 192.168.107.0/24
Known via "ospf 1", distance 110, metric 3, type intra area
Last update from 10.0.0.9 on GigabitEthernet0/0, 00:00:46 ago
Routing Descriptor Blocks:
10.0.0.9, from 192.168.107.139, 00:00:46 ago, via GigabitEthernet0/0
Route metric is 3, traffic share count is 1
* 10.0.0.5, from 192.168.107.139, 01:16:15 ago, via GigabitEthernet0/1
Route metric is 3, traffic share count is 1
07-20-2024 04:59 AM
ip route add <Destination Address> dev <Interface Name> 2--IP
https://www.geeksforgeeks.org/how-to-add-route-in-ubuntu/
07-20-2024 04:46 AM
share the show ip ospf neighbor in all routers
MHM
07-20-2024 04:55 AM
Here:
CiscoLinuxBased-1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.14 1 FULL/BDR 00:00:36 10.0.0.14 GigabitEthernet0/1
10.0.0.5 1 FULL/BDR 00:00:38 10.0.0.2 GigabitEthernet0/2
CiscoLinuxBased-2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.10 1 FULL/BDR 00:00:31 10.0.0.6 GigabitEthernet0/1
192.168.107.139 1 FULL/DR 00:00:39 10.0.0.1 GigabitEthernet0/0
CiscoLinuxBased-3#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.107.139 1 FULL/DR 00:00:38 10.0.0.13 GigabitEthernet0/1
10.0.0.10 1 FULL/BDR 00:00:35 10.0.0.10 GigabitEthernet0/0
CiscoLinuxBased-4#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.14 1 FULL/DR 00:00:30 10.0.0.9 GigabitEthernet0/0
10.0.0.5 1 FULL/DR 00:00:32 10.0.0.5 GigabitEthernet0/1
07-20-2024 05:01 AM
that good
now
show ip ospf interface brief
MHM
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