AI, ML, Development + Cisco Learning Blog Learning about Machine Learning, Artificial Intelligence, related devlopment topics and formerly Routing and Switching, Datacenter, Security and other topics, CCIE #23664, Frank Wagner

19. September 2008

ospf network definition for adding all interfaces / default route

Filed under: IGP Routing,OSPF — ocsic @ 14:30

What’s the difference?

router ospf 1

network 0.0.0.0 0.0.0.0 area 0

vs.

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

Both add all existing interfaces into area 0 and all later added interfaces also. Both statements are valid.

For the default route it seems the same:

ip route 0.0.0.0 0.0.0.0 f1/1

vs.

ip route 0.0.0.0 255.255.255.255 f1/1

both work, sending traffic to the default gatewayf f1/1.

What IOS does not permit is a mixture for example.:

0.0.0.0 0.0.255.255

or

0.0.0.0 0.255.255.255

SW1(config)#ip route 0.0.0.0 0.0.255.255 f1/1
%Inconsistent address and mask

Both statements are the same. Since both have the same logical „AND“ing result for the host part, namely „0“.

0 0 0 0 0 0 0 0

1 1 1 1 1 1 1 1

———————-

0 0 0 0 0 0 0 0

vs.

0 0 0 0 0 0 0 0

0 0 0 0 0 0 0 0

———————-

0 0 0 0 0 0 0 0

Keine Kommentare »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress