ITAA-JUNOS OSPF

  • View
    56

  • Download
    0

Embed Size (px)

DESCRIPTION

junos ospf

Text of ITAA-JUNOS OSPF

  • JUNOS OSPF

    2010-4-20

  • 2

    2

    1.1 OSPF .................................................................................................................... 3

    1.2 OSPF .......................................................................................... 13

    1.3 OSPF NSSA .................................................................................................................. 23

    1.4 OSPF LSA ......................................................................................... 38

    1.5 OSPF ................................................................................................................ 47

    1.6 OSPF ...................................................................................................................... 57

    1.7 OSPF .............................................................................................................. 97

    1.8 EIGRPIGP ......................................................................................... 142

  • 3

    3

    1.1 OSPF

    1. Loopback IDRID

    2. Loopback OSPF

    3. Loopback LSA3 0.0.0.1

    4. T1 R3 0.0.0.0

    OSPF

    1.JUNOS OSPF IDRID

    2. OSPF RID

    3. OSPF ABR RID IP

    4. JUNOS IGPPASSIVE

    5. JUNOS OSPF

    JUNOS

    JUNOS 5

    OSPF

    IOS IP

    JUNOS IP

    OSPF

    R3 JUNOS

    protocols {

    ospf {

  • 4

    4

    area 0.0.0.0 {

    interface fxp1.34;

    interface fxp1.35;

    }

    }

    }

    R4 JUNOS

    protocols {

    ospf {

    area 0.0.0.0 {

    interface fxp2.34;

    interface fxp1.45;

    }

    }

    }

    R5 JUNOS

    protocols {

    ospf {

    area 0.0.0.0 {

    interface fxp2.35;

    interface fxp2.45;

    }

    area 0.0.0.1 {

    interface fxp1.56;

    interface fxp1.57;

    }

    }

    }

    R6 JUNOS

    protocols {

    ospf {

    area 0.0.0.1 {

    interface fxp2.56;

    interface fxp2.67;

    }

    }

    }

  • 5

    5

    R7 JUNOS

    protocols {

    ospf {

    area 0.0.0.1 {

    interface fxp1.67;

    interface fxp2.57;

    }

    }

    }

    OSPF

    [edit logical-routers]

    nigel@www.itaalab.com# run show ospf interface

    logical-router r5

    Interface State Area DR ID BDR ID Nbrs

    fxp2.35 DR 0.0.0.0 10.0.3.5 10.0.3.3 1

    fxp2.45 DR 0.0.0.0 10.0.3.5 10.0.3.4 1

    fxp1.56 BDR 0.0.0.1 10.0.9.6 10.0.3.5 1

    fxp1.57 BDR 0.0.0.1 10.0.9.7 10.0.3.5 1

    R5 4 OSPF 0.0.0.0

    0.0.0.1R5

    [edit logical-routers]

    nigel@www.itaalab.com# run show ospf neighbor

    logical-router r5

    Address Interface State ID Pri Dead

    10.0.2.2 fxp2.35 Full 10.0.3.3 128 37

    10.0.2.10 fxp2.45 Full 10.0.3.4 128 35

    10.0.8.5 fxp1.56 Full 10.0.9.6 128 35

    10.0.8.10 fxp1.57 Full 10.0.9.7 128 38

    OSPF IDRID

    [edit]

    nigel@www.itaalab.com# run show route protocol ospf

    logical-router r5 | match /32

    10.0.3.3/32 *[OSPF/10] 04:23:47, metric 10 ( em 1em fxp)

    10.0.3.4/32 *[OSPF/10] 04:23:47, metric 10

    10.0.9.6/32 *[OSPF/10] 04:23:41, metric 10

    10.0.9.7/32 *[OSPF/10] 04:23:42, metric 10

  • 6

    6

    224.0.0.5/32 *[OSPF/10] 04:49:45, metric 1

    R5

    OSPF R5 4 OSPF R5

    [edit]

    nigel@www.itaalab.com# run ping 10.0.3.3 logical-router

    r5 source 10.0.3.5 rapid

    PING 10.0.3.3 (10.0.3.3): 56 data bytes

    !!!!!

    --- 10.0.3.3 ping statistics ---

    5 packets transmitted, 5 packets received, 0% packet loss

    round-trip min/avg/max/stddev = 0.400/0.448/0.477/0.027 ms

    R5 IP PING R3 R3

    OSPF R5 JUNOS

    OSPF RID JUNOS RPD

    OSPF ID.

    RIDJUNOS OSPF RID.

    JUNOS RID IP OSPF

    OSPF

    OSPF OSPF

    [edit]

    nigel@www.itaalab.com# run show ospf database logical-router

    r5 router lsa-id 10.0.3.3 detail

    OSPF link state database, area 0.0.0.0

    Type ID Adv Rtr Seq Age Opt Cksum Len

    Router 10.0.3.3 10.0.3.3 0x8000000f 1868 0x2 0xd6cd 60

    bits 0x0, link count 3

    id 10.0.2.6, data 10.0.2.5, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.2.1, data 10.0.2.2, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.3.3, data 255.255.255.255, Type Stub (3)

    TOS count 0, TOS 0 metric 0

    OSPF RID

  • 7

    7

    R3 OSPF ID JUNOS

    IP R3

    OSPF

    [edit logical-routers r3]

    nigel@www.itaalab.com# set routing-options router-id 10.0.2.5

    [edit logical-routers r3]

    nigel@www.itaalab.com# commit

    commit complete

    nigel@www.itaalab.com# run restart routing logical-router r3

    r3 started, pid 3223

    nigel@www.itaalab.com# run show ospf neighbor logical-router r5

    Address Interface State ID Pri Dead

    10.0.2.2 fxp2.35 Full 10.0.2.5 128 33

    10.0.2.10 fxp2.45 Full 10.0.3.4 128 33

    10.0.8.5 fxp1.56 Full 10.0.9.6 128 34

    10.0.8.10 fxp1.57 Full 10.0.9.7 128 35

    OSPF ID R3 R5 R3

    R3 ID 10.0.3.3 10.0.2.5 R5 OSPF

    R3 ID IP 10.0.3.3/32

    nigel@www.itaalab.com# run show route logical-router r5

    10.0.3.3/32 | count

    Count: 0 lines

    nigel@www.itaalab.com# run show ospf database logical-router

    r5 router lsa-id 10.0.2.5 extensive

    OSPF link state database, area 0.0.0.0

    Type ID Adv Rtr Seq Age Opt Cksum Len

    Router 10.0.2.5 10.0.2.5 0x8000000a 351 0x2 0x3e89 48

    bits 0x0, link count 2

    id 10.0.2.6, data 10.0.2.5, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.2.1, data 10.0.2.2, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    Aging timer 00:54:09

    Installed 00:05:48 ago, expires in 00:54:09,

    sent 00:05:48 ago

    OSPF ABR RID IP

  • 8

    8

    R3 RID

    OSPF OSPF RID

    RID IP

    RID

    RID.

    Weblog XHTML W3C RID

    IP 0.0.0.13. JNCIx

    JUNOS OSPF RID

    RID IP ABR IP OSPF LSA-1

    3 Loopback

    LSA-3 0.0.0.1 JUNOS OSPF RID

    nigel@www.itaalab.com# run show ospf database logical-router

    r3 router lsa-id 10.0.3.5 detail

    OSPF link state database, area 0.0.0.0

    Type ID Adv Rtr Seq Age Opt Cksum Len

    Router 10.0.3.5 10.0.3.5 0x80000011 186 0x2 0xf69e 60

    bits 0x1, link count 3

    id 10.0.2.1, data 10.0.2.1, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.2.9, data 10.0.2.9, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.3.5, data 255.255.255.255, Type Stub (3)

    TOS count 0, TOS 0 metric 0

    [edit]

    nigel@www.itaalab.com# run show ospf database logical-router

    r7 router lsa-id 10.0.3.5 detail

    OSPF link state database, area 0.0.0.1

    Type ID Adv Rtr Seq Age Opt Cksum Len

    Router 10.0.3.5 10.0.3.5 0x8000000f 1394 0x2 0x195c 60

    bits 0x1, link count 3

    id 10.0.8.5, data 10.0.8.6, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.8.10, data 10.0.8.9, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.3.5, data 255.255.255.255, Type Stub (3)

    TOS count 0, TOS 0 metric 0

    R5 RID 0.0.0.0

    LSA-3 0.0.0.1

    http://validator.w3.org/check?uri=http%3A%2F%2Fjncie.wordpress.com%2F

  • 9

    9

    [edit logical-routers]

    nigel@www.itaalab.com# set r5 routing-options

    router-id 10.0.3.5

    [edit logical-routers]

    nigel@www.itaalab.com# set r5 protocols ospf

    area 0.0.0.0 interface lo0.5 passive

    [edit logical-routers]

    nigel@www.itaalab.com# commit check

    configuration check succeeds

    [edit logical-routers]

    nigel@www.itaalab.com# commit

    commit complete

    R7 OSPF R5 RID 10.0.3.5/32

    LSA-1ROUTER LSA-3SUMMARY 0.0.0.1 3

    OSPF/ PASSIVE

    OSPF HELLO

    R5 RID JNCIx

    ABR RID IP

    nigel@www.itaalab.com# run show ospf database

    lsa-id 10.0.3.5 logical-router r7 detail

    OSPF link state database, area 0.0.0.1

    Type ID Adv Rtr Seq Age Opt Cksum Len

    Router 10.0.3.5 10.0.3.5 0x80000011 134 0x2 0x3c59 48

    bits 0x1, link count 2

    id 10.0.8.5, data 10.0.8.6, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    id 10.0.8.10, data 10.0.8.9, Type Transit (2)

    TOS count 0, TOS 0 metric 10

    Summary 10.0.3.5 10.0.3.5 0x80000001 134 0x2 0x831 28

    mask 255.255.255.255

    TOS 0x0, metric 0

    ABR R5 JUNOS

    protocols {

    ospf {

    area 0.0.0.0 {

    interface fxp2.35;

    interface fxp2.45;

  • 10

    10

    interface lo0.5 {

    passive;

    }

    }

    area