(+84) 236.3827111 ex. 402

Lab OSPF: Cấu hình OSPF_Authentication_Load Balacing


Cho sơ đồ như sau:

Cấu hình:

Trên các PC:

ip 192.168.1.11/24 192.168.1.1


ip 192.168.2.22/24 192.168.2.1


Router-DTU:

en

conf t

hostname Router-DTU

int f0/0

no sh

ip add 192.168.1.1 255.255.255.0

ex

int f1/0

no sh

ip add 10.1.1.11 255.255.255.0

ex

int f2/0

no sh

ip add 10.1.2.11 255.255.255.0

ex

int f3/0

no sh

ip add 10.1.3.11 255.255.255.0

ex

int f4/0

no sh

ip add 10.1.4.11 255.255.255.0

ex

int f5/0

no sh

ip add 10.1.5.11 255.255.255.0

ex

int f6/0

no sh

ip add 10.1.6.11 255.255.255.0

ex

do wr

Router-Remote:

en

conf t

hostname Router-Remote

int f0/0

no sh

ip add 192.168.2.1 255.255.255.0

ex

int f1/0

no sh

ip add 10.2.1.22 255.255.255.0

ex

int f2/0

no sh

ip add 10.2.2.22 255.255.255.0

ex

int f3/0

no sh

ip add 10.2.3.22 255.255.255.0

ex

int f4/0

no sh

ip add 10.2.4.22 255.255.255.0

ex

int f5/0

no sh

ip add 10.2.5.22 255.255.255.0

ex

int f6/0

no sh

ip add 10.2.6.22 255.255.255.0

ex

do wr

Router1:

en

conf t

hostname Router1

int f0/0

no sh

ip add 10.1.1.1 255.255.255.0

ex

int f0/1

no sh

ip add 10.2.1.1 255.255.255.0

ex

do wr

Router2:

en

conf t

hostname Router2

int f0/0

no sh

ip add 10.1.2.2 255.255.255.0

ex

int f0/1

no sh

ip add 10.2.2.2 255.255.255.0

ex

do wr

Router3:

en

conf t

hostname Router3

int f0/0

no sh

ip add 10.1.3.3 255.255.255.0

ex

int f0/1

no sh

ip add 10.2.3.3 255.255.255.0

ex

do wr

Router4:

en

conf t

hostname Router4

int f0/0

no sh

ip add 10.1.4.4 255.255.255.0

ex

int f0/1

no sh

ip add 10.2.4.4 255.255.255.0

ex

do wr

Router5:

en

conf t

hostname Router5

int f0/0

no sh

ip add 10.1.5.5 255.255.255.0

ex

int f0/1

no sh

ip add 10.2.5.5 255.255.255.0

ex

do wr

Router6:

en

conf t

hostname Router6

int f0/0

no sh

ip add 10.1.6.6 255.255.255.0

ex

int f0/1

no sh

ip add 10.2.6.6 255.255.255.0

ex

do wr

Cấu hình OSPF:

Router-DTU:

router ospf 100

maximum-paths 6

network 192.168.1.0 0.0.0.255 area 0

network 10.0.0.0 0.255.255.255 area 0

exit

do wr


Router-Remote:

router ospf 100

maximum-paths 6

network 192.168.2.0 0.0.0.255 area 0

network 10.0.0.0 0.255.255.255 area 0

exit

do wr


RouterX:

en

conf t

router ospf 100

network 10.0.0.0 0.255.255.255 area 0

exit

do wr

Kiểm tra cấu hình & thông mạng:

Router-DTU#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface

10.2.6.6 1 FULL/BDR 00:00:35 10.1.6.6 FastEthernet6/0

10.2.5.5 1 FULL/BDR 00:00:37 10.1.5.5 FastEthernet5/0

10.2.4.4 1 FULL/BDR 00:00:39 10.1.4.4 FastEthernet4/0

10.2.3.3 1 FULL/BDR 00:00:34 10.1.3.3 FastEthernet3/0

10.2.2.2 1 FULL/BDR 00:00:37 10.1.2.2 FastEthernet2/0

10.2.1.1 1 FULL/BDR 00:00:35 10.1.1.1 FastEthernet1/0

Router-DTU#


Router-DTU#show ip route

Codes: L - local, C - connected, S - static, 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

i - IS-IS, su - IS-IS summary, 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, H - NHRP, l - LISP

+ - replicated route, % - next hop override


Gateway of last resort is not set


10.0.0.0/8 is variably subnetted, 18 subnets, 2 masks

C 10.1.1.0/24 is directly connected, FastEthernet1/0

L 10.1.1.11/32 is directly connected, FastEthernet1/0

C 10.1.2.0/24 is directly connected, FastEthernet2/0

L 10.1.2.11/32 is directly connected, FastEthernet2/0

C 10.1.3.0/24 is directly connected, FastEthernet3/0

L 10.1.3.11/32 is directly connected, FastEthernet3/0

C 10.1.4.0/24 is directly connected, FastEthernet4/0

L 10.1.4.11/32 is directly connected, FastEthernet4/0

C 10.1.5.0/24 is directly connected, FastEthernet5/0

L 10.1.5.11/32 is directly connected, FastEthernet5/0

C 10.1.6.0/24 is directly connected, FastEthernet6/0

L 10.1.6.11/32 is directly connected, FastEthernet6/0

O 10.2.1.0/24 [110/11] via 10.1.1.1, 00:07:20, FastEthernet1/0

O 10.2.2.0/24 [110/11] via 10.1.2.2, 00:07:20, FastEthernet2/0

O 10.2.3.0/24 [110/11] via 10.1.3.3, 00:07:10, FastEthernet3/0

O 10.2.4.0/24 [110/11] via 10.1.4.4, 00:07:00, FastEthernet4/0

O 10.2.5.0/24 [110/11] via 10.1.5.5, 00:07:00, FastEthernet5/0

O 10.2.6.0/24 [110/11] via 10.1.6.6, 00:06:50, FastEthernet6/0

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/24 is directly connected, FastEthernet0/0

L 192.168.1.1/32 is directly connected, FastEthernet0/0

O 192.168.2.0/24 [110/12] via 10.1.6.6, 00:06:50, FastEthernet6/0

[110/12] via 10.1.5.5, 00:07:00, FastEthernet5/0

[110/12] via 10.1.4.4, 00:07:00, FastEthernet4/0

[110/12] via 10.1.3.3, 00:07:10, FastEthernet3/0

[110/12] via 10.1.2.2, 00:07:20, FastEthernet2/0

[110/12] via 10.1.1.1, 00:07:20, FastEthernet1/0

Router-DTU#


Router-DTU#traceroute 192.168.2.22

Type escape sequence to abort.

Tracing the route to 192.168.2.22

VRF info: (vrf in name/id, vrf out name/id)

1 10.1.4.4 28 msec

10.1.5.5 8 msec

10.1.6.6 4 msec

2 10.2.1.22 36 msec

10.2.2.22 40 msec

10.2.3.22 16 msec

3 192.168.2.22 48 msec 36 msec 32 msec

Router-DTU#

By: dangocuong@gmail.com