Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

OSPF config

I am sorry for a stupid question.

I am trying to set up an OSPF network. So far I am doing from a router to a router .

Here is what I have:

Router A:

int e0/0

ip address 192.168.30.0 255.255.255.0

ip ospf network poin-to-point

network ospf 10

network 192.168.0.0 0.0.255.255.0.0 area 0

Router B:

int e0/0

ip address 192.168.31.0 255.255.255.0

ip ospf network point-to-point

network ospf 10

network 192.168.0.0 0.0.255.255 area 0

When I do sh dcp neigh I can see the router but I can not ping it.

Would you please tell me what I am doing wrong.

Thanks in advance,

3 REPLIES
New Member

Re: OSPF config

Both of your routers are using illegal addresses.

Change your IP on both routers' ethernet interfaces to 192.168.3x.1 255.255.255.0

Also, by specifying that the OSPF network type is point-to-point, you're precluding OSPF from forming neighbor relationships by discovery. You would need to add "neighbor" statements to your OSPF config.

Also, your IP addresses on the ethernet interfaces must be on the same subnet (I'm assuming you have cross connected them or are using a hub). You can't form a neighbor relationship between two interfaces that are addressed on two different subnets. Change them to 192.168.30.1&2.

Without seeing the entire config, that's the best I can do.

Mick.

New Member

Re: OSPF config

if your router are directly connected, you should use the same network address 192.168.30.x for exemple.

and you can not use 192.168.30.0 ip address, it's the network address. you should use a number between 1 and 254.

regards and good luck

New Member

Re: OSPF config

Thanks a lot guys. I've not even notice that my ip addresses were in different subnets.

109
Views
0
Helpful
3
Replies