OSPF Network Statement


Hi people.

There4s a question in my lab t elling me to insert interface E0/1 in the OSPF process, without using the “network” command under the ospf process.

My solution was this:

interface Ethernet0/1 ip address 183.10.6.6 255.255.255.0 ip ospf 1 area 46 full-duplex ! router ospf 1 router-id 150.10.6.6 log-adjacency-changes network 150.10.6.6 0.0.0.0 area 46 network 183.10.46.6 0.0.0.0 area 46

The lab guide solution was a lot more complicated:

router ospf 1 router-id 150.1.6.6 network 150.1.6.6 0.0.0.0 area 46 network 183.1.46.6 0.0.0.0 area 46 redistribute connected route-map CONNECTED->OSPF subnets ! ip prefix-list VLAN_6 permit 183.1.6.0/24 ! route-map CONNECTED->OSPF permit 10 match ip address prefix-list VLAN_6

So, my question is: Am I crazy? Isn4t my solution a clearly simpler and more performing solution, without the need for a route-map? Or maybe there4s a difference in the be haviour of the two solutions?

Thks in advance.

Blogs and organic groups at http://www.ccie.net

_______________________________________________________________________ Subscription information may be found at: http://www.groupstudy.com/list/CCIELab.html