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
-
atorven Member Posts: 319No difference at all, except for admin purposes i.e. if you had to enable ospf on a router with loads of interfaces, option A would be the quickest.
-
EdTheLad Member Posts: 2,111 ■■■■□□□□□□What is the difference between
Both of them achieve the same purpose so why the difference?
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.Networking, sometimes i love it, mostly i hate it.Its all about the $$$$ -
xnx Member Posts: 464 ■■■□□□□□□□I use method B as it's easier to follow when reading through configurationsGetting There ...
Lab Equipment: Using Cisco CSRs and 4 Switches currently -
DKempeneers Banned Posts: 36 ■■□□□□□□□□I think that B is only way to declare a net/int into OSPFv3
EdTheLad can you confirm ? -
mackenzae Member Posts: 77 ■□□□□□□□□□Option B would also help prune which interfaces send out Hello messages compared to option A especially if your network command encompasses a large network range like a class A
-
Fitzi Member Posts: 40 ■■■□□□□□□□DKempeneers wrote: »I think that B is only way to declare a net/int into OSPFv3
EdTheLad can you confirm ?
Yes, for IPv6 both ospfv3 and eigrp require configuration per/on the interface. -
eten Member Posts: 67 ■■□□□□□□□□same results in this example, but when configured under the interface where a secondary IP address exist, it will be included in the ospf process.
-
phantasm Member Posts: 995No difference at all, except for admin purposes i.e. if you had to enable ospf on a router with loads of interfaces, option A would be the quickest.
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."No man ever steps in the same river twice, for it's not the same river and he's not the same man." -Heraclitus