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.

Lab 15-3: Cấu hình Spase-mode tĩnh

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

  • Lab 15-3: Cấu hình Spase-mode tĩnh

    Lab 15-3: Cấu hình Spase-mode tĩnh

    Vẫn dùng sơ đồ trên, ta phải enable multicast trên toàn bộ router. Cấu hình địa chỉ RP tĩnh trên tất cả các router. Ở đây ta sẻ sử dụng R2 làm RP và sử dụng interface loopback 0 của R2 là địa chỉ của RP
    Lệnh router(config)# ip pim rp-address 192.168.4.1
    Cấu hình
    R1#
    !
    hostname R1
    !
    enable password cisco
    !
    no ip domain lookup
    ip host Host_1 192.168.3.2
    ip host R3 192.168.1.18
    ip host R4 192.168.1.14
    ip host R5 192.168.1.6
    ip host r2 192.168.1.22
    !
    interface Serial0/0
    ip address 192.168.1.1 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    clockrate 64000
    !
    interface FastEthernet0/1
    ip address 192.168.3.1 255.255.255.0
    ip pim sparse-mode
    no ip mroute-cache
    duplex auto
    speed auto
    !
    interface Serial0/1
    ip address 192.168.1.21 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    clockrate 64000
    !
    router ospf 1
    log-adjacency-changes
    network 0.0.0.0 255.255.255.255 area 0
    !
    ip classless
    no ip http server
    ip pim rp-address 192.168.4.1
    !
    End

    R2#
    !
    hostname R2
    !
    enable password cisco
    !
    no ip domain lookup
    !
    ip multicast-routing
    interface Loopback0
    ip address 192.168.4.1 255.255.255.255
    ip pim sparse-mode
    !
    interface Serial0/0
    ip address 192.168.1.17 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    no fair-queue
    clockrate 64000
    !
    interface Serial0/1
    ip address 192.168.1.22 255.255.255.252
    no ip mroute-cache
    ip pim sparse-mode
    !
    router ospf 1
    log-adjacency-changes
    network 0.0.0.0 255.255.255.255 area 0
    !
    ip classless
    ip http server
    ip pim rp-address 192.168.4.1
    !
    End

    R3
    !
    hostname R3
    !
    no ip domain lookup
    !
    ip multicast-routing
    !
    interface Ethernet0/0
    ip address 192.168.2.1 255.255.255.0
    ip pim sparse-mode
    no ip mroute-cache
    half-duplex
    !
    interface Serial0/0
    ip address 192.168.1.13 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    no fair-queue
    !
    interface Serial0/1
    ip address 192.168.1.18 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    !
    router ospf 1
    log-adjacency-changes
    network 0.0.0.0 255.255.255.255 area 0
    !
    ip http server
    ip classless
    !
    ip pim rp-address 192.168.4.1
    End

    R4
    !
    hostname R4
    !
    enable password cisco
    !
    ip multicast-routing
    interface Ethernet0/0
    ip address 192.168.1.5 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    half-duplex
    !
    interface Serial0/0
    ip address 192.168.1.2 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    no fair-queue
    interface Serial0/1
    ip address 192.168.1.14 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    clockrate 64000
    !
    router ospf 1
    log-adjacency-changes
    network 0.0.0.0 255.255.255.255 area 0
    !
    ip classless
    ip http server
    ip pim rp-address 192.168.4.1
    End

    R5
    !
    hostname R5
    !
    enable password cisco
    !
    ip subnet-zero
    !
    no ip domain lookup
    !
    ip multicast-routing
    !
    interface FastEthernet0/0
    ip address 192.168.1.6 255.255.255.252
    ip pim sparse-mode
    no ip mroute-cache
    duplex auto
    speed auto
    !
    interface FastEthernet0/1
    ip address 192.168.2.2 255.255.255.0
    ip pim sparse-mode
    no ip mroute-cache
    duplex auto
    speed auto
    !
    router ospf 1
    log-adjacency-changes
    network 0.0.0.0 255.255.255.255 area 0
    !
    ip classless
    ip http server
    ip pim rp-address 192.168.4.1
    !
    End

    Show ip mroute

    R1#show ip mroute
    IP Multicast Routing Table
    Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
    L - Local, P - Pruned, R - RP-bit set, F - Register flag,
    T - SPT-bit set, J - Join SPT, M - MSDP created entry,
    X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
    U - URD, I - Received Source Specific Host Report, s - SSM
    Outgoing interface flags: H - Hardware switched
    Timers: Uptime/Expires
    Interface state: Interface, Next-Hop or VCD, State/Mode

    (*, 224.0.1.40), 00:54:11/00:00:00, RP 192.168.4.1, flags: SJCL
    Incoming interface: Serial0/1, RPF nbr 192.168.1.22
    Outgoing interface list:
    Serial0/0, Forward/Sparse, 00:53:52/00:00:00
    FastEthernet0/1, Forward/Dense, 00:54:11/00:00:00

    (*, 228.0.0.1), 00:53:48/00:02:59, RP 192.168.4.1, flags: SJCF
    Incoming interface: Serial0/1, RPF nbr 192.168.1.22
    Outgoing interface list:
    FastEthernet0/1, Forward/Dense, 00:53:48/00:00:00
    Serial0/0, Forward/Sparse, 00:53:48/00:00:00

    (192.168.3.2, 228.0.0.1), 00:00:15/00:03:15, flags: CFT
    Incoming interface: FastEthernet0/1, RPF nbr 0.0.0.0
    Outgoing interface list:
    Serial0/0, Forward/Sparse, 00:00:16/00:03:13

    R2#show ip mroute
    IP Multicast Routing Table
    Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
    L - Local, P - Pruned, R - RP-bit set, F - Register flag,
    T - SPT-bit set, J - Join SPT, M - MSDP created entry,
    X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
    U - URD, I - Received Source Specific Host Report, s - SSM
    Outgoing interface flags: H - Hardware switched
    Timers: Uptime/Expires
    Interface state: Interface, Next-Hop or VCD, State/Mode

    (*, 224.0.1.40), 00:54:22/00:00:00, RP 192.168.4.1, flags: SJCL
    Incoming interface: Null, RPF nbr 0.0.0.0
    Outgoing interface list:
    Serial0/0, Forward/Sparse, 00:54:18/00:03:24
    Serial0/1, Forward/Sparse, 00:54:22/00:02:49

    (*, 228.0.0.1), 00:35:45/00:03:21, RP 192.168.4.1, flags: S
    Incoming interface: Null, RPF nbr 0.0.0.0
    Outgoing interface list:
    Serial0/1, Forward/Sparse, 00:35:45/00:02:50
    Serial0/0, Forward/Sparse, 00:35:45/00:03:21

    (192.168.3.2, 228.0.0.1), 00:00:43/00:02:23, flags: PT
    Incoming interface: Serial0/1, RPF nbr 192.168.1.21
    Outgoing interface list: Null


    R3# show ip mroute
    IP Multicast Routing Table
    Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
    L - Local, P - Pruned, R - RP-bit set, F - Register flag,
    T - SPT-bit set, J - Join SPT, M - MSDP created entry,
    X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
    U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
    Y - Joined MDT-data group, y - Sending to MDT-data group
    Outgoing interface flags: H - Hardware switched
    Timers: Uptime/Expires
    Interface state: Interface, Next-Hop or VCD, State/Mode

    (*, 228.0.0.1), 00:53:39/stopped, RP 192.168.4.1, flags: SJC
    Incoming interface: Serial0/1, RPF nbr 192.168.1.17
    Outgoing interface list:
    Ethernet0/0, Forward/Sparse, 00:53:39/00:02:34
    Serial0/0, Forward/Sparse, 00:53:39/00:00:00

    (192.168.3.2, 228.0.0.1), 00:00:57/00:02:48, flags: JT
    Incoming interface: Ethernet0/0, RPF nbr 192.168.2.2
    Outgoing interface list:
    Serial0/0, Forward/Sparse, 00:00:57/00:02:02

    (*, 224.0.1.40), 00:54:33/00:02:24, RP 192.168.4.1, flags: SJCL
    Incoming interface: Serial0/1, RPF nbr 192.168.1.17
    Outgoing interface list:
    Ethernet0/0, Forward/Sparse, 00:54:33/00:02:34
    Serial0/0, Forward/Sparse, 00:54:31/00:00:00

    R4#show ip mroute
    IP Multicast Routing Table
    Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
    L - Local, P - Pruned, R - RP-bit set, F - Register flag,
    T - SPT-bit set, J - Join SPT, M - MSDP created entry,
    X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
    U - URD, I - Received Source Specific Host Report, s - SSM
    Outgoing interface flags: H - Hardware switched
    Timers: Uptime/Expires
    Interface state: Interface, Next-Hop or VCD, State/Mode

    (*, 224.0.1.40), 00:54:57/00:00:00, RP 192.168.4.1, flags: SJCL
    Incoming interface: Ethernet0/0, RPF nbr 192.168.1.6
    Outgoing interface list:
    Serial0/1, Forward/Sparse, 00:54:54/00:00:00
    Serial0/0, Forward/Sparse, 00:54:55/00:00:00

    (*, 228.0.0.1), 00:01:18/00:02:59, RP 192.168.4.1, flags: SP
    Incoming interface: Ethernet0/0, RPF nbr 192.168.1.6
    Outgoing interface list: Null

    (192.168.3.2, 228.0.0.1), 00:01:18/00:02:51, flags: T
    Incoming interface: Serial0/0, RPF nbr 192.168.1.1
    Outgoing interface list:
    Ethernet0/0, Forward/Sparse, 00:01:18/00:03:14

    R5#show ip mroute
    IP Multicast Routing Table
    Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
    L - Local, P - Pruned, R - RP-bit set, F - Register flag,
    T - SPT-bit set, J - Join SPT, M - MSDP created entry,
    X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
    U - URD, I - Received Source Specific Host Report, s - SSM
    Outgoing interface flags: H - Hardware switched
    Timers: Uptime/Expires
    Interface state: Interface, Next-Hop or VCD, State/Mode

    (*, 224.0.1.40), 00:55:53/00:00:00, RP 192.168.4.1, flags: SJCL
    Incoming interface: FastEthernet0/1, RPF nbr 192.168.2.1
    Outgoing interface list:
    FastEthernet0/0, Forward/Sparse, 00:55:53/00:02:41

    (*, 228.0.0.1), 00:55:19/00:02:59, RP 192.168.4.1, flags: SJC
    Incoming interface: FastEthernet0/1, RPF nbr 192.168.2.1
    Outgoing interface list:
    FastEthernet0/0, Forward/Sparse, 00:55:15/00:00:00

    (192.168.3.2, 228.0.0.1), 00:01:37/00:01:22, flags: CT
    Incoming interface: FastEthernet0/0, RPF nbr 192.168.1.5
    Outgoing interface list:
    FastEthernet0/1, Forward/Sparse, 00:01:37/00:03:26

    Kiểm tra

    Sử dụng lênh show ip pim rp
    R3#show ip pim rp
    Group: 228.0.0.1, RP: 192.168.4.1, uptime 00:13:50, expires never
    Group: 224.0.1.40, RP: 192.168.4.1, uptime 00:13:50, expires never

    Ở R5 tương tụ
    Sử dụng lênh Show ip pim rp map

    R5#show ip pim rp mapping
    PIM Group-to-RP Mappings

    Group(s) 224.0.1.39/32
    RP 192.168.4.1 (?), v1
    Info source: local, elected via Auto-RP
    Uptime: 00:11:28, expires: never
    Group(s) 224.0.1.40/32
    RP 192.168.4.1 (?), v1
    Info source: local, elected via Auto-RP
    Uptime: 00:11:28, expires: never
    Group(s): 224.0.0.0/4, Static
    RP: 192.168.4.1 (?)

    Ở R3 tương tự
    Ta ping từ Host1 đến Host2:kiểm tra trên R3 và R5: debug ip mpacket

    R3#
    *Mar 1 00:39:48.723: IP(0): s=192.168.3.2 (Ethernet0/0) d=228.0.0.1 id=432, prot=1, len=114(100), not RPF interface
    *Mar 1 00:39:48.735: IP(0): s=192.168.3.2 (Serial0/1) d=228.0.0.1 (Ethernet0/0) id=432, prot=1, len=100(100),
    mforward
    *Mar 1 00:39:48.735: IP(0): s=192.168.3.2 (Serial0/1) d=228.0.0.1 (Serial0/0) id=432, prot=1, len=100(100), mforward
    *Mar 1 00:39:50.726: IP(0): s=192.168.3.2 (Ethernet0/0) d=228.0.0.1 id=433, prot=1, len=114(100), mroute olist null

    R5#
    *Mar 1 00:41:16.447: IP: s=192.168.3.2 (FastEthernet0/0) d=228.0.0.1 (FastEthernet0/1) len 114, mforward
    *Mar 1 00:41:18.451: IP: s=192.168.3.2 (FastEthernet0/0) d=228.0.0.1 (FastEthernet0/1) len 114, mforward
    *Mar 1 00:41:20.455: IP: s=192.168.3.2 (FastEthernet0/0) d=228.0.0.1 (FastEthernet0/1) len 114, mforward
    *Mar 1 00:41:22.459: IP: s=192.168.3.2 (FastEthernet0/0) d=228.0.0.1 (FastEthernet0/1) len 114, mforward
    Email : vnpro@vnpro.org
    ---------------------------------------------------------------------------------------------------------------
    Trung Tâm Tin Học VnPro
    149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
    Tel : (08) 35124257 (5 lines)
    Fax: (08) 35124314

    Home page: http://www.vnpro.vn
    Support Forum: http://www.vnpro.org
    - Chuyên đào tạo quản trị mạng và hạ tầng Internet
    - Phát hành sách chuyên môn
    - Tư vấn và tuyển dụng nhân sự IT
    - Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

    Network channel: http://www.dancisco.com
    Blog: http://www.vnpro.org/blog

  • #2
    sơ đồ bài lab ko có à đại ca. Nối linh tinh có được ko :D

    Comment

    Working...
    X