cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
625
Views
5
Helpful
4
Replies

OSPF did not creat a neighbors relationship

solmix
Level 1
Level 1

hi 

i am trying to work on my project on gns3 I do everything right but i can't see the OSPF neighbors relationship  between my router and Layer 3 switch 

Topology and configuration as follows 

Router 1 connects to L3S on interface Eth1/0

L3S connects to Router 1 on interface Eth 0/0

Router 1 configuration file

interface Ethernet1/0
ip address 172.58.10.3 255.255.255.240
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 12345
full-duplex

router ospf 100
router-id 2.2.2.2
log-adjacency-changes
area 0 authentication message-digest
passive-interface default
no passive-interface Ethernet1/0
no passive-interface Ethernet1/1
network 172.58.10.0 0.0.0.0 area 0
network 172.58.20.0 0.0.0.0 area 0

 

L3S conf file

interface Ethernet0/0
no switchport
ip address 172.58.10.1 255.255.255.240
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 12345


router ospf 100
router-id 1.1.1.1
area 0 authentication message-digest
passive-interface default
no passive-interface Ethernet1/1
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.50.0 0.0.0.255 area 0
network 192.168.60.0 0.0.0.255 area 0

 

Looking forward to it thank you

1 Accepted Solution

Accepted Solutions

Hello,

 

make the changes marked in bold:

 

interface Ethernet1/0
ip address 172.58.10.3 255.255.255.240
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 12345
full-duplex

router ospf 100
router-id 2.2.2.2
log-adjacency-changes
area 0 authentication message-digest
passive-interface default
no passive-interface Ethernet1/0
no passive-interface Ethernet1/1
--> network 172.58.10.0 0.0.0.255 area 0
--> network 172.58.20.0 0.0.0.255 area 0

 

L3S conf file

interface Ethernet0/0
no switchport
ip address 172.58.10.1 255.255.255.240
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 12345


router ospf 100
router-id 1.1.1.1
area 0 authentication message-digest
passive-interface default
no passive-interface Ethernet1/1

--> no passive-interface Ethernet0/0
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.50.0 0.0.0.255 area 0
network 192.168.60.0 0.0.0.255 area 0

--> network 172.58.10.0 0.0.0.255 area 0

View solution in original post

4 Replies 4

Hello,

 

make the changes marked in bold:

 

interface Ethernet1/0
ip address 172.58.10.3 255.255.255.240
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 12345
full-duplex

router ospf 100
router-id 2.2.2.2
log-adjacency-changes
area 0 authentication message-digest
passive-interface default
no passive-interface Ethernet1/0
no passive-interface Ethernet1/1
--> network 172.58.10.0 0.0.0.255 area 0
--> network 172.58.20.0 0.0.0.255 area 0

 

L3S conf file

interface Ethernet0/0
no switchport
ip address 172.58.10.1 255.255.255.240
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 12345


router ospf 100
router-id 1.1.1.1
area 0 authentication message-digest
passive-interface default
no passive-interface Ethernet1/1

--> no passive-interface Ethernet0/0
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.50.0 0.0.0.255 area 0
network 192.168.60.0 0.0.0.255 area 0

--> network 172.58.10.0 0.0.0.255 area 0

thank you very much for you kind replay  it works perfectly 

Hello
Suggest to remove area/interface authentication then try to establish ospf adjacency’s  when you do have the adjacency’s append authentication.

If you cannot turn authentication off then do so at the interface level and test again
int x/x
ip ospf authentication null


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Joseph W. Doherty
Hall of Fame
Hall of Fame

BTW, both Georg and Paul suggest using an OSPF mask of 0.0.0.255 but as your interface address masks are 255.255.255.240, you might match other interfaces on the same router.  (I.e. any that fall under the /24.)  If that is what you intend, that's fine, but otherwise I would suggest you either match the interface's IP or its specific subnet size.  The former would use an OSPF mask of 0.0.0.0 (and the interface's IP) and the latter an OSPF mask of 0.0.0.15. (and the interface's network prefix)

Another option, with later Cisco IOS OSPF implementations, is to use the interface command "ip ospf process-id area area-id".  Instead of the network statements.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card