• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Help intervlan with Juniper router and cisco switch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help intervlan with Juniper router and cisco switch

    Mô hình của em đơn giản như sau:
    +1 Juniper Olive cài Junos 9.6R.13 cài trên Vmware (làm router on the stick)
    +1 router giả lập switch 16 công fastethernet (dùng GNS3 )
    em có thử kết nối theo sơ đô sau
    +2 router giả lập làm host

    mô hình như sauu



    trên interface look back của microsoft em cấu hình nhận tương ứng cả 2 địa chỉ ip của các vlan tạo trên switch

    trên interface em0 của juniper câu hình enable vlan-tagging và join các subinterface tương ứng vào từng vlan giông các vlan tạo trên switch của cisco cùng với địa chỉ ip của từng vlan tương ứng

    interface nối switch với cloud em cấu hình trunk


    nhưng ping mãi không được,thậm chí là ping từ router juniper xuông 1 host trong cùng 1 vlan

    chi tiết cấu hình như sau

    Router juniper
    Code:
    root# run show configuration 
    ## Last commit: 2010-04-10 22:26:53 UTC by root
    version 9.2R2.15;
    system {
        root-authentication {
            encrypted-password "$1$EmSNglPb$lW4eBxd6nAE00Yw9bH8xG1"; ## SECRET-DATA
        }
        login {
            user tomaditocxu {
                uid 2000;
                class super-user;
            }
        }
        syslog {
            user * {
                any emergency;
            }
            file messages {
                any notice;
                authorization info;
            }
            file interactive-commands {
                interactive-commands any;
            }
        }               
    }
    interfaces {
        em0 {
            vlan-tagging;
            unit 0 {
                vlan-id 2;
                family inet {
                    address 192.168.2.1/24;
                }
            }
            unit 1 {
                vlan-id 3;
                family inet {
                    address 192.168.3.1/24;
                }
            }
        }
    Switch
    Code:
    SW#sho run
    Building configuration...
    
    Current configuration : 1309 bytes
    !
    version 12.4
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname SW
    !
    boot-start-marker
    boot-end-marker
    !
    !
    no aaa new-model
    !
    resource policy
    !
    memory-size iomem 5
    !
    !
    ip cef
    !
    !         
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    ! 
    !
    !
    !
    !
    interface Ethernet0/0
     no ip address
     shutdown
     half-duplex
    !
    interface Ethernet0/1
     no ip address
     shutdown
     half-duplex
    !
    interface Ethernet0/2
     no ip address
     shutdown
     half-duplex
    !
    interface Ethernet0/3
     no ip address
     shutdown
     half-duplex
    !
    interface FastEthernet1/0
    !
    interface FastEthernet1/1
     switchport mode trunk
    !         
    interface FastEthernet1/2
    !
    interface FastEthernet1/3
     switchport access vlan 2
    !
    interface FastEthernet1/4
     switchport access vlan 3
    !
    interface FastEthernet1/5
    !
    interface FastEthernet1/6
    !
    interface FastEthernet1/7
    !
    interface FastEthernet1/8
    !
    interface FastEthernet1/9
    !
    interface FastEthernet1/10
    !
    interface FastEthernet1/11
    !
    interface FastEthernet1/12
    !
    interface FastEthernet1/13
    !
    interface FastEthernet1/14
    !
    interface FastEthernet1/15
    !
    interface FastEthernet2/0
     no ip address
     shutdown
     duplex auto
     speed auto
    !
    interface Vlan1
     no ip address
    !
    ip http server
    no ip http secure-server
    !
    !
    !
    !
    !         
    !
    control-plane
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    line con 0
    line aux 0
    line vty 0 4
    !
    !
    interface microsoft loopback

    Code:
    Physical Address: 02-00-4C-4F-4F-50
    IP Address: 192.168.3.5
    Subnet Mask: 255.255.255.0
    IP Address: 192.168.2.5
    Subnet Mask: 255.255.255.0
    Default Gateway: 
    DNS Server: 
    WINS Server:
    2 router giả lập host cấu hình đia chỉ ip trên các interface fasterthenet và default route đến gateway là router juniper

    Bạn nào làm được rồi giúp mình với
    Last edited by tomaditocxu; 11-04-2010, 01:12 AM.

  • #2
    chán quá,2 ngày rồi mà không có ai reply ,ai giúp em với hu hu

    Comment


    • #3
      Hi , trên Router Juniper đổi lệnh vlan-tagging thành flexible-vlan-tagging

      Comment


      • #4
        Originally posted by November02 View Post
        Hi , trên Router Juniper đổi lệnh vlan-tagging thành flexible-vlan-tagging
        Bạn ơi mình giả lập Juniper dùng Junos 9.6R1.13 nó không có lệnh flexible-vlan-tagging

        nó chỉ hỗ trợ mỗi lệnh như sau

        Code:
        tomaditocxu# set interfaces em0 ?
        Possible completions:
          accounting-profile   Accounting profile name
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          description          Text description of interface
          disable              Disable this interface
          encapsulation        Physical link-layer encapsulation
          gratuitous-arp-reply  Enable gratuitous ARP reply
        > hold-time            Hold time for link up and link down
          link-mode            Link operational mode
          mac                  Hardware MAC address
          mtu                  Maximum transmit packet size (256..9192)
          no-gratuitous-arp-reply  Don't enable gratuitous ARP reply
          no-gratuitous-arp-request  Ignore gratuitous ARP request
          no-traps             Don't enable SNMP notifications on state changes
        > traceoptions         Interface trace options
          traps                Enable SNMP notifications on state changes
        > unit                 Logical interface
          vlan-tagging         802.1q VLAN tagging support

        Comment


        • #5
          mình đã đọc cấu hình của bạn rồi và có một số ý kiến thế này bạn xem lại nhé!

          đoạn cấu hình interVlan trên con Juniper thế này là khá đúng quy chuẩn... tớ đọc chay thì thấy là con router Juniper đã cho route qua lại giữa Vlan 2 (.2.0/24) với Vlan (.3.0/24)

          nhưng theo tớ nó chỉ quy chuẩn với router Juniper connect với 1 sw juniper khác

          trong trường hợp này thì trên con juniper nên cấu hình như sau:

          interfaces {
          em0 {
          encapsulation flexible-ethernet-services;
          vlan-tagging;
          unit 0 {
          vlan-id 2;
          encapsulation vlan-bridge;
          family inet {
          address 192.168.2.1/24;
          }
          }
          unit 1 {
          vlan-id 3;
          encapsulation vlan-bridge;
          family inet {
          address 192.168.3.1/24;
          }
          }

          Còn trên con switch cisco thì cái interface trunk thì thêm câu:
          switchport
          trunk encapsulation dot1q

          thử xem có được không nhé!

          thêm nữa bản Junos của bạn không phải 9.6 mà mới chỉ là
          9.2

          Comment

          Working...
          X