Results 1 to 3 of 3

Thread: Lab 3-1: Định tuyến trên router Cisco

  1. #1

    Default Lab 3-1: Định tuyến trên router Cisco

    Lab 3-1: Định tuyến trên router Cisco



    Định tuyến IP được cho phép mặc định trên Cisco router.
    Lệnh để cho phép hay vô hiệu hoá định tuyến: [no] ip routing
    Vì lệnh này mặc định nên khi xem cấu hình đang chạy bằng lệnh show running–config sẽ không thấy hiển thị lệnh này.
    Để kiểm tra tác động của câu lệnh cho router nối với PC1 và PC2 qua hai cổng Ethernet 0 và Ethernet 1 như hình vẽ.

    –Router A với 2 cổng Ethernet sẽ được cấu hình như sau:

    RouterA(config)#interface Ethernet0
    RouterA(config–if)#ip address 172.108.1.1 255.255.255.0
    RouterA(config–if)#no shutdown
    RouterA(config–if)#exit

    RouterA(config)#interface Ethernet1
    RouterA(config–if)#ip address 172.108.2.1 255.255.255.0
    RouterA(config–if)#no shutdown
    RouterA(config–if)#exit

    RouterA(config)#ip routing ← lệnh này mặc định trên Cisco router
    RouterA(config)# Ctrl+z
    RouterA#


    – Đặt địa chỉ IP cho PC1 và PC2 cùng mạng với cổng Ethernet0 và Ethernet1, như trên hình.
    Lưu ý.
    Win 2000, XP: Start – Settings – Connection – Local Area Connection – Properties – Internet Protocol (TCP/IP)
    Win98: Start – Settings – Control Panel – Networks – TCP/IP – TCP/IP Properties



    –Thực hiện lệnh ping trên PC1 và PC2, lệnh ping phải thành công: Gói IP từ PC1 tới PC2 sẽ được định tuyến bởi R1 mà không cần giao thức định tuyến vì các mạng được kết nối trực tiếp với RouterA.

    Win 2000, XP: Start – Run: cmd.exe
    Win98: Start – Run: command.exe

    Tại PC1
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\> ping 172.108.2.2

    Pinging 172.108.2.2 with 32 bytes of data:

    Reply from 172.108.2.2: bytes=32 time<1ms TTL=127
    Reply from 172.108.2.2: bytes=32 time<1ms TTL=127
    Reply from 172.108.2.2: bytes=32 time<1ms TTL=127
    Reply from 172.108.2.2: bytes=32 time<1ms TTL=127

    Ping statistics for 172.108.2.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms


    C:\>_

    Tại PC2
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\> ping 172.108.1.2

    Pinging 172.108.2.2 with 32 bytes of data:

    Reply from 172.108.1.2: bytes=32 time<1ms TTL=127
    Reply from 172.108.1.2: bytes=32 time<1ms TTL=127
    Reply from 172.108.1.2: bytes=32 time<1ms TTL=127
    Reply from 172.108.1.2: bytes=32 time<1ms TTL=127

    Ping statistics for 172.108.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms



    –Xem bảng định tuyến RouterA bằng lệnh show ip route. Chữ C ở phía trái bảng định tuyến tượng trưng cho các mạng nối trực tiếp.

    RouterA#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
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    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, o - ODR

    Gateway of last resort is not set
    172.100.0.0 is subnetted, 2 subnets
    C 172.108.1.0 is directly connected, Ethernet0
    C 172.108.2.0 is directly connected, Ethernet1
    Viet Professionals Co. Ltd. VnPro ®
    ---------------------------------------
    149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
    Tel: (08) 35124257 (7 lines)
    Fax: (08) 5124314
    Support forum: http://vnpro.org
    LiveChat : http://www.vnpro.vn/support
    Blog VnPro : http://vnpro.org/blog
    Forum Wifi : http://wifipro.org

  2. #2

    Default

    hình vẽ của bài Lab này bị sai chổ IP rồi. Interface E1 sẽ có Ip là 172.108.2.1 255.255.255.0

  3. #3

    Default

    bump to first page

Similar Threads

  1. Replies: 9
    Last Post: 20-06-2012, 02:04 PM
  2. Tips for CCIE Candidate
    By binhhd in forum CCIE Routing & Switching
    Replies: 10
    Last Post: 22-04-2009, 02:01 PM
  3. Lab 3-12: Redistribute giữa IGRP và EIGRP
    By admin in forum CCNA LabPro
    Replies: 5
    Last Post: 26-03-2009, 01:40 AM
  4. Replies: 0
    Last Post: 08-10-2004, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 
   TRUNG TÂM TIN HỌC VNPRO
149/1D Ung Văn Khiêm, P. 25, Q.Bình Thạnh
Phone:(08) 35124257
Fax: (08) 35124314
Email: vnpro@vnpro.org
Powered by vBulletin Version 4.2.1
Copyright 2000 - 2011, Jelsoft Enterprises Ltd.
License owned by : VietProfessional Co.,Ltd
 

Ve may bay |Ve may bay gia re |Ve may bay di Ha Noi |Ve may bay di Nha Trang |Ve may bay di Da Nang |Ve may bay di Da Lat |Ve may bay di Vinh |Ve may bay di Hue |Ve may bay di Con Dao |Ve may bay di TP HCM |Air Asia |Tiger Airways |Vietnam Airlines |Lion Air |Aeroflot |Jetstar |Vietjet Air |Asiana |Delta Airlines |Singapore Airlines |Thai Airways |quantas |Turkish Airlines |China Southern Airlines |Air China |Ve may bay gia re |Ve may bay di Anh |Ve may bay di Canada |Ve may bay di Ha Lan |Ve may bay di Han Quoc |Ve may bay di Hong Kong |Ve may bay di Y |Ve may bay di Italia |Ve may bay di Malaysia |Ve may bay di Nga |Ve may bay di Phap |Ve may bay di Philippines |Ve may bay di Singapore |Ve may bay di Thai Lan |Ve may bay di Trung Quoc |Ve may bay di Uc |Ve may bay di Ukraina |Ve may bay di Duc |Ve may bay di My |Ve may bay di My