Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Wednesday, December 5, 2018

1. Cấu hình các interface cho router .
Cấu hình R1 :

R1#conf t
R1(config)#int lo1
R1(config-if)#ip add 192.168.1.1 255.255.255.252
R1(config-if)#int l02
R1(config-if)#ip add 192.168.1.3 255.255.255.252
Bad mask /30 for address 192.168.1.3
R1(config-if)#ip add 192.168.2.1 255.255.255.252
R1(config-if)#int lo3
R1(config-if)#ip add 192.168.3.1 255.255.255.252
R1(config-if)#int lo4
R1(config-if)#ip add 192.168.4.1 255.255.255.252
R1(config-if)#int s2/0
R1(config-if)#no sh
R1(config-if)#ip add 1.1.1.1 255.255.255.248
R1(config-if)#int s2/1
R1(config-if)#no sh
R1(config-if)#ip add 2.2.2.2 255.255.255.248
Cấu hình trên R2 :
R2#conf t
R2(config)#int s2/0
R2(config-if)#no sh
R2(config-if)#ip add 1.1.1.2 255.255.255.248
R2(config-if)#int s2/1
R2(config-if)#no sh
R2(config-if)#ip add 3.3.3.2 255.255.255.248
Cấu hình trên R3 :
R3#conf t
R3(config)#int s2/0
R3(config-if)#no sh
R3(config-if)#ip add 3.3.3.1 255.255.255.248
R3(config-if)#
R3(config-if)#int s2/1
R3(config-if)#no sh
R3(config-if)#ip add 2.2.2.1 255.255.255.248 

R3(config-if)#int lo1
R3(config-if)#ip add 172.16.1.1 255.255.255.252
R3(config-if)#int lo2
R3(config-if)#ip add 172.16.2.1 255.255.255.252
R3(config-if)#int lo3
R3(config-if)#ip add 172.16.3.1 255.255.255.252
R3(config-if)#int lo4
R3(config-if)#ip add 172.16.4.1 255.255.255.252

2. Cấu hình và kiểm tra Route EIGRP:
- Cấu hình EIGRP
 
R1(config-if)#do show run | begin eigrp
router eigrp 10
 network 1.1.1.1 0.0.0.0
 network 2.2.2.2 0.0.0.0
 network 192.168.1.1 0.0.0.0
 network 192.168.2.1 0.0.0.0
 network 192.168.3.1 0.0.0.0
 network 192.168.4.1 0.0.0.0


R2(config-if)#do show run | begin eigrp
router eigrp 10
 network 1.1.1.2 0.0.0.0
 network 3.3.3.2 0.0.0.0


R3(config-router)#do show run | begin eigrp
router eigrp 10
 network 2.2.2.1 0.0.0.0
 network 3.3.3.1 0.0.0.0
 network 172.16.1.1 0.0.0.0
 network 172.16.2.1 0.0.0.0
 network 172.16.3.1 0.0.0.0
 network 172.16.4.1 0.0.0.0
!

- Kiểm tra EIGRP câu lệnh : Show ip eigrp neighbor và show ip route eigrp.

R1#show ip eigrp neighbor
EIGRP-IPv4 Neighbors for AS(10)
H   Address                 Interface              Hold Uptime   SRTT   RTO  Q  Seq
                                                   (sec)         (ms)       Cnt Num
1   2.2.2.1                 Se2/1                    11 00:10:07   15   100  0  14
0   1.1.1.2                 Se2/0                    13 00:15:53   13   100  0  31



R2#show ip eigrp neighbor
EIGRP-IPv4 Neighbors for AS(10)
H   Address                 Interface              Hold Uptime   SRTT   RTO  Q  Seq
                                                   (sec)         (ms)       Cnt Num
1   3.3.3.1                 Se2/1                    13 00:09:43   12   100  0  15
0   1.1.1.1                 Se2/0                    14 00:14:57   11   100  0  29

R3#show ip eigrp neighbor                                                   
EIGRP-IPv4 Neighbors for AS(10)
H   Address                 Interface              Hold Uptime   SRTT   RTO  Q  Seq
                                                   (sec)         (ms)       Cnt Num
1   2.2.2.2                 Se2/0                    12 00:11:11   11   100  0  30
0   3.3.3.2                 Se2/1                    12 00:11:43  430  2580  0  32

3. Cấu hình Summarization :
- Để cấu hình Auto Summarization ta vào EIGR và gõ câu lệnh :
R1(config-if)#router eigrp 10
R1(config-router)#auto-summary 

R2(config)#router eigrp 10
R2(config-router)#auto-summary

R3(config)#router eigrp 10
R3(config-router)#auto-summary
Sau khi cấu hình autosum kiểm tra lại route EIGRP
R1#show ip route eigrp

Gateway of last resort is not set

      1.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
D        1.0.0.0/8 is a summary, 00:04:43, Null0
      2.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
D        2.0.0.0/8 is a summary, 00:04:27, Null0
D     3.0.0.0/8 [90/2681856] via 2.2.2.1, 00:04:27, Serial2/1
                [90/2681856] via 1.1.1.2, 00:04:27, Serial2/0
D     172.16.0.0/16 [90/2297856] via 2.2.2.1, 00:04:27, Serial2/1
      192.168.1.0/24 is variably subnetted, 3 subnets, 3 masks
D        192.168.1.0/24 is a summary, 00:04:56, Null0
      192.168.2.0/24 is variably subnetted, 3 subnets, 3 masks
D        192.168.2.0/24 is a summary, 00:04:57, Null0
      192.168.3.0/24 is variably subnetted, 3 subnets, 3 masks
D        192.168.3.0/24 is a summary, 00:04:57, Null0
      192.168.4.0/24 is variably subnetted, 3 subnets, 3 masks
D        192.168.4.0/24 is a summary, 00:04:56, Null0

Monday, December 11, 2017

Failover là một trong những vấn đề không thể thiếu trong các hệ thống mạng, và ASA cũng vậy. Trên ASA Cisco có hỗ trợ tính năng Failover, kiểm tra ASA mình có license Failover hay không bằng câu lệnh show version hoặc show active-key

Sơ đồ triển khai :


Cầu hình cho R1:
==== Cấu hình trên R1======================
//Cấu hình ip cho e0/1.
R1#
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int e0/1
R1(config-if)#no sh
R1(config-if)#ip add dhcp
R1(config-if)# mac-address .........../điền MAC wifi máy tính bạn
//Cấu hình ip cho e0/0.
R1(config-if)#int e0/0
R1(config-if)#no sh
R1(config-if)#ip add
R1(config-if)# 192.168.10.254 255.255.255.0
//Cấu hình NAT cho mạng bên trong ra ngoài internet
R1(config)#ip access-list extended NAT
R1(config-if)# permit ip 192.168.10.0 0.0.0.255 any
R1(config-if)#permit ip 192.168.20.0 0.0.0.255 any
R1(config)#ip nat inside soure list NAT interface e0/1 overload

//Cấu hình default route trỏ về getwaye do DHCP cấp
R1(config)#ip route 0.0.0.0 0.0.0.0 10.71.1.2
R1(config)# ip route 192.168.20.0 255.255.255.0 192.168.10.1
=======Cấu hình trên ASA Active================
Active# conf t
Active(config)#int g0/1
Active(config-if)#no sh
Active(config-if)#nameif outside
Active(config-if)#ip add 192.168.10.1 255.255.255.0 standby 192.168.10.2
Active(config-if)#int g0/0
Active(config-if)#no sh
Active(config-if)#nameif inside
Active(config-if)#ip add 192.168.20.1 255.255.255.0 standby 192.168.20.2
Active(config)# failover lan unit primary
Active(config)#failover lan interface failover g0/2
Active(config)#failover interface ip failover 172.16.100.1 255.255.255.0 standby 172.16.100.2
Active(config)#failover
Active(config-if)#int g0/2
Active(config-if)#no shutdown
Active(config)#access-list TEST extendet permit ip any any    //tạo access-list cho ra ngoài. mặc định asa sẽ deny tất cả.
// tạo Defualt Route
Active(config)#route outside 0.0.0.0 0.0.0.0 192.168.10.1

=====Cấu hình trên Standby========
Standby(config)#failover lan unit secondary
Standby(config)#failover lan interface failover g0/2
Standby(config)#failover interface ip failover 192.168.20.1 255.255.255.0 standby 192.168.20.2
Standby(config)#failover
Standby(config)#int g0/2
Standby(config)#no shutdown

Kiểm tra hoạt động của failover.


Video hướng dẫn :


Xem nhiều nhất