Virtual Switches

download Virtual Switches

of 18

Transcript of Virtual Switches

  • 8/16/2019 Virtual Switches

    1/18

    © 2010 Juniper Networks, Inc. All rights reserved. | www.juniper.net

    Virtul !witches

  • 8/16/2019 Virtual Switches

    2/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 2

    !everl di"erent t#pes o$ routing

    instnces e%ist&'Virtul(router routing instnces llow $or

    #our single chssis to pper s )ultiplerouters to the outside world

    ' *ch with their own seprte routing t+les,protocols, link(stte dt+ses, nd so on

    ' e$ult instnce is n)ed default

    'Virtul(switch routing instnces llow $or#our single chssis to pper s )ultiple

    switches to the outside world' *ch hs its own -A t+les, V/AN I spce,

    nd spnning tree do)ins

    ' he de$ult instnce is n)ed default-switch

    outing InstncesMX240

    hssis

    default default-switch

  • 8/16/2019 Virtual Switches

    3/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  |

    A !i)plistic View o$ outing Instnces

    Inter$ce to t+le de$ult ssign)ent&

    '/#er inter$ces ssocite with inet.0'/#er 2 inter$ces ssocite with the default-switch virtul

    switch

    MX240Layer 3 Interfaces Only(A Logical View)

    Layer 3 and Layer 2 Interfaces(A Logical View)

    outing +leinet.0 3de$ult4

     rnsientInter$ces

    hssisouting +leinet.0 3de$ult4

    -A +lesde$ult(switch

    I5 Inter$ces

    6ne -At+le per+ridge

    do)in orV/AN

         g     e   (     %       7     #       7     8  .

           0

  • 8/16/2019 Virtual Switches

    4/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 9

         g     e   (       1       7       1       7       :  .

           0

         g     e   (       1       7       1       7       ;  .

           0

         g     e   (       1       7       1       7       <  .

           0

    user@switch> show route table vr1.inet.0

    vr1.inet.0: 2 destinations, 2 routes (2 active, …

    + = Active oute, - = !ast Active, " = #oth

    1$2.22.2.0%2& "'irect%0) 20:*:2&  > via e-1%1%*.01$2.22.2.%2 "'!ocal%0) 20:*:2&

      !ocal via e-1%1%*.0

    outing Instnces=Virtul outer

     >ou )ust ssign inter$ces

    to virtul router'?lce routes ssocited with

    those inter$ces onl# in thtvirtul router@s routing t+le

    Layer 3 Interfaces Only(A Logical View)

    outing +leinet.0 3de$ult4

    hssis

    outing +leinstance-name.inet.0

    'edit)user@switch show routing-instances

    vr1 /  instance-te virtual-router

      interface e-1%1%*.0  interface e-1%1%3.0  interface e-1%1%$.0

      rotocols /

      osf /

    area 0.0.0.0 /  interface e-1%1%*.0

      interface e-1%1%3.0

      interface e-1%1%$.0  4

  • 8/16/2019 Virtual Switches

    5/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | :

         g     e   (       1       7       1       7       9  .

           0

         g     e   (       1       7       0       7       :  .

           0

    outing Instnces=Virtul !witch

    *ch virtul(switch routing instnce opertesindependentl# o$ the other virtul switches&

    'outes ssocited with I5 inter$ces re plced in inet.0regrdless o$ the virtul switch to which the# +elong

    Layer 3 and Layer 2 Interfaces(A Logical View)

    outing +leinet.0 3de$ult4

    -A +les

    de$ult(switch

    I5 Inter$ces

    -A +lesinstance-name

    6ne -At+le per

    +ridgedo)in or

    V/AN

    hssis

    Inter$ces usedin upco)ing

    e%)ples

  • 8/16/2019 Virtual Switches

    6/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | ;

    ongure outing Instnce

    ongure +se virtul(switch routing instnce&'ene the +ridge do)ins nd V/AN Is tht theswitch will use

    'edit)

    user@switch show routing-instances 

    virtual-sw-1 /

      instance-te virtual-switch

      5ride-do6ains /

      vlan7100 /

      vlan-id 100

      4

      vlan7200 /  vlan-id 200

      4

      4

    4

  • 8/16/2019 Virtual Switches

    7/18© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | <

    onguring n Access ?ort

    ongure n inter$ce tht cts s n ccess port $orthe virtul switch&'!peci$# the correct vlan-id so tht this inter$ce is

    ssocited with the correct +ridge do)in

    'edit)

    user@switch show interfaces ge-1/0/5

    unit 0 /

      fa6il 5ride /

      interface-6ode access

      vlan-id 200

      4

    4

    WARI!"""o))itting t this point cn cuse this inter$ce to +e dded to

    the default-switch routing instnce, which could introduce loopinto #our topolog#.

  • 8/16/2019 Virtual Switches

    8/18© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | B

    onguring runk ?ort

    ongure n inter$ce tht cts s trunk port $or thevirtul switch&'!peci$# the correct vlan-id-list so tht this inter$ce is

    ssocited with the correct +ridge do)ins

    'edit)

    user@switch show interfaces ge-1/1/4

    unit 0 /

      fa6il 5ride /

      interface-6ode trun8

      vlan-id-list ' 100 200 )

      4

    4

    WARI!"""e)e)+er to +ind the trunk port to the virtulswitch to prevent the introduction o$ loop into

    #our topolog#.

  • 8/16/2019 Virtual Switches

    9/18© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | C

    onguring Virtul(!witch I5Inter$ce

    ongure n I5 inter$ce tht cts s the I?gtew# $or +ridge do)in within thevirtul switch

    'edit)

    user@switch show interfaces

    ir5 /

      unit 1 /

      descrition 9; for

      fa6il inet /

      address 1$2.22.2.2*&%2&

      4

      4

    4

  • 8/16/2019 Virtual Switches

    10/18© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 10

    5ind the Inter$ces to the Virtul !witch

    !peci$# the inter$ces tht +elong to the virtul switch&

    '/ist the trunk nd ccess ports s )e)+er inter$ces o$ the virtul switch

    '/ist the I5 s therouting inter$ce $or thepproprite +ridge do)inwithin the virtul switch

    'edit)

    user@switch show routing-instances

    virtual-sw-1 /

      instance-te virtual-switch

      interface e-1%0%*.0

      interface e-1%1%&.0

      5ride-do6ains /

      vlan7100 /

      vlan-id 100

      4  vlan7200 /

      vlan-id 200

      routin-interface ir5.1

      4  4

    4

  • 8/16/2019 Virtual Switches

    11/18© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 11

    Veri$# ht ?orts 5elong to the Virtul!witch

    Dse the show bridge domain co))nd toensure tht the congurtion settingcco)plished #our gol

    user@switch> show bridge domain

    outin instance #ride do6ain

    e-1%0%0.0

      e-1%0%&.0

    default-switch vlan7200 200e-1%0%2.0

      e-1%0%&.0

    virtual-sw-1 vlan7100 100e-1%1%&.0

    virtual-sw-1 vlan7200 200

    e-1%0%*.0

      e-1%1%&.0

    ge(17179.0 nd ge(1707:.0 hve +een ddedto the correct routing instnce, +ridge

    do)ins, nd V/ANs.

  • 8/16/2019 Virtual Switches

    12/18© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 12

    Veri$# outing

    *nsure tht the pproprite routes pper inthe inet.0 routing t+le

    user@switch> show route

    inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0

    hidden?+ = Active oute, - = !ast Active, " = #oth

    10.210.12.0%2$ "'irect%0) 1d 22:&&:13

      > via f0.0

    10.210.12.1%2 "'!ocal%0) 1d 22:&&:13

      !ocal via f0.0

    1$2.22.2.0%2& "'irect%0) 00:0*:*&

      > via ir5.1

    1$2.22.2.2*&%2 "'!ocal%0) 00:1:

      !ocal via ir5.1

  • 8/16/2019 Virtual Switches

    13/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 1

    Interconnection -ethods

    !upported )ethods&

    'Internl, logicl tunnel inter$ce 3/#er onl#4

    ' wo e%ternl, ph#sicll# looped inter$ces 31 c+le4

    Layer 3 and Layer 2 Interfaces(A Logical View)

    outing +leinstance-name.inet.0

    -A +les

    de$ult(switch

    I5 Inter$ces

    -A +les

    instance-name

    hssis

    outing +leinet.0 3de$ult4

    /ogicl unnel E

    ?h#sicl /oop E

  • 8/16/2019 Virtual Switches

    14/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 19

     >ou )ust en+le tunneling on the ?F* o$ -G!eries routersuser@switch> show interfaces terse

    nterface Ad6in !in8 roto !ocal

    e6ote

    e-1%0%B u downe-1%0% u downe-1%1%0 u down

    *n+ling unnel !upport

    'edit)

    user@switch show chassisfc 1 /

      ic 0 /  tunnel-services /  5andwidth 1

      4

      4

    4

    user@switch> show interfaces terse

    nterface Ad6in !in8 roto !ocale6ote

    e-1%0%B u down

    e-1%0% u downr-1%0%10 u u

    i-1%0%10 u u

    lt-1%0%10 u u6t-1%0%10 u u

    d-1%0%10 u ue-1%0%10 u u

    vt-1%0%10 u u

    e-1%1%0 u down

  • 8/16/2019 Virtual Switches

    15/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 1:

    ongure nd ssign the logicl tunnel inter$cesto the ppropritevirtul routers

    /#er /ogicl unnel Inter$ceongurtion

    'edit)

    user@switch show interfaces lt-1/0/10

    unit 0 /  encasulation vlan

      vlan-id 100

      eer-unit 1  fa6il inet /  address 1$2.22.10.1%0

      4

    4unit 1 /  encasulation vlan

      vlan-id 100

      eer-unit 0  fa6il inet /  address 1$2.22.10.2%0

    hssis

    lt(170710.0

    lt(170710.1

    'edit)user@switch show routing-instances vr1

    instance-te virtual-routerinterface lt-1%0%10.1

    interface e-1%1%*.0

    user@switch> ping routing-instance vr1 172.22.10.1

    1$2.22.10.1 (1$2.22.10.1?: *3 data 5tes

    3& 5tes fro6 1$2.22.10.1: ic67seC=0 ttl=3& ti6e=0.BB 6s3& 5tes fro6 1$2.22.10.1: ic67seC=1 ttl=3& ti6e=&.1 6s

    outing +leinet.0 3de$ult4

    outing +levr1.inet.0

  • 8/16/2019 Virtual Switches

    16/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 1;

    ongure nd ssign the ph#sicl inter$ces

    to the pproprite virtul switch

    /#er 2 ?h#sicl /oop

    'edit)

    user@switch show interfaces

    e-1%0%& /

      unit 0 /

      fa6il 5ride /

      interface-6ode trun8  vlan-id-list ' 100

    200 )

      4

      4

    4

    e-1%1%& /

      unit 0 /  fa6il 5ride /

      interface-6ode trun8

      vlan-id-list ' 100

    200 )

    -A +lesde$ult (switch

    -A +lesvirtual-sw-1

    hssis

    ge(17079.0 ge(17179.0

    'edit)

    user@switch show routing-instances

    virtual-sw-1 /

      instance-te virtual-switch

      …

      interface e-1%1%&.0

      5ride-do6ains /  vlan7100 /

      vlan-id 100

      4

      vlan7200 /

      vlan-id 200

      …

  • 8/16/2019 Virtual Switches

    17/18

    © 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net  | 1<

    Dse the show bridge domain co))nd to

    veri$# settings

    Veri$# !witch !ettings

    -A +lesde$ult (switch

    -A +lesvirtual-sw-1

    hssis

    ge(17079.0 ge(17179.0

    user@switch> show bridge domain

    outin instance #ride do6ain

    default-switch vlan7100 100

    e-1%0%&.0default-switch vlan7200 200

    e-1%0%&.0

    virtual-sw-1 vlan7100 100e-1%1%&.0

    virtual-sw-1 vlan7200 200

    e-1%1%&.0

  • 8/16/2019 Virtual Switches

    18/18