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

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

  • IRB (Integrated Routing and Bridging) - Lab 2

    Ở lab 1, chúng ta đã cấu hình cơ bản tính năng IRB trên router. Trong bài lab này, chúng ta sẽ thực hiện một bài lab nâng cao hơn để nắm rõ hơn về IRB. Sơ đồ như sau:


    Chức năng IRB chỉ cấu hình trên các sub interface của R1 E0/0.20E0/0.30.

    Các lệnh cấu hình:

    Code:
    SW1(config)#[B]vlan 20[/B]
    SW1(config-vlan)#[B]name vlan20[/B]
    SW1(config-vlan)#[B]exit[/B]
    SW1(config)#[B]vlan 30[/B]
    SW1(config-vlan)[B]#name vlan30[/B]
    SW1(config-vlan)#[B]exit[/B]
    SW1(config)#[B]int e0/1[/B]
    SW1(config-if)#[B]switchport mode access[/B]
    SW1(config-if)#[B]switchport access vlan 20[/B]
    SW1(config-if)#[B]int e0/2[/B]
    SW1(config-if)#[B]switchport mode access[/B]
    SW1(config-if)#s[B]witchport access vlan 20[/B]
    SW1(config-if)#[B]int e0/3[/B]
    SW1(config-if)[B]#switchport mode access[/B]
    SW1(config-if)#[B]switchport access vlan 30[/B]
    SW1(config-if)[B]#exit[/B]
    SW1(config)#[B]int e0/0[/B]
    SW1(config-if)#[B]switchport trunk encapsulation dot1q[/B]
    SW1(config-if)#[B]switchport mode trunk[/B]
    SW1(config-if)#[B]exit[/B]
    Code:
    SW1#[B]show vlan brief[/B]
    
    VLAN       Name                             Status            Ports
    ---- -------------------------------- --------- -    ------------------------------
    1              default                            active    
    [B]20            vlan20                             active       Et0/1, Et0/2
    30            vlan30                             active        Et0/3[/B]
    1002      fddi-default                     act/unsup
    1003    token-ring-default            act/unsup
    1004     fddinet-default                 act/unsup
    1005      trnet-default                    act/unsup
    Code:
    R1(config)[B]#bridge irb[/B]
    R1(config)#[B]bridge 4 protocol ieee[/B]
    R1(config)#[B]bridge 4 route ip[/B]
    R1(config)#[B]int e0/0.20[/B]
    R1(config-subif)#[B]encapsulation dot1Q 20[/B]
    R1(config-subif)#[B]bridge-group 4[/B]
    R1(config-subif)#[B]int e0/0.30[/B]
    R1(config-subif)#[B]encapsulation dot1Q 30[/B]
    R1(config-subif)#[B]bridge-group 4[/B]
    R1(config-subif)#[B]exit[/B]
    R1(config)#[B]int e0/0[/B]
    R1(config-if)#[B]no shutdown[/B]
    R1(config-if)[B]#int bvi 4[/B]
    R1(config-if)#[B]ip add 10.0.1.1 255.255.255.0[/B]
    R1(config-if)#[B]exit[/B]
    Code:
    SW1#[B]show int trunk[/B]
    Port        Mode             Encapsulation        Status        Native vlan
    Et0/0       on                     802.1q                trunking      1
    
    Port        Vlans allowed on trunk
    Et0/0       1-4094
    
    Port        Vlans allowed and active in management domain
    Et0/0       1,20,30
    
    Port        Vlans in spanning tree forwarding state and not pruned
    Et0/0       1,20,30
    Code:
    SW1(config)#[B]int vlan 20[/B]
    SW1(config-if)#[B]ip add 10.0.0.20 255.255.255.0[/B]
    SW1(config-if)#[B]exit[/B]
    Code:
    R3(config)#[B]int e0/0[/B]
    R3(config-if)#i[B]p add 10.0.1.3 255.255.255.0[/B]
    R3(config-if)#[B]no shutdown[/B]
    R3(config-if)#[B]exit[/B]
    Code:
    R2(config)#[B]int e0/0[/B]
    R2(config-if)#[B]ip add 10.0.1.2 255.255.255.0[/B]
    R2(config-if)#[B]no shutdown[/B]
    R2(config-if)#[B]exit[/B]
    Code:
    R2#[B]ping 10.0.1.1[/B]
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 10.0.1.1, timeout is 2 seconds:
    *Oct 29 12:56:26.821: ether_vencap:(1975)
    .!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 2/2/3 ms
    Code:
    R2#[B]ping 10.0.1.3[/B]
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 10.0.1.3, timeout is 2 seconds:
    *Oct 29 12:56:34.852: ether_vencap:(1975)
    .!!!!
    Success rate is 80 percent (4/5), round-trip min/avg/max = 4/6/9 ms
    Code:
    R1#[B]show bridge[/B]
    Total of 300 station blocks, 296 free
    Codes: P - permanent, S - self
    
    Bridge Group 4:
    
        Address       Action   Interface       Age   RX count   TX count
    a284.eacc.2608   forward   Et0/0.20          1          2          0
    aabb.cc00.3000   forward   Et0/0.20          1          8          4
    aabb.cc00.4000   forward   Et0/0.30          1         12          9
    3e41.7b6e.69ce   forward   Et0/0.30          1          2          0
    Code:
    R1#[B]show int bvi 4[/B]
    BVI4 is up, line protocol is up
      Hardware is BVI, address is aabb.cc00.1000 (bia 0000.0000.0000)
      Internet address is 10.0.1.1/24
      MTU 1500 bytes, BW 10000 Kbit/sec, DLY 5000 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation ARPA, loopback not set
      Keepalive set (10 sec)
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input never, output never, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/0 (size/max)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 0 bits/sec, 0 packets/sec
         12 packets input, 936 bytes, 0 no buffer
         Received 0 broadcasts (0 IP multicasts)
         0 runts, 0 giants, 0 throttles
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
         6 packets output, 576 bytes, 0 underruns
         0 output errors, 0 collisions, 0 interface resets
         0 unknown protocol drops
         0 output buffer failures, 0 output buffers swapped out
    Code:
    R1#[B]show bridge 4 verbose[/B]
    Total of 300 station blocks, 296 free
    Codes: P - permanent, S - self
    
    BG Hash      Address      Action  Interface      VC    Age   RX count   TX count
     4 2E/0   a284.eacc.2608 forward  Et0/0.20        -      2          2          0
     4 30/0   aabb.cc00.3000 forward  Et0/0.20        -      0          9          4
     4 40/0   aabb.cc00.4000 forward  Et0/0.30        -      2         13         9
     4 A7/0   3e41.7b6e.69ce forward  Et0/0.30        -      2          2          0
    
    Flood ports (BG 4)           RX count    TX count
    Ethernet0/0.20                      2           2
    Ethernet0/0.30                      2           2
    Code:
    R1#[B]show arp[/B]
    Protocol  Address          Age (min)         Hardware Addr     Type        Interface
    Internet  10.0.1.1                -                   aabb.cc00.1000   [B]  ARPA         BVI4[/B]
    Internet  10.0.1.2                3                  aabb.cc00.4000     [B]ARPA         BVI4[/B]




    Last edited by Khoi Nguyen; 31-10-2019, 07:18 PM.
Working...
X