CẤU HÌNH STACTIC ROUTE
I – Cấu hình
1. Cấu hình trên Router 1 (R1):
File cấu hình
1. Router 1:
version 12.1
service timestamps debug
uptime
service timestamps log
uptime
no service password-
encryption
!
hostname R1
!
!
ip subnet-zero
no ip domain-lookup
!
lane client flush
cns event-service server
!
!
interface Loopback1
ip address 172.16.1.1
255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.4.1
255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.12.1
255.255.255.252
!
interface Serial1/1
no ip address
shutdown
clockrate 2015232
!
interface Serial1/2
no ip address
shutdown
clockrate 2015232
!
interface Serial1/3
no ip address
shutdown
clockrate 2015232
!
ip classless
ip route 172.16.2.0
255.255.255.0 192.168.12.2
ip route 172.16.3.0
255.255.255.0 192.168.12.2
ip route 192.168.2.0
255.255.255.0 192.168.12.2
ip route 192.168.3.0
255.255.255.0 192.168.12.2
ip route 192.168.23.0
255.255.255.252 192.168.12.2
no ip http server
!
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
line aux 0
line vty 0 4
!
end
2.Cấu hình trên Router 2 (R2):
version 12.1
service timestamps debug
uptime
service timestamps log
uptime
no service password-
encryption
!
hostname R2
!
!
ip subnet-zero
no ip domain-lookup
!
lane client flush
cns event-service server
!
!
interface Loopback1
ip address 172.16.2.1
255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.2.1
255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.12.2
255.255.255.252
!
interface Serial1/1
ip address 192.168.23.1
255.255.255.252
!
interface Serial1/2
no ip address
shutdown
clockrate 2015232
!
interface Serial1/3
no ip address
shutdown
clockrate 2015232
!
ip classless
ip route 172.16.1.0
255.255.255.0 192.168.12.1
ip route 172.16.3.0
255.255.255.0 192.168.23.2
ip route 192.168.3.0
255.255.255.0 192.168.23.2
ip route 192.168.4.0
255.255.255.0 192.168.12.1
no ip http server
!
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
line aux 0
line vty 0 4
!
end
3.Cấu hình trên Router 3 (R3):
version 12.1
service timestamps debug
uptime
service timestamps log
uptime
no service password-
encryption
!
hostname R3
!
!
ip subnet-zero
no ip domain-lookup
!
lane client flush
cns event-service server
!
!
interface Loopback1
ip address 172.16.3.1
255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.3.1
255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.23.2
255.255.255.252
!
interface Serial1/1
no ip address
shutdown
clockrate 2015232
!
interface Serial1/2
no ip address
shutdown
clockrate 2015232
!
interface Serial1/3
no ip address
shutdown
clockrate 2015232
!
ip classless
ip route 172.16.1.0
255.255.255.0 192.168.23.1
ip route 172.16.2.0
255.255.255.0 192.168.23.1
ip route 192.168.2.0
255.255.255.0 192.168.23.1
ip route 192.168.4.0
255.255.255.0 192.168.23.1
ip route 192.168.12.0
255.255.255.252 192.168.23.1
no ip http server
!
line con 0
exec-timeout 0 0
logging synchronous
transport input none
line aux 0
line vty 0 4
!
end
II.Bảng định tuyến
1. Router 1:

2. Router 2:

3. Router 3:
III– Kiểm tra cấu hình bằng lệnh ping
1. Ping từ Router 1 đến tất cả các mạng:
2. Ping từ Router 2 đến tất cả các mạng:
3. Ping từ Router 3 đến tất cả các mạng: