OSPF Question
What is the difference between
A)
int fa0/0
ip add x.x.x.x y.y.y.y
no shut
router ospf 1
net x.x.x.x <y wildcard mask> area 0
VS

int fa0/0
ip add x.x.x.x y.y.y.y
ip ospf 1 area 0
no shut
Both of them achieve the same purpose so why the difference?
A)
int fa0/0
ip add x.x.x.x y.y.y.y
no shut
router ospf 1
net x.x.x.x <y wildcard mask> area 0
VS

int fa0/0
ip add x.x.x.x y.y.y.y
ip ospf 1 area 0
no shut
Both of them achieve the same purpose so why the difference?
Comments
B is the newer Cisco preferred method, it wasn't always available where as A is from day one ospf config. XR only supports B which is the direction cisco is moving towards.
Lab Equipment: Using Cisco CSRs and 4 Switches currently
EdTheLad can you confirm ?
Yes, for IPv6 both ospfv3 and eigrp require configuration per/on the interface.
Learn to script. Option B is the new standard and as stated, OSPFv3 and EIGRP for IPv6 only support per interface configuration. In the end it's much neater anyway. I prefer the way it looks.