Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


8. Configure IP Routes (Static Route, DHCP, DNS) Static Route, Inter VLAN Roting Explain the operation and benefits of using DHCP and DNS, Configure, verify and troubleshoot, DHCP and DNS operation on a router.

 
 
Công Cụ Xếp Bài
Tuổi 11-08-2009, 10:54 PM   #1
adminphuong
Administrator
 
Avatar của adminphuong
 
Gia nhập: Jul 2009
Trả Lời: 152
Định tuyến trên router Cisco
Đị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
__________________
Theo: Viet Professionals Co. Ltd. VnPro ®

adminphuong vắng mặt   Trả lời ngay kèm theo trích dẫn này
 



Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 03:18 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.