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

Kích hoạt IPv6 trên Cisco Catalyst 3560 Switch

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

  • Kích hoạt IPv6 trên Cisco Catalyst 3560 Switch

    Nếu bạn đã thử cấu hình IPv6 trên một switch Cisco 3560, bạn có thể thấy mặc định các lệnh IPv6 là không có sẵn. Bài viết này sẽ hướng dẫn cách thức kích hoạt chức năng định tuyến IPv6 trên switch 3560.
    Các switch Cisco 3560 có một tính năng gọi là Switch Database Management (SDM) template. Có những template khác nhau có thể thay đổi việc phân bổ tài nguyên hệ thống để hổ trợ các tính năng khác nhau tốt hơn. Điều nay có nghĩa là gì? Theo mặc định, một Switch cỡ nhỏ được xây dựng để hỗ trợ cho 8 interface routed và 1024 VLAN. Nó thường không được dùng để định tuyến OSPFv3 và BGP (mặc dù nó vẫn có thể làm được).
    Để hiển thị các thiết lập hiện tại của SDM bạn sử dụng lệnh show sdm prefer:
    S1# show sdm prefer
    The current template is “desktop default” template.
    The selected template optimizes the resources in
    the switch to support this level of features for
    8 routed interfaces and 1024 VLANs.
    number of unicast mac addresses: 6K
    number of IPv4 IGMP groups + multicast routes: 1K
    number of IPv4 unicast routes: 8K
    number of directly-connected IPv4 hosts: 6K
    number of indirect IPv4 routes: 2K
    number of IPv4 policy based routing aces: 0
    number of IPv4/MAC qos aces: 0.75K
    number of IPv4/MAC security aces: 1K


    Để hiển thị các template SDM sẵn có chúng ta sẽ vào chế độ cấu hình toàn cục và gõ lệnh sdm prefer ?. Lúc này chúng ta sẽ nhìn thấy một trong các template được hỗ trợ là dual stack ipv4/ipv6

    S1(config)#sdm prefer ?
    access Access bias
    default Default bias
    dual-ipv4-and-ipv6 Support both IPv4 and IPv6
    ipe IPe bias
    routing Unicast bias
    vlan VLAN bias


    Nếu bạn thử cấu hình IPv6 trên interface mà không kích hoạt đúng SDM, bạn sẽ nhận được thông báo sau:

    S1(config-if)#ipv6 ?
    % Unrecognized command


    Để kích hoạt tính năng IPv6 trên Cisco Switch 3560, bạn chỉ cần thay đổi template SDM và reload lại Switch. Khi bạn gõ lệnh sdm prefer dual-ipv4-and-ipv6 ? sẽ xuất hiện 3 tùy chọn phụ:

    S1(config)#sdm prefer dual-ipv4-and-ipv6 ?
    default Default bias
    routing Unicast bias
    vlan VLAN bias


    Bạn có thể quyết định cung cấp thêm tài nguyên cho routing hoặc VLAN khi kích hoạt IPv6. Ở đây tôi sẽ chọn thiên về routing.

    S1(config)#sdm prefer dual-ipv4-and-ipv6 routing
    Changes to the running SDM preferences have been stored, but cannot take effect
    until the next reload.
    Use ‘show sdm prefer’ to see what SDM preference is currently active.


    Sau khi reload, đây là kết quả của việc thay đổi template

    S1#show sdm prefer
    The current template is “desktop IPv4 and IPv6 routing” template.
    The selected template optimizes the resources in
    the switch to support this level of features for
    8 routed interfaces and 1024 VLANs.
    number of unicast mac addresses: 1.5K
    number of IPv4 IGMP groups + multicast routes: 1K
    number of IPv4 unicast routes: 2.75K
    number of directly-connected IPv4 hosts: 1.5K
    number of indirect IPv4 routes: 1.25K
    number of IPv6 multicast groups: 1.125k
    number of directly-connected IPv6 addresses: 1.5K
    number of indirect IPv6 unicast routes: 1.25K
    number of IPv4 policy based routing aces: 0.25K
    number of IPv4/MAC qos aces: 0.75K
    number of IPv4/MAC security aces: 0.5K
    number of IPv6 policy based routing aces: 0.25K
    number of IPv6 qos aces: 0.5K
    number of IPv6 security aces: 0.5K


    Sau khi kích hoạt xong IPv6 routing, bây giờ nếu bạn thử cấu hình IPv6 trên một interface, lệnh đã được hỗ trợ và hiển thị như sau:

    S1(config-if)#ipv6 address ?
    WORD General prefix name
    X:X:X:X::X IPv6 link-local address
    X:X:X:X::X/<0-128> IPv6 prefix
    autoconfig Obtain address using autoconfiguration
    S1(config-if)#ipv6 address dead:beef:cafe::1/64


    Cuối cùng, đừng quên bật IPv6 unicast-routing nếu bạn muốn gói tin IPv6 được chuyển tiếp.

    S1(config)#ipv6 unicast-routing


    Lưu ý: Tất cả các hiển thị dòng lệnh trên là từ Cisco Switch 3560 chạy IOS 12.2 (44) SE.

    Người biên soạn: Nguyễn Văn Hiền
    Liên kết tham khảo: http://blog.router-switch.com/2013/0...t-3560-switch/
    Cuộc sống có bao lâu mà hững hờ
Working...
X