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

IRB (Integrated Routing and Bridging) - Lab 1

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

  • IRB (Integrated Routing and Bridging) - Lab 1

    phần 1, chúng ta đã sơ lược qua về khái niệm cũng như những chức năng cơ bản mà IRB làm được. Trong phần này, chúng ta sẽ tiếp tục thực hiện bài lab IRB cơ bản để hiểu rõ hơn về những gì IRB hỗ trợ trên các router.


    Trong bài lab này, các PC ở phía R1 sẽ dùng địa chỉ ảo BVI 10.10.10.1 làm gateway, chúng ta không cần đặt ip cho các cổng vật lý của R1 à interface e0/0 và e0/1 của R1 sẽ được cấu hình trong cùng một bridge group. Lúc này cả hai cổng này như là các cổng của bridge.
    Các bước tiến hành
    Chúng ta tiến hành cấu hình như sau:

    //Bật tính năng IRB
    Code:
    R1(config)#[B]bridge irb[/B]
    R1(config)#[B]bridge 1 protocol ieee[/B]
    R1(config)#[B]bridge 1 route ip[/B]
    // trên các cổng vật lý đấu với các PC ( hoặc gọi tổng quát là subnet lan nội bộ) chúng ta cấu hình bật trên các interface đó tính năng bridge và gán vào group 1.
    Code:
    R1(config)#[B]int e0/1[/B]
    R1(config-if)#[B]bridge-group 1[/B]
    R1(config)#[B]int e0/0[/B]
    R1(config-if)#[B]bridge-group 1[/B]
    Cổng E0/2 cấu hình như routed interface
    Code:
    R1(config)#[B]int e0/2 [/B]
    R1(config-if)#[B]ip add 10.10.20.1 255.255.255.0[/B]
    R1(config-if)#[B]no shut[/B]
    Code:
    R1(config)#[B]inter BVI1[/B]
    R1(config-if)#[B]ip add 10.10.10.1 255.255.255.0[/B]
    R1(config-if)#[B]no shut[/B]
    //Tiến hành static route sang R2
    Code:
    R1(config)#[B]ip route 10.10.30.0 255.255.255.0 10.10.20.2[/B]
    Trên R2, ta cấu hình ip cho các cổng và static route sang R1 như khi cấu hình router thông thường.

    Dùng lệnh show interface e0/0 irb để kiểm tra cấu hình xem port ta chuyển thành bật tính năng bridge đã thành công chưa.

    Code:
    R1#[B]show interface e0/0 irb[/B]
    Ethernet0/0
     Routed protocols on Ethernet0/0:
      ip
     Bridged protocols on Ethernet0/0:
      clns       decnet     ip         ipv6
     Software MAC address filter on Ethernet0/0
      Hash Len    Address      Matches  Act      Type
      0x00:  0[B] ffff.ffff.ffff [/B]        0 RCV[B] Physical broadcast[/B]
      0x2A:  0 0900.2b01.0001         0 RCV DEC spanning tree
      0xC0:  0 0100.0ccc.cccc         0 RCV CDP
      0xC2:  0 0180.c200.0000         0 RCV IEEE spanning tree
      0xC2:  1 0180.c200.0000         0 RCV IBM spanning tree
      0xC2:  2 0100.0ccd.cdce         0 RCV VLAN Bridge STP
      0xCC:  0 aabb.cc00.1000         0 RCV Interface MAC address
      0xCC:  1 aabb.cc00.1000         0 RCV Bridge-group Virtual Interface
    vPC5 ta cũng có thể ping vPC3 và vPC4. Ngoài ra, dùng wireshark bắt gói trên 1 port bất kỳ ta bật tính năng bridging, có thể thấy trên port đó của R1 sẽ chạy giao thức ARP (điển hình cho broadcast) mà 1 port router thông thường thì chặn broadcast. Chúng ta thử dùng lệnh show spanning-tree. Dựa vào thông tin spanning tree, ta có thể thấy các port bật tính năng bridge đã hoạt động như mong muốn.

    Code:
    R1#show spanning-tree
    
     Bridge group 1 is executing the ieee compatible Spanning Tree protocol
      Bridge Identifier has priority 32768, address aabb.cc00.1000
      Configured hello time 2, max age 20, forward delay 15
      We are the root of the spanning tree
      Topology change flag not set, detected flag not set
      Number of topology changes 1 last change occurred 00:03:17 ago
              from Ethernet0/0
      Times:  hold 1, topology change 35, notification 2
              hello 2, max age 20, forward delay 15
      Timers: hello 0, topology change 0, notification 0, aging 300
    
     Port 3 (Ethernet0/0) of Bridge group 1 is forwarding
       Port path cost 100, Port priority 128, Port Identifier 128.3.
       Designated root has priority 32768, address aabb.cc00.1000
       Designated bridge has priority 32768, address aabb.cc00.1000
       Designated port id is 128.3, designated path cost 0
       Timers: message age 0, forward delay 0, hold 0
       Number of transitions to forwarding state: 1
       BPDU: sent 103, received 0
    
     Port 4 (Ethernet0/1) of Bridge group 1 is forwarding
       Port path cost 100, Port priority 128, Port Identifier 128.4.
       Designated root has priority 32768, address aabb.cc00.1000
       Designated bridge has priority 32768, address aabb.cc00.1000
       Designated port id is 128.4, designated path cost 0
       Timers: message age 0, forward delay 0, hold 0
       Number of transitions to forwarding state: 1
       BPDU: sent 103, received 0
    Last edited by Khoi Nguyen; 30-10-2019, 02:04 PM.
Working...
X