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.

Cấu hình Frame Relay chia SuB Interface trong Dynamip !!!

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

  • Cấu hình Frame Relay chia SuB Interface trong Dynamip !!!

    Mô hình HUB & SPOKE :



    File .NET :


    ghostios = True
    autostart = False

    [localhost]

    [[2691]]
    image = C:\Program Files\Dynamips\images\C2691-AD.BIN
    ram = 128


    [[ROUTER SG]]
    model = 2691
    mmap = True
    s1/0 = F1 1
    idlepc = 0x60ab2a14


    [[ROUTER HN]]
    model = 2691
    mmap = True
    s1/0 = F1 2
    idlepc = 0x60aadd74


    [[ROUTER CT]]
    model = 2691
    mmap = True
    s1/0 = F1 3
    idlepc = 0x60aadf68


    [[FRSW F1]]

    1:100 = 2:200
    1:300 = 3:400

    1. Cấu hình Hub Router sử dụng 1 Sub Interface Multipoint để giao tiếp với các Spoke Router :

    Đặt IP :

    SG(config)#int f0/0
    SG(config-if)#ip add 192.168.1.254 255.255.255.0
    SG(config-if)#no shut
    SG(config-if)#exi


    HN(config)#int f0/0
    HN(config-if)#ip add 192.168.2.254 255.255.255.0
    HN(config-if)#no shut
    HN(config-if)#exi
    HN(config)#



    CT(config)#int f0/0
    CT(config-if)#ip add 192.168.3.254 255.255.255.0
    CT(config-if)#no shut
    CT(config-if)#exi
    CT(config)#


    Cấu hình Frame Relay cho các Spoke Router :



    HN(config)#int s1/0
    HN(config-if)#encap fram
    HN(config-if)#encap frame-relay
    HN(config-if)#fram
    HN(config-if)#frame-relay lmi-type ansi
    HN(config-if)#ip add 200.200.200.2 255.255.255.248
    HN(config-if)#fram
    HN(config-if)#frame-relay map ip 200.200.200.1 200 broa
    HN(config-if)#frame-relay map ip 200.200.200.1 200 broadcast
    HN(config-if)#fram
    HN(config-if)#frame-relay map ip 200.200.200.3 200 broa
    HN(config-if)#frame-relay map ip 200.200.200.3 200 broadcast
    HN(config-if)#fram
    HN(config-if)#frame-relay map ip 200.200.200.2 200 broa
    HN(config-if)#frame-relay map ip 200.200.200.2 200 broadcast
    HN(config-if)#no shut
    HN(config-if)#exi




    CT(config)#int s1/0
    CT(config-if)#encap
    CT(config-if)#encapsulation fram
    CT(config-if)#encapsulation frame-relay
    CT(config-if)#fram
    CT(config-if)#frame-relay lmi-type ansi
    CT(config-if)#ip add 200.200.200.3 255.255.255.248
    CT(config-if)#fram
    CT(config-if)#frame-relay map ip 200.200.200.1 400 broa
    CT(config-if)#frame-relay map ip 200.200.200.1 400 broadcast
    CT(config-if)#fram
    CT(config-if)#frame-relay map ip 200.200.200.2 400 broa
    CT(config-if)#frame-relay map ip 200.200.200.2 400 broadcast
    CT(config-if)#fram
    CT(config-if)#frame-relay map ip 200.200.200.3 400 broa
    CT(config-if)#frame-relay map ip 200.200.200.3 400 broadcast
    CT(config-if)#no shut
    CT(config-if)#exi


    Cấu hình Frame Relay cho Hub Router :

    Tạo 1 Sub Interface Multipoint trên Hub Router

    SG(config)#int s1/0
    SG(config-if)#encap
    SG(config-if)#encapsulation fram
    SG(config-if)#encapsulation frame-relay
    SG(config-if)#fram
    SG(config-if)#frame-relay lmi-type ansi
    SG(config-if)#no shut



    SG(config)#int s1/0.1 mul
    SG(config)#int s1/0.1 multipoint
    SG(config-subif)#ip add 200.200.200.1 255.255.255.248
    SG(config-subif)#fram
    SG(config-subif)#frame-relay map ip 200.200.200.2 100 broad
    SG(config-subif)#frame-relay map ip 200.200.200.2 100 broadcast
    SG(config-subif)#fram
    SG(config-subif)#frame-relay map ip 200.200.200.3 300 broa
    SG(config-subif)#frame-relay map ip 200.200.200.3 300 broadcast
    SG(config-subif)#fram
    SG(config-subif)#frame-relay map ip 200.200.200.1 100 broa
    SG(config-subif)#frame-relay map ip 200.200.200.1 100 broadcast
    SG(config-subif)#no shut
    SG(config-subif)#exi

    Cấu hình RIPv2 :


    SG(config)#router rip
    SG(config-router)#ver 2
    SG(config-router)#net 192.168.1.0
    SG(config-router)#net 200.200.200.0
    SG(config-router)#no auto
    SG(config-router)#exi



    HN(config)#router rip
    HN(config-router)#ver 2
    HN(config-router)#net 192.168.2.0
    HN(config-router)#net 200.200.200.0
    HN(config-router)#no auto
    HN(config-router)#exi



    CT(config)#router rip
    CT(config-router)#ver 2
    CT(config-router)#net 192.168.3.0
    CT(config-router)#net 200.200.200.0
    CT(config-router)#no auto
    CT(config-router)#exi
    CT(config)#


    SG#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/29 is subnetted, 1 subnets
    C 200.200.200.0 is directly connected, Serial1/0.1
    C 192.168.1.0/24 is directly connected, FastEthernet0/0
    R 192.168.2.0/24 [120/1] via 200.200.200.2, 00:00:10, Serial1/0.1
    R 192.168.3.0/24 [120/1] via 200.200.200.3, 00:00:06, Serial1/0.1
    SG#

    Show IP route :


    CT#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/29 is subnetted, 1 subnets
    C 200.200.200.0 is directly connected, Serial1/0
    R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:23, Serial1/0
    C 192.168.3.0/24 is directly connected, FastEthernet0/0
    CT#



    HN#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/29 is subnetted, 1 subnets
    C 200.200.200.0 is directly connected, Serial1/0
    R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:15, Serial1/0
    C 192.168.2.0/24 is directly connected, FastEthernet0/0
    HN#
    *Mar 1 00:21:26.271: %SYS-5-CONFIG_I: Configured from console by console
    HN#


     Ta thấy Router HN và CT ko học đường mạng của nhau do bị cơ chế Split Horizon chặn lại.


    Cách khắc phục :


    Vào Sub Interface gõ lệnh “no ip split-horizon”


    SG(config)#int s1/0.1
    SG(config-subif)#no ip spli
    SG(config-subif)#no ip split-horizon
    SG(config-subif)#exi

    Show IP route tại HN và CT :

    HN#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/29 is subnetted, 1 subnets
    C 200.200.200.0 is directly connected, Serial1/0
    R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:10, Serial1/0
    C 192.168.2.0/24 is directly connected, FastEthernet0/0
    R 192.168.3.0/24 [120/2] via 200.200.200.3, 00:00:10, Serial1/0




    CT#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/29 is subnetted, 1 subnets
    C 200.200.200.0 is directly connected, Serial1/0
    R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:13, Serial1/0
    R 192.168.2.0/24 [120/2] via 200.200.200.2, 00:00:13, Serial1/0
    C 192.168.3.0/24 is directly connected, FastEthernet0/0
    CT#



    SG#sh ip int s1/0.1
    Serial1/0.1 is up, line protocol is up
    Internet address is 200.200.200.1/29
    Broadcast address is 255.255.255.255
    Address determined by setup command
    MTU is 1500 bytes
    Helper address is not set
    Directed broadcast forwarding is disabled
    Multicast reserved groups joined: 224.0.0.9
    Outgoing access list is not set
    Inbound access list is not set
    Proxy ARP is enabled
    Local Proxy ARP is disabled
    Security level is default
    Split horizon is disabled
    ICMP redirects are always sent
    ICMP unreachables are always sent
    ICMP mask replies are never sent
    IP fast switching is enabled
    IP fast switching on the same interface is enabled
    IP Flow switching is disabled
    IP CEF switching is enabled
    IP CEF Fast switching turbo vector
    IP multicast fast switching is enabled
    IP multicast distributed fast switching is disabled
    IP route-cache flags are Fast, CEF
    Router Discovery is disabled
    IP output packet accounting is disabled
    IP access violation accounting is disabled
    TCP/IP header compression is disabled
    RTP/IP header compression is disabled
    Policy routing is disabled
    Network address translation is disabled
    BGP Policy Mapping is disabled
    WCCP Redirect outbound is disabled
    WCCP Redirect inbound is disabled
    WCCP Redirect exclude is disabled
    SG#
    Last edited by quannicolas; 23-01-2008, 11:51 PM.

  • #2
    2. Cấu hình Sub Interface Point-to-Point trên Hub Router để giao tiếp với các Spoke Router :


    Tạo các Sub Int dạng Point-to-Point :


    SG(config)#int s1/0.1 po
    SG(config)#int s1/0.1 point-to-point
    SG(config-subif)#ip add 200.200.200.1 255.255.255.252
    SG(config-subif)#fram
    SG(config-subif)#frame-relay int-dl
    SG(config-subif)#frame-relay int?
    interface-dlci

    SG(config-subif)#frame-relay int
    SG(config-subif)#frame-relay interface-dlci 100
    SG(config-fr-dlci)#exi
    SG(config-subif)#exi
    SG(config)#int s1/0.2 poi
    SG(config)#int s1/0.2 point-to-point
    SG(config-subif)#ip add 200.200.200.5 255.255.255.252
    SG(config-subif)#fram
    SG(config-subif)#frame-relay int
    SG(config-subif)#frame-relay interface-dlci 300
    SG(config-fr-dlci)#exi
    SG(config-subif)#exi
    SG(config)#^Z

    Cấu hình Frame Relay cho các Spoke Router :


    HN(config)#int s1/0
    HN(config-if)#encap
    *Mar 1 00:07:22.015: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0
    changed state to down
    HN(config-if)#encap fram
    HN(config-if)#encap frame-relay
    HN(config-if)#fram
    *Mar 1 00:07:40.291: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0
    changed state to up
    HN(config-if)#fram
    HN(config-if)#frame-relay lmi-type ansi
    HN(config-if)#ip add 200.200.200.2 255.255.255.252
    HN(config-if)#fram
    HN(config-if)#frame-relay map ip 200.200.200.1 200broa
    HN(config-if)#frame-relay map ip 200.200.200.1 200 broa
    HN(config-if)#frame-relay map ip 200.200.200.1 200 broadcast
    HN(config-if)#fram
    HN(config-if)#frame-relay map ip 200.200.200.6 200 broa
    HN(config-if)#frame-relay map ip 200.200.200.6 200 broadcast
    HN(config-if)#fram
    HN(config-if)#frame-relay map ip 200.200.200.2 200 broa
    HN(config-if)#frame-relay map ip 200.200.200.2 200 broadcast
    HN(config-if)#no shut
    HN(config-if)#exi
    HN(config)#^Z




    CT(config)#int s1/0
    CT(config-if)#encap fram
    CT(config-if)#encap frame-relay
    CT(config-if)#fram
    CT(config-if)#frame-relay
    *Mar 1 00:09:56.815: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
    changed state to up
    CT(config-if)#frame-relay lmi-type ansi
    CT(config-if)#ip add 200.200.200.6 255.255.255.252
    CT(config-if)#fram
    CT(config-if)#frame-relay map ip 200.200.200.5 400 broa
    CT(config-if)#frame-relay map ip 200.200.200.5 400 broadcast
    CT(config-if)#fram
    CT(config-if)#frame-relay map ip 200.200.200.2 400 broa
    CT(config-if)#frame-relay map ip 200.200.200.2 400 broadcast
    CT(config-if)#fram
    CT(config-if)#frame-relay map ip 200.200.200.6 400 broa
    CT(config-if)#frame-relay map ip 200.200.200.6 400 broadcast
    CT(config-if)#no shut
    CT(config-if)#exi
    CT(config)#^Z


    Show Frame Relay Map trên Hub Router :


    SG#sh frame-relay map
    Serial1/0.2 (up): point-to-point dlci, dlci 300(0x12C,0x48C0), broadcast
    status defined, active
    Serial1/0.1 (up): point-to-point dlci, dlci 100(0x64,0x1840), broadcast
    status defined, active

    Ping :

    SG#ping 200.200.200.6

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 200.200.200.6, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 36/84/116 ms
    SG#ping 200.200.200.2

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 200.200.200.2, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 68/105/132 ms
    SG#ping 200.200.200.1

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 200.200.200.1, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 124/158/256 ms
    SG#ping 200.200.200.2

    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 200.200.200.2, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 24/107/244 ms
    SG#


    Show IP route :


    HN#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/30 is subnetted, 2 subnets
    C 200.200.200.0 is directly connected, Serial1/0
    R 200.200.200.4 [120/1] via 200.200.200.1, 00:00:00, Serial1/0
    R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:00, Serial1/0
    C 192.168.2.0/24 is directly connected, FastEthernet0/0
    R 192.168.3.0/24 [120/2] via 200.200.200.1, 00:00:00, Serial1/0
    HN#




    SG#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/30 is subnetted, 2 subnets
    C 200.200.200.0 is directly connected, Serial1/0.1
    C 200.200.200.4 is directly connected, Serial1/0.2
    C 192.168.1.0/24 is directly connected, FastEthernet0/0
    R 192.168.2.0/24 [120/1] via 200.200.200.2, 00:00:14, Serial1/0.1
    R 192.168.3.0/24 [120/1] via 200.200.200.6, 00:00:24, Serial1/0.2
    SG#




    CT#sh ip rou
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    200.200.200.0/30 is subnetted, 2 subnets
    R 200.200.200.0 [120/1] via 200.200.200.5, 00:00:23, Serial1/0
    C 200.200.200.4 is directly connected, Serial1/0
    R 192.168.1.0/24 [120/1] via 200.200.200.5, 00:00:23, Serial1/0
    R 192.168.2.0/24 [120/2] via 200.200.200.5, 00:00:23, Serial1/0
    C 192.168.3.0/24 is directly connected, FastEthernet0/0
    CT#

    Comment


    • #3
      híc may quá cái này em đang tìm , may mà lại tìm được một bài cũ vẫn còn sót lại hì thank anh nhiều

      Comment

      Working...
      X