14
BASIC KNOWLEDGE OF SEMESTER 2 copyright@ nguyen van son Test skill. 1. Task of group ( nhiệm vụ của nhóm) Khi chúng ta thi skill thì gồm những công việc sau cần phải làm: + Chuẩn bị về phần cứng ( cơ sở hạ tầng) . vẽ topology của mạng . Chia địa chỉ IP . Lắp jack . kiểm tra nguồn và hệ thống đảm bảo hệ thống hoạt động bình thường + Configuration . Cấu hình cơ bản . Routing . Authentication + Trả lời câu hỏi vấn đáp 2. Basic Knowledge a. Truy cập ascess server: +Telnet 192.168.a.b Với a là địa chỉ phòng thi, b là địa chỉ của ascess server Sau khi chúng ta vào được thì nó yêu cầu username và password của Ascess server Username : student

Semester 2

Embed Size (px)

Citation preview

Page 1: Semester 2

BASIC KNOWLEDGE OF SEMESTER 2copyright@ nguyen van son

Test skill.1. Task of group ( nhiệm vụ của nhóm) Khi chúng ta thi skill thì gồm những công việc sau cần phải làm: + Chuẩn bị về phần cứng ( cơ sở hạ tầng) . vẽ topology của mạng . Chia địa chỉ IP . Lắp jack . kiểm tra nguồn và hệ thống đảm bảo hệ thống hoạt động bình thường + Configuration . Cấu hình cơ bản . Routing . Authentication + Trả lời câu hỏi vấn đáp2. Basic Knowledgea. Truy cập ascess server: +Telnet 192.168.a.b

Với a là địa chỉ phòng thi, b là địa chỉ của ascess server Sau khi chúng ta vào được thì nó yêu cầu username và password của Ascess server Username : student Password : cisco Sau đó chúng ta tiến hành những lệnh sau Show line Để truy cập vào router để cấu hình thì chúng ta phải telnet qua ascess Server

Page 2: Semester 2

Clear line x X là số dây console nối vào router mà mình muốn vào Sau đó dùng cmd khác đánh lệnh Telnet 192.168.a.b 200x Thế là chúng ta truy cập vào ascess server thành côngb. cấu hình sau khi vào đươc router thì ta chỉ việc cấu hình bình thường Sau đây là nhưng lệnh cơ bản để cấu hình

Basic configuration

* Vào các chế độ:Router>enRouter#conf tRouter(config)#* Cấu hình tên routerRouter(config)#Hostname [tên router]* Cấu hình banner motdRouter(config)#banner motd #quảng bá sản phẩm#* Đặt password chế độ line console

Router(config)#line console 0Router(config-line)#password ciscoRouter(config-line)#loginRouter(config-line)#exit* Đặt pass cho telnetRouter(config)#line vty 0 4Router(config-line)#password cisco Router(config-line)#loginRouter (config-line)#exit

*Dat enable secrect va enable password

Page 3: Semester 2

Router(config)#enable secret ciscoRouter(config)#enable password student

Router(config)#line console 0

Router(config-line)#logging synchronousRouter(config-line)#exitRouter(config)#line vty 0 4Router(config-line)#logging synchronousRouter(config-line)#exit* Cấu hình các cổngRouter(config)#int serial -----> nhớ description…..Router(config)#int fast ethernet -----> nhớ description…..Router(config)#int loopback …...

Câu lệnh kiểm traRouter#show cdp neighbors -----> kiểm tra logicRouter#show ip protocolsRouter#show ip routeRouter#show ip interface brief -----> kiểm tra vật lý

RIPv2

* Chạy giao thức định tuyến RIPv2

Page 4: Semester 2

Router(config)#router rip Router(config-router)#version 2Router(config-router)#network [địa chỉ mạng]Router(config-router)#no auto-summaryRouter(config-router)#passive interface loopback

Nếu có default routeRouter(config)#ip route 0.0.0.0 0.0.0.0 [exit int]Router(config)#router rip Router(config-router)#version 2Router(config-router)#redistribute staticRouter(config-router)#default-information originate Nếu có static routeRouter(config)#ip route [địa chỉ IP] [subnet] [exit int]Router(config)#router rip Router(config-router)#version 2Router(config-router)#redistribute static Nếu có back up default routeRouter(config)#ip route 0.0.0.0 0.0.0.0 [exit int] [AD +1]Router(config)#router rip Router(config-router)#version 2Router(config-router)#redistribute staticRouter(config-router)#default-information originate EIGRP ------> RIPRouter(config)#router ripRouter(config-router)#version 2Router(config-router)#redistribute eigrp [AS] metric 1 OSPF ------> RIP Router(config-router)#redistribute ospf [process id] metric 1 Câu lệnh kiểm traRouter#show ip interface brief -----> kiểm tra vật lýRouter#show cdp neighbors -----> kiểm tra logicRouter#show ip protocolsRouter#show ip rip database ----> show tất cả những gì router học đượcRouter#show ip route

Page 5: Semester 2

Router#show ip route rip AuthenticationRouter(config)#key chain SupermanRouter(config)#key 1Router(config)#key-string ciscoRouter(config)#int serial/fastethernetRouter(config-if)#ip rip authentication key-chain SupermanRouter(config-if)#ip rip authentication mode md5

EIGRP

* Chạy giao thức định tuyến EIGRPRouter(config)#router eigrp [AS] ----->phải giống nhau giữa các router trong eigrpRouter(config-router)#network [địa chỉ mạng] [wildcard mask]Router(config-router)#no auto-summaryRouter(config-router)#passive-interface loopback Nếu có default routeRouter(config)#ip route 0.0.0.0 0.0.0.0 [exit int]Router(config)#router eigrp [AS]Router(config-router)#redistribute static Nếu có static routeRouter (config)#ip route [địa chỉ IP] [subnet] [exit int]Router(config)#router eigrp [AS]Router(config-router)#redistribute static Nếu có back up default routeRouter(config)#ip route 0.0.0.0 0.0.0.0 [exit int] [AD +1]Router(config)#router eigrp [AS]Router(config-router)#redistribute static Nếu muốn thay đổi bandwidth cho intRouter(config)#int serialRouter(config-if)#bandwidth 64 -----> đổi bandwidth sang 64kbps RIP -----> EIGRPRouter(config)#router eigrp [AS]

Page 6: Semester 2

Router(config-router)#redistribute rip metric 100000 2000 255 1 1500 OSPF -----> EIGRPRouter(config-router)#redistribute ospf [process id] metric 100000 2000 255 1 1500 Câu lệnh kiểm traRouter#show ip eigrp neighbors -----> show adjajenciesRouter#show ip protocolsRouter#show ip routeRouter#show ip route eigrpRouter#show interface serial 0/0/0 ------> xem bandwidth,delay…. của metricRouter#show interface ------> chỉ ra bandwidth interfaceRouter#debug eigrp fsm AuthenticationRouter(config)#key chain SupermanRouter(config)#key 1Router(config)#key-string ciscoRouter(config)#int serial/fastethernetRouter(config-if)#ip authentication key-chain eigrp [AS] SupermanRouter(config-if)#ip authentication mode eigrp [AS] md5

OSPF

* Chạy giao thức định tuyến OSPFRouter(config)#router ospf [process id] ------> không cần phải giống nhauRouter(config-router)#router-id [ip add] Router(config-router)# network [địa chỉ mạng] [wildcard mask] area [area number] Router(config-router)#passive interface loopback

Nếu có default route

Page 7: Semester 2

Router(config)#ip route 0.0.0.0 0.0.0.0 [exit int]Router(config)#router ospf [process id]Router(config-router)#default-information originate Nếu muốn thay đổi bandwidth cho interfaceRouter(config)#int serialRouter(config-if)#bandwidth 64 ------> đổi bandwidth sang 64kbps HoặcRouter( config)#int serialRouter(config-if)#ip ospf cost 1562

Bầu bán DR/BDRRouter(config-if)#ip ospf priority [0-255] -------> shutdown rồi no shutdown

RIP -------> OSPFRouter(config)#router ospf [process id]Router(config-router)# redistribute rip subnets EIGRP -------> OSPFRouter(config)#router ospf [process id]Router(config-router)#redistribute eigrp [AS] subnets Các câu lệnh kiểm traRouter#show ip protocolsRouter#show ip ospfRouter# show ip ospf interfaceRouter#show interface ------> chỉ ra bandwidth interfaceRouter#show ip ospf neighbor ------> kiểm tra bầu bán DR/BDRRouter#show ip route

AuthenticationRouter(config-if)#ip ospf message-digest-key [key id] md5 7 [secret] ------> giống key-idRouter(config-if)#exitRouter(config)#router ospf [process id]Router(config-router)#area [area number] authentication message-digest

Page 8: Semester 2

3. EXAMPLE Ví dụ: RIP-EIGRP-OSPF lap 5

Bài làm+ Bước 1 : chuẩn bị cơ sở hạ tầng+ Bước 2 : Cấu hình . truy cập vào ascess server +Vào chế độ cmd + telnet 192.168.129.97 Username : student Pass : cisco

Page 9: Semester 2

show line clear line x x là số dây console cắm vào router +Vào chế độ cmd khác để telnet vào router mà mình muốn cấu hình

A.Cấu hình router ở TÂY HỒ

Router>Router> enable

Router#Router# config terminalRouter(config)#

Router(config)# hostname TayhoTayho(config)#

Tayho(config)#inter serial 0/0Tayho(config-if)#ip add 155.55.4.1 255.255.255.0Tayho(config-if)#no shutTayho(config-if)#exit

Tayho(config)#Tayho(config)#inter loo 1Tayho(config-if)#ip add 155.55.1.1 255.255.255.0Tayho(config-if)#exitTayho(config)#

Tayho(config)#inter loo 2Tayho(config-if)#ip add 155.55.2.1 255.255.255.0

Page 10: Semester 2

Tayho(config-if)#exitTayho(config)#

Tayho(config)#inter loo 3Tayho(config-if)#ip add 155.55.3.1 255.255.255.0

Tayho(config-if)#exitTayho(config)#