• 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.

Giả lập Switch Layer 3 trên GNS3

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

  • Giả lập Switch Layer 3 trên GNS3

    Mình có dùng con c3725 với ios là c3725-adventerprisek9-mz.124-15.T5.bin để giả lập SW layer 3

    Đã chia VLAN và gắn port
    VLAN Name Status Ports
    ---- -------------------------------- --------- -------------------------------
    1 default active Fa1/0, Fa1/3, Fa1/4, Fa1/5
    Fa1/6, Fa1/7, Fa1/8, Fa1/9
    Fa1/10, Fa1/11, Fa1/12, Fa1/13
    Fa1/14, Fa1/15
    10 net10 active Fa1/1
    20 net20 active Fa1/2



    Đã gán ip cho Vlan
    interface Vlan1
    no ip address
    shutdown
    !
    interface Vlan10
    ip address 192.168.10.1 255.255.255.0
    !
    interface Vlan20
    ip address 192.168.20.1 255.255.255.0



    con c3725 này ngoài f0/0 và f0/1 còn có f1/0-15.
    Hiện mình ko thể ping được 192.168.10.1 và 192.168.10.1, dù đã dùng ip routing.
    sh ip route cũng ko thấy 2 mạng này.
    Có ai biết cách khắc phục giúp mình với
    Attached Files

  • #2
    Bạn tạo vlan , access vlan đó vào trong cổng, rồi tạo interface vlan và gán địa chỉ IP như thế là sẽ ping được ok bạn ạ.

    Comment


    • #3
      Mình cũng nghĩ thế mà sao ko ping dược.
      Lúc sh ip int b thì mấy cái cổng f1/1 và f1/2 gắn vào vlan ko thấy có ip

      Comment


      • #4
        ip là địa chỉ của interface vlan, ko phải của interface vật lý. bạn cho mình xem output của show vlan, show run nhé. đồng thời cho thêm mấy cái cấu hình ip của client.
        Last edited by Cuong_nv; 11-08-2012, 02:34 PM.

        Comment


        • #5
          Ở trên mình đã sh vlan rồi, giờ mình sh run cho bạn luôn đây

          SW_L3#sh run
          Building configuration...


          Current configuration : 1617 bytes
          !
          version 12.4
          service timestamps debug datetime msec
          service timestamps log datetime msec
          no service password-encryption
          !
          hostname SW_L3
          !
          boot-start-marker
          boot-end-marker
          !
          !
          no aaa new-model
          memory-size iomem 5
          ip cef
          !
          !
          !
          !
          no ip domain lookup
          ip domain name lab.local
          ip auth-proxy max-nodata-conns 3
          ip admission max-nodata-conns 3
          !
          multilink bundle-name authenticated
          !
          !
          !
          !
          !
          archive
          log config
          hidekeys
          !
          !
          !
          vlan internal allocation policy ascending
          !
          !
          !
          !
          !
          interface FastEthernet0/0
          ip address 172.16.0.1 255.255.0.0
          duplex auto
          speed auto
          !
          interface FastEthernet0/1
          no ip address
          shutdown
          duplex auto
          speed auto
          !
          interface FastEthernet1/0
          !
          interface FastEthernet1/1
          !
          interface FastEthernet1/2
          !
          interface FastEthernet1/3
          !
          interface FastEthernet1/4
          !
          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 Vlan1
          no ip address
          shutdown
          !
          interface Vlan10
          ip address 192.168.10.1 255.255.255.0
          !
          interface Vlan20
          ip address 192.168.20.1 255.255.255.0
          !
          ip forward-protocol nd
          !
          !
          no ip http server
          no ip http secure-server
          !
          !
          !
          control-plane
          !
          !
          !
          line con 0
          exec-timeout 0 0
          privilege level 15
          logging synchronous
          line aux 0
          exec-timeout 0 0
          privilege level 15
          logging synchronous
          line vty 0 4
          login
          !
          !
          end

          Comment


          • #6
            bạn chưa bật chức năng routing của switch L3

            Comment


            • #7
              SW_L3(conf)# ip routing đúng ko.
              Mình có rồi, nhưng ko thấy khi sh run
              no aaa new-model
              memory-size iomem 5
              ip cef
              Còn nếu no ip routing thì nó sẽ có thêm
              no aaa new-model
              memory-size iomem 5
              no ip routing
              no ip cef

              Nhưng mà dù có ip routing thì
              sh ip route ko thấy mạng của 2 vlan

              Comment


              • #8
                có thể là do GNS3, bạn tham khảo link này xem sao http://peenkcity.blogspot.com/2012/0...g-on-gns3.html

                Comment


                • #9
                  Bạn gắn pc vào vlan rồi thế ip default của pc bạn có chỉ về vlan k? kiểm tra lại thử xem

                  Comment


                  • #10
                    Bạn cần tạo vlan và gán các interface vật lý vào vlan.

                    Comment

                    Working...
                    X