(+84) 236.3827111 ex. 402

Định tuyến tĩnh - Cơ bản


Cho sơ đồ:

Anh/chị hãy cấu hình IP & định tuyến tĩnh cho sơ đồ này.


Min+1

Max-1

/24

Host Address (cấu hình cho máy tính)

Network Address

Subnet mask

Start IP

Last IP

Broadcast Address

Cấp cho Subnet

192.168.1.0

255.255.255.0

192.168.1.1

192.168.1.254

192.168.1.255

1

192.168.2.0

255.255.255.0

192.168.2.1

192.168.2.254

192.168.2.255

2

192.168.3.0

255.255.255.0

192.168.3.1

192.168.3.254

192.168.3.255

3

192.168.12.0

255.255.255.0

192.168.12.1

192.168.12.254

192.168.12.255

12

192.168.23.0

255.255.255.0

192.168.23.1

192.168.23.254

192.168.23.255

23

Sơ đồ sau khi đã được cấu hình địa chỉ IP:

Cấu hình IP cho các PC:


Cấu hình IP cho Router HCM:

Cấu hình IP cho Router DNG:

DNG(config)#int s0/0/1

DNG(config-if)#no shut

DNG(config-if)#ip add 192.168.23.2 255.255.255.0

DNG(config-if)#ex

DNG(config)#

DNG(config)#int s0/0/0

DNG(config-if)#no sh

DNG(config-if)#ip add 192.168.12.2 255.255.255.0

DNG(config-if)#ex

DNG(config)#


Cấu hình IP cho Router HNI:

Router>en

Router#conf t


Router(config)#

Router(config)#hostname HNI

HNI(config)#

HNI(config)#int f0/0

HNI(config-if)#no sh

HNI(config-if)#ip add 192.168.3.1 255.255.255.0

HNI(config-if)#exit

HNI(config)#


HNI(config)#int s0/0/1

HNI(config-if)#no shut

HNI(config-if)#ip add 192.168.23.3 255.255.255.0

HNI(config-if)#

HNI(config-if)#ex

HNI(config)#

HNI(config)#end

HNI#write

Building configuration...

[OK]

HNI#


Cấu hình Static Router dùng Exit Interface:

Router HCM:

HCM(config)# ip route 192.168.23.0 255.255.255.0 S0/0/0

HCM(config)# ip route 192.168.3.0 255.255.255.0 S0/0/0

HCM(config)# ip route 192.168.2.0 255.255.255.0 S0/0/0

Router DNG:

DNG(config)# ip route 192.168.1.0 255.255.255.0 S0/0/0

DNG(config)# ip route 192.168.3.0 255.255.255.0 S0/0/1

Router HNI:

HNI(config)# ip route 192.168.1.0 255.255.255.0 S0/0/1

HNI(config)# ip route 192.168.2.0 255.255.255.0 S0/0/1

HNI(config)# ip route 192.168.12.0 255.255.255.0 S0/0/1

Xem bảng định tuyến:

DNG# show ip route


DNG#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, 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


S 192.168.1.0/24 is directly connected, Serial0/0/0

C 192.168.2.0/24 is directly connected, FastEthernet0/0

S 192.168.3.0/24 is directly connected, Serial0/0/1

C 192.168.12.0/24 is directly connected, Serial0/0/0

C 192.168.23.0/24 is directly connected, Serial0/0/1

DNG#

By: dangocuong@gmail.com