GATE#show running-config
Building configuration...
Current configuration : 544 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname GATE
!
!
memory-size iomem 15
ip subnet-zero
!
!
!
!
interface FastEthernet0
ip address 192.168.2.1 255.255.255.0
speed auto
!
interface Serial0
ip address 192.168.1.1 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
no ip classless
ip route 0.0.0.0 0.0.0.0 Serial0
ip route 0.0.0.0 0.0.0.0 192.168.1.2
no ip http server
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
no scheduler allocate
end
GATE#
ISP#show running-config
Building configuration...
Current configuration : 610 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname ISP
!
!
memory-size iomem 15
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 192.168.3.2 255.255.255.0
!
interface FastEthernet0
no ip address
shutdown
speed auto
!
interface Serial0
ip address 192.168.1.2 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
no ip classless
ip route 192.168.2.0 255.255.255.0 Serial0
ip route 192.168.2.0 255.255.255.0 192.168.2.1
no ip http server
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
no scheduler allocate
end
ISP#
Bên trên là file cấu hình của 2 router GATE và ISP.
Theo em đc học thì các supper net và default route chỉ đc phép dùng khí câu lệnh
ip classless đc enable. Trong bài lab này e đã dùng câu lệnh no ip classless để ko cho phép router sử dụng default route . Em ping từ GATE em ping tới loopback0 ip address : 192.168.3.2 vẫn thấy relpy . Mọi người giải thích giúp em đc ko ah.
thanks !
Comment