Routing

Expand all | Collapse all

Simple OSPF between two EX4300s

Jump to Best Answer
  • 1.  Simple OSPF between two EX4300s

    Posted 10-11-2017 05:51

    I am trying to get into OSPF and want to configure it between two switches, but I'm having some difficulty.

    R1 & R2 with xe interfaces 10.5.0.1/24 and 10.5.0.2/24

    Protocols{

     Ospf {

      area 0.0.0.0 {

       interface xe-0/2/3.0;

      }

     }

    }

    Both have a loopback address set:

    R1: 192.168.0.1/32

    R2: 192.168.1.1/32

    Path: 192.168.1.1 <-> 10.5.0.1 <-> 10.5.0.2 <-> 192.168.0.1 

    A "show ospf route" for R1 has R2s loopback address listed and R2 has R1s loopback, but cant ping with "No route to host" and I do not see the routes in the routing table.



  • 2.  RE: Simple OSPF between two EX4300s

    Posted 10-11-2017 06:03

     

    Can you share below commands output?

     

    show ospf database extensive

    show route



  • 3.  RE: Simple OSPF between two EX4300s

    Posted 10-11-2017 06:39

     

    The 10.1 and 10.4 addresses are IRB interfaces I will be using later.

    R1:

    R1>show route | no-more
    
    inet.0: 21 destinations, 21 routes (21 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.1.158.1/32      *[Local/0] 1w6d 21:09:40
                          Reject
    10.4.105.1/32      *[Local/0] 1w6d 20:08:57
                          Reject
    10.4.110.0/24      *[Direct/0] 00:01:29
                        > via irb.1104
    10.4.110.1/32      *[Local/0] 1w6d 20:08:57
                          Local via irb.1104
    10.4.150.1/32      *[Local/0] 1w6d 20:08:57
                          Reject
    10.4.210.1/32      *[Local/0] 1w6d 21:09:40
                          Reject
    10.4.220.1/32      *[Local/0] 1w6d 21:09:40
                          Reject
    10.4.222.1/32      *[Local/0] 1w6d 21:09:39
                          Reject
    10.4.224.1/32      *[Local/0] 1w6d 21:09:39
                          Reject
    10.4.230.1/32      *[Local/0] 1w6d 21:09:39
                          Reject
    10.4.232.1/32      *[Local/0] 1w6d 21:09:39
                          Reject
    10.4.240.1/32      *[Local/0] 1w6d 21:09:39
                          Reject
    10.4.253.100/32    *[Local/0] 1w6d 21:09:39
                          Reject
    10.4.253.101/32    *[Local/0] 1w0d 20:31:25
                          Reject
    10.5.0.0/24        *[Direct/0] 22:40:29
                        > via xe-0/2/3.0
    10.5.0.2/32        *[Local/0] 22:40:29
                          Local via xe-0/2/3.0
    192.168.0.1/32     *[Direct/0] 01:08:21
                        > via lo0.0
    224.0.0.2/32       *[PIM/0] 1w6d 21:09:42
                          MultiRecv
    224.0.0.5/32       *[OSPF/10] 1w6d 21:09:42, metric 1
                          MultiRecv
    224.0.0.13/32      *[PIM/0] 1w6d 21:09:42
                          MultiRecv
    224.0.0.22/32      *[IGMP/0] 23:53:54
                          MultiRecv
    
    inet.1: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    224.0.0.0/4        *[Multicast/180] 1w6d 21:09:40
                          MultiResolve
    224.0.0.0/24       *[Multicast/180] 1w6d 21:09:40
                          MultiDiscard
    232.0.0.0/8        *[Multicast/180] 1w6d 21:09:42
                          MultiResolve
    239.255.255.250,10.4.110.5/32*[PIM/105] 00:01:25
                          Multicast (IPv4) Composite
    
    inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    ff02::2/128        *[PIM/0] 1w6d 21:09:42
                          MultiRecv
    ff02::d/128        *[PIM/0] 1w6d 21:09:42
                          MultiRecv
    
    inet6.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    ff30::/32          *[Multicast/180] 1w6d 21:09:42
                          MultiResolve

     

     

    R1> show ospf database extensive
    
    Area 0.0.0.0
     Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
    Router  *192.168.0.1      192.168.0.1      0x80000003  1336  0x22 0x59e1  36
      bits 0x0, link count 1
      id 10.5.0.1, data 10.5.0.2, Type Transit (2)
        Topology count: 0, Default metric: 1
      Topology default (ID 0)
        Type: Transit, Node ID: 10.5.0.1
          Metric: 1, Bidirectional
      Gen timer 00:27:44
      Aging timer 00:37:44
      Installed 00:22:16 ago, expires in 00:37:44, sent 00:22:14 ago
      Last changed 01:12:16 ago, Change count: 2, Ours
    Router   192.168.1.1      192.168.1.1      0x80000005  1337  0x22 0x3503  36
      bits 0x0, link count 1
      id 10.5.0.1, data 10.5.0.1, Type Transit (2)
        Topology count: 0, Default metric: 1
      Topology default (ID 0)
        Type: Transit, Node ID: 10.5.0.1
          Metric: 1, Bidirectional
      Aging timer 00:37:43
      Installed 00:22:14 ago, expires in 00:37:43
      Last changed 01:12:16 ago, Change count: 2
    Network  10.5.0.1         192.168.1.1      0x80000004  1337  0x22 0x9352  32
      mask 255.255.255.0
      attached router 192.168.1.1
      attached router 192.168.0.1
      Topology default (ID 0)
        Type: Transit, Node ID: 192.168.0.1
          Metric: 0, Bidirectional
        Type: Transit, Node ID: 192.168.1.1
          Metric: 0, Bidirectional
      Aging timer 00:37:43
      Installed 00:22:14 ago, expires in 00:37:43
      Last changed 01:12:16 ago, Change count: 2

    R2

    R2> show route | no-more
    
    inet.0: 21 destinations, 21 routes (21 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.1.100.0/24      *[Direct/0] 21:09:20
                        > via irb.100
    10.1.100.1/32      *[Local/0] 1d 00:02:11
                          Local via irb.100
    10.1.105.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.110.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.120.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.121.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.131.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.150.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.210.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.220.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.230.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.253.1/32      *[Local/0] 1d 00:02:11
                          Reject
    10.1.253.100/32    *[Local/0] 1d 00:02:13
                          Reject
    10.1.253.101/32    *[Local/0] 1d 00:01:50
                          Reject
    10.5.0.0/24        *[Direct/0] 22:48:41
                        > via xe-0/2/3.0
    10.5.0.1/32        *[Local/0] 22:48:41
                          Local via xe-0/2/3.0
    192.168.1.1/32     *[Direct/0] 01:16:22
                        > via lo0.0
    224.0.0.2/32       *[PIM/0] 1d 00:02:13
                          MultiRecv
    224.0.0.5/32       *[OSPF/10] 1d 00:02:14, metric 1
                          MultiRecv
    224.0.0.13/32      *[PIM/0] 1d 00:02:13
                          MultiRecv
    224.0.0.22/32      *[IGMP/0] 22:48:41
                          MultiRecv
    
    inet.1: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    224.0.0.0/4        *[Multicast/180] 1d 00:02:11
                          MultiResolve
    224.0.0.0/24       *[Multicast/180] 1d 00:02:11
                          MultiDiscard
    232.0.0.0/8        *[Multicast/180] 1d 00:02:13
                          MultiResolve
    239.255.255.250,10.1.100.5/32*[PIM/105] 01:23:07
                          Multicast (IPv4) Composite
    
    inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    ff02::2/128        *[PIM/0] 1d 00:02:13
                          MultiRecv
    ff02::d/128        *[PIM/0] 1d 00:02:13
                          MultiRecv
    
    inet6.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    ff30::/32          *[Multicast/180] 1d 00:02:13
                          MultiResolve
    R2> show ospf database extensive | no-more
    
    Area 0.0.0.0
     Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
    Router   192.168.0.1      192.168.0.1      0x80000003  1629  0x22 0x59e1  36
      bits 0x0, link count 1
      id 10.5.0.1, data 10.5.0.2, Type Transit (2)
        Topology count: 0, Default metric: 1
      Topology default (ID 0)
        Type: Transit, Node ID: 10.5.0.1
          Metric: 1, Bidirectional
      Aging timer 00:32:51
      Installed 00:27:06 ago, expires in 00:32:51
      Last changed 01:17:08 ago, Change count: 2
    Router  *192.168.1.1      192.168.1.1      0x80000005  1628  0x22 0x3503  36
      bits 0x0, link count 1
      id 10.5.0.1, data 10.5.0.1, Type Transit (2)
        Topology count: 0, Default metric: 1
      Topology default (ID 0)
        Type: Transit, Node ID: 10.5.0.1
          Metric: 1, Bidirectional
      Gen timer 00:22:52
      Aging timer 00:32:52
      Installed 00:27:08 ago, expires in 00:32:52, sent 00:27:06 ago
      Last changed 01:17:08 ago, Change count: 4, Ours
    Network *10.5.0.1         192.168.1.1      0x80000004  1628  0x22 0x9352  32
      mask 255.255.255.0
      attached router 192.168.1.1
      attached router 192.168.0.1
      Topology default (ID 0)
        Type: Transit, Node ID: 192.168.0.1
          Metric: 0, Bidirectional
        Type: Transit, Node ID: 192.168.1.1
          Metric: 0, Bidirectional
      Gen timer 00:22:52
      Aging timer 00:32:52
      Installed 00:27:08 ago, expires in 00:32:52, sent 00:27:06 ago
      Last changed 01:17:08 ago, Change count: 3, Ours
    


  • 4.  RE: Simple OSPF between two EX4300s
    Best Answer

     
    Posted 10-11-2017 11:25

    You're missing lo0 in your ospf config.

     

    set ospf area 0.0.0.0 interface lo0.0


  • 5.  RE: Simple OSPF between two EX4300s

    Posted 10-11-2017 13:04

    That's it, I see my mistake now. I appreciate it, thanks.