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

Default route với OSPF, pls help.

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

  • Default route với OSPF, pls help.

    Chào các bác, em có một lab với Boson Netsim 6.0 gồm 5 router cấu hình để thực hiện default route.



    Em dùng địa chỉ mạng 192.168.2.0 chia thành subnet (mượn 3 bit từ subnet mask 255.255.255.0), các mạng con như sau

    subnet 0 : 192.168.2.0/27
    subnet 1 : 192.168.2.32/27
    subnet 2 : 192.168.2.64/27
    subnet 3 : 192.168.2.96/27
    subnet 4 : 192.168.2.128/27
    subnet 5 : 192.168.2.160/27
    subnet 6 : 192.168.2.192/27
    subnet 7 : 192.168.2.224/27

    từ subnet 1 đến 4 thì sử dụng cho các giao tiếp Ethernet trên R1->R4

    với mạng con 192.168.2.160 thì mượn tiếp 3 bit nữa (=> subnet /30) để sử dụng cho các giao tiếp giữa các router.
    R1 & R3 : 192.168.2.160/30
    R2 & R3 : 192.168.2.164/30
    R3 & R4 : 192.168.2.168/30

    Các cổng giao tiếp trên các router R1->R5 có IP addess như sau:

    Router R1
    E0 : 192.168.2.33 255.255.255.224
    S0 (ket noi voi S1/0 của R3) : 192.168.2.161 255.255.255.252

    Router R2
    E0 : 192.168.2.65 255.255.255.224
    S0 (ket noi voi S1/1 của R3) : 192.168.2.165 255.255.255.252

    Router R3
    Fa0/0 : 192.168.2.97 255.255.255.224
    S1/0 (ket noi voi S0 của R1) : 192.168.2.162 255.255.255.252
    S1/1 (ket noi voi S0 của R2) : 192.168.2.166 255.255.255.252
    S1/2 (ket noi voi S0 của R4) : 192.168.2.169 255.255.255.252
    Interface Loopback 0 : 10.0.0.5 255.0.0.0 (for DR)

    Router R4
    E0 : 192.168.2.129 255.255.255.224
    S0 (ket noi voi S1/2 của R3): 192.168.2.170 255.255.255.252

    S1 kết nối ra mạng 172.16.0.0 : tới Router R5
    S1 (ket noi toi S0 của R5): 172.16.0.1 255.255.0.0

    Router R5
    S0 : 172.16.0.2 255.255.0.0

    Cấu hình default route trên R4 để kết nối ra mạng 172.16.0.0
    R4(config)#ip route 0.0.0.0 0.0.0.0 172.16.0.2

    Từ các Router R1, R2, R3 đã ping được tới S1 của R4 nhưng khôg thể ping tới được S0 của R5 (172.16.0.2)

    Dưới đây là lệnh show ip route từ R1 tới R4

    Router R1:
    R1#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route

    Gateway of last resort is not set

    192.168.2.0/24 is variably subnetted, 7 subnets
    C 192.168.2.160/30 is directly connected, Serial0
    O 192.168.2.32/27 [110/10] via 192.168.2.33, 00:36:06, Ethernet0
    O 192.168.2.164/30 [110/128] via 192.168.2.162, 00:30:02, Serial0
    O 192.168.2.64/27 [110/192] via 192.168.2.162, 00:30:00, Serial0
    O 192.168.2.168/30 [110/64] via 192.168.2.169, 00:30:55, Serial0
    O 192.168.2.96/27 [110/64] via 192.168.2.97, 00:30:45, Serial0
    O 192.168.2.128/27 [110/192] via 192.168.2.162, 00:27:29, Serial0
    O 172.16.0.0 [110/192] via 192.168.2.162, 00:27:29, Serial0

    Router R2:
    R2#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route

    Gateway of last resort is not set

    192.168.2.0/24 is variably subnetted, 6 subnets
    C 192.168.2.164/30 is directly connected, Serial0
    O 192.168.2.64/27 [110/10] via 192.168.2.65, 00:32:07, Ethernet0
    O 192.168.2.160/30 [110/128] via 192.168.2.166, 00:31:55, Serial0
    O 192.168.2.168/30 [110/64] via 192.168.2.169, 00:31:50, Serial0
    O 192.168.2.96/27 [110/64] via 192.168.2.97, 00:31:40, Serial0
    O 192.168.2.128/27 [110/192] via 192.168.2.166, 00:28:24, Serial0
    O 255.254.254.255 [110/0] via , 00:32:07,
    O 172.16.0.0 [110/192] via 192.168.2.166, 00:28:24, Serial0

    Router R3:
    R3#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route

    Gateway of last resort is not set

    192.168.2.0/24 is variably subnetted, 7 subnets
    C 192.168.2.160/30 is directly connected, Serial1/0
    C 192.168.2.164/30 is directly connected, Serial1/1
    C 192.168.2.168/30 is directly connected, Serial1/2
    O 192.168.2.32/27 [110/64] via 192.168.2.161, 00:31:23, Serial1/0
    O 192.168.2.64/27 [110/64] via 192.168.2.165, 00:31:18, Serial1/1
    O 192.168.2.96/27 [110/1] via 192.168.2.97, 00:31:03, FastEthernet0/0
    O 192.168.2.128/27 [110/64] via 192.168.2.129, 00:29:07, Serial1/2
    C 10.0.0.0 is directly connected, Loopback0
    O 172.16.0.0 [110/64] via 172.16.0.1, 00:29:47, Serial1/2

    Router R4:
    R4#show ip route
    Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route

    Gateway of last resort is to network 0.0.0.0

    192.168.2.0/24 is variably subnetted, 5 subnets
    C 192.168.2.168/30 is directly connected, Serial0
    O 192.168.2.128/27 [110/10] via 192.168.2.129, 00:30:56, Ethernet0
    O 192.168.2.164/30 [110/128] via 192.168.2.169, 00:30:41, Serial0
    O 192.168.2.160/30 [110/128] via 192.168.2.169, 00:30:41, Serial0
    O 192.168.2.96/27 [110/64] via 192.168.2.169, 00:30:41, Serial0
    C 172.16.0.0 is directly connected, Serial1
    S* 0.0.0.0 [1/0] via 172.16.0.2

    vì lệnh default-information orginate chỉ sử dụng được với phiên bản Netsim 6.0 for CCNP (dù với Netsim 6.0 for CCNA có lệnh này nhưng không cho sử dụng), nên không thể kiểm tra được.
    Các bác cho em hỏi là nếu muốn dùng lệnh này thì phải đặt câu lệnh này lên các router R1, R2, R3 hay chỉ cần cấu hình nó trên R4

    R4(config-router)#default-information originate

    là đủ, các bác help me, thanks.

    :105::105:
    Last edited by trainingit; 01-10-2007, 01:21 PM.
    no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

    :32::53::X:106:

    Nothing last forever...

  • #2
    Không ai giúp được em câu này à ???

    Anh Minh trợ giúp cho em câu này với.

    :):)
    no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

    :32::53::X:106:

    Nothing last forever...

    Comment


    • #3
      Chỉ cần cấu hình "default-information originate" trên R4 là đủ.
      Trần Nhân Hòa
      CMND #0146257668

      Comment


      • #4
        cám ơn bác :x

        :X:X
        no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

        :32::53::X:106:

        Nothing last forever...

        Comment


        • #5
          Nho phai co "R5(config)#ip route 0.0.0.0 0.0.0.0 172.16.0.1" nua nha.
          Trần Nhân Hòa
          CMND #0146257668

          Comment

          Working...
          X