[Juniper] Cấu hình Vlan routing trên switch Juniper

Thảo luận trong 'Tổng hợp' bắt đầu bởi toanle, 17/9/21.

  1. toanle

    toanle Member

    Bài viết này sẽ hướng dẫn các bạn cấu hình Vlan routing trên thiết bị switch Juniper theo mô hình ví dụ phía dưới.

    [​IMG]

    1.Tạo Vlan bằng cách gán tên và VLAN ID :


    set vlans vlan-name vlan-id vlan-id


    [edit]
    user@switch# set vlans v10 vlan-id 10
    user@switch# set vlans v20 vlan-id 20
    user@switch#commit



    2. Gán interface cho Vlan :


    set interfaces interface-name unit logical-unit-number family ethernet-switching vlan members vlan-name


    [edit]
    user@switch# set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members v10
    user@switch# set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan members v10
    user@switch# set interfaces xe-0/0/3 unit 0 family ethernet-switching vlan members v20
    user@switch# set interfaces xe-0/0/4 unit 0 family ethernet-switching vlan members v20
    user@switch#commit


    - Kiểm tra lại cấu hình bằng lệnh ”show vlans brief”.

    [​IMG]


    3. Tạo logical Layer 3 IRB interface :


    set interfaces irb unit logical-unit-number family inet address inet-address

    [edit]
    user@switch# set interfaces irb unit 10 family inet address 192.168.1.1/24
    user@switch# set interfaces irb unit 20 family inet address 192.168.2.1/24
    user@switch#commit


    - Kiểm tra lại cấu hình bằng lệnh “show interfaces terse”.

    [​IMG]


    4.Liên kết Vlan với logical Layer 3 IRB interface :


    set vlans vlan-name l3-interface irb.logical-interface-number

    [edit]
    user@switch# set vlans v10 l3-interface irb.10
    user@switch# set vlans v20 l3-interface irb.20
    user@switch#commit


    [​IMG]


    5.Kiểm tra kết nối đến các Host :

    [​IMG]

    !!! Cám ơn các bạn đã theo dõi bài viết !!!
     

trang này