OSPF Question

dppagcdppagc Senior MemberMember Posts: 293
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

B)
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

  • atorvenatorven Senior Member Member Posts: 319
    No 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.
  • EdTheLadEdTheLad Resident Underachiever Member Posts: 2,111 ■■■■□□□□□□
    dppagc wrote: »
    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 $$$$
  • xnxxnx UKMember Posts: 464 ■■■□□□□□□□
    I use method B as it's easier to follow when reading through configurations
    Getting There ...

    Lab Equipment: Using Cisco CSRs and 4 Switches currently
  • DKempeneersDKempeneers Member Banned Posts: 36 ■■□□□□□□□□
    I think that B is only way to declare a net/int into OSPFv3
    EdTheLad can you confirm ?
  • mackenzaemackenzae Member 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
  • FitziFitzi Member Member Posts: 40 ■■■□□□□□□□
    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.
  • eteneten Member 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.
  • phantasmphantasm Senior Member Member Posts: 995
    atorven wrote: »
    No 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
Sign In or Register to comment.