CCNA 5.0 (CCNA R&S) Bài lab EIGRP – Static
Đề bài
Cấu hình Gate
Router>
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname Gate
Gate(config)#ena
Gate(config)#enable pas
Gate(config)#enable password cisco
Gate(config)#li
Gate(config)#line co
Gate(config)#line console 0
Gate(config-line)#pas
Gate(config-line)#password cisco
Gate(config-line)#login
Gate(config-line)#exit
Gate(config)#li
Gate(config)#line vt
Gate(config)#line vty 0 4
Gate(config-line)#pas
Gate(config-line)#password cisco
Gate(config-line)#login
Gate(config-line)#exit
Gate(config)#ban
Gate(config)#banner mo
Gate(config)#banner motd “khong phan su mien vao”
Gate(config)#int s0/0/0
Gate(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Gate(config-if)#
Gate(config-if)#ip add
Gate(config-if)#ip address 177.77.7.1 255.255.255.0
Gate(config-if)#clo
Gate(config-if)#clock ra
Gate(config-if)#clock rate 56000
Gate(config-if)#exit
Gate(config)#int s0/1/0
Gate(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
Gate(config-if)#
Gate(config-if)#ip add
Gate(config-if)#ip address 192.168.3.1 255.255.255.0
Gate(config-if)#clo
Gate(config-if)#clock r
Gate(config-if)#clock rate 56000
Gate(config-if)#exit
Gate(config)#int s0/0/1
Gate(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Gate(config-if)#clo
Gate(config-if)#clock ra
Gate(config-if)#clock rate 56000
Gate(config-if)#ip add
Gate(config-if)#ip address 192.168.2.1 255.255.255.0
Gate(config-if)#exit
Gate(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
Gate(config)#router e
Gate(config)#router eigrp 50
Gate(config-router)#no au
Gate(config-router)#no auto-summary
Gate(config-router)#net
Gate(config-router)#network 192.168.2.0 0.0.0.255
Gate(config-router)#network 192.168.3.0 0.0.0.255
Gate(config-router)#re
Gate(config-router)#redistribute sta
Gate(config-router)#redistribute static s
Gate(config-router)#redistribute static su
Gate(config-router)#redistribute static sub
Gate(config-router)#redistribute static
Gate(config-router)#pas
Gate(config-router)#passive-interface s0/0/0
Gate(config-router)#exit
Gate(config)#exit
Gate#
%SYS-5-CONFIG_I: Configured from console by console
Gate#wr
Building configuration…
[OK]
Gate#
Cấu hình hv1
Router>
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname hv1
hv1(config)#int s0/0/0
hv1(config-if)#no shut
hv1(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
hv1(config-if)#
hv1(config-if)#ip add
hv1(config-if)#ip address
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
192.168.2.2 255.255.255.0
hv1(config-if)#exit
hv1(config)#int f0/0
hv1(config-if)#no shut
hv1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
hv1(config-if)#ip add 192.168.1.2 255.255.255.0
hv1(config-if)#exit
hv1(config)#router ei
hv1(config)#router eigrp 50
hv1(config-router)#no au
hv1(config-router)#no auto-summary
hv1(config-router)#net
hv1(config-router)#network 192.168.1.0 0.0.0.255
hv1(config-router)#network 192.168.2.0 0.0.0.255
hv1(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 50: Neighbor 192.168.2.1 (Serial0/0/0) is up: new adjacency
hv1(config-router)#pas
hv1(config-router)#passive-interface f0/0
hv1(config-router)#exit
hv1(config)#do wr
Building configuration…
[OK]
hv1(config)#
hv1(config)#
Cấu hình hv2
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname hv2
hv2(config)#int s0/0/0
hv2(config-if)#no shut
hv2(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
hv2(config-if)#ip add
hv2(config-if)#ip address
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
% Incomplete command.
hv2(config-if)#ip address 192.168.3.3 255.255.255.0
hv2(config-if)#exit
hv2(config)#int f0/0
hv2(config-if)#no shut
hv2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
hv2(config-if)#ip add
hv2(config-if)#ip address 192.168.4.3 255.255.255.0
hv2(config-if)#exit
hv2(config)#int s0/0/1
hv2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
hv2(config-if)#
hv2(config-if)#ip add
hv2(config-if)#ip address 172.16.1.3 255.255.255.0
hv2(config-if)#exit
hv2(config)#ip route 172.16.0.0 255.255.248.0 s0/0/1
hv2(config)#router
hv2(config)#router e
hv2(config)#router eigrp 50
hv2(config-router)#no au
hv2(config-router)#no auto-summary
hv2(config-router)#net
hv2(config-router)#network 192.168.3.0 0.0.0.255
hv2(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 50: Neighbor 192.168.3.1 (Serial0/0/0) is up: new adjacency
hv2(config-router)#network 192.168.4.0 0.0.0.255
hv2(config-router)#pas
hv2(config-router)#passive-interface s0/0/1
hv2(config-router)#exit
hv2(config)#do wr
Building configuration…
[OK]
hv2(config)#
hv2(config)#
Thiếu phần quảng bá định tuyến tĩnh
hv2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
hv2(config)#router ei
hv2(config)#router eigrp 50
hv2(config-router)#re
hv2(config-router)#redistribute sta
hv2(config-router)#redistribute static s
hv2(config-router)#redistribute static
hv2(config-router)#do wr
Building configuration…
[OK]
hv2(config-router)#
Cấu hình ISP
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname ISP
ISP(config)#int f0/0
ISP(config-if)#no shut
ISP(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
ISP(config-if)#ip add
ISP(config-if)#ip address 20.20.20.6 255.255.255.0
ISP(config-if)#exit
ISP(config)#int s0/0/0
ISP(config-if)#no shut
ISP(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
ISP(config-if)#
ISP(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
ISP(config-if)#ip add
ISP(config-if)#ip address 177.77.7.6 255.255.255.0
ISP(config-if)#exit
ISP(config)#ip route 192.168.0.0 255.255.248.0 s0/0/0
ISP(config)#ip route 172.16.0.0 255.255.248.0 s0/0/0
ISP(config)#exit
ISP#
%SYS-5-CONFIG_I: Configured from console by console
ISP#wr
Building configuration…
[OK]
ISP#
Cấu hình hv3
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname hv3
hv3(config)#int s0/0/0
hv3(config-if)#no shut
hv3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
hv3(config-if)#clo
hv3(config-if)#clock r
hv3(config-if)#clock rate
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
56000
hv3(config-if)#ip add 172.16.1.4 255.255.255.0
hv3(config-if)#exit
hv3(config)#int f0/0
hv3(config-if)#no shut
hv3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
hv3(config-if)#ip add
hv3(config-if)#ip address 172.16.3.4 255.255.255.0
hv3(config-if)#exit
hv3(config)#int s0/0/1
hv3(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
hv3(config-if)#
hv3(config-if)#clo
hv3(config-if)#clock ra
hv3(config-if)#clock rate 56000
hv3(config-if)#ip add
hv3(config-if)#ip address 172.16.2.4 255.255.255.0
hv3(config-if)#exit
hv3(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
hv3(config)#ip route 172.16.4.0 255.255.255.0 s0/0/1
hv3(config)#exit
hv3#
%SYS-5-CONFIG_I: Configured from console by console
hv3#wr
Building configuration…
[OK]
hv3#
Cấu hình hv4
Router>
Router>en
Router#cn t
^
% Invalid input detected at ‘^’ marker.
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname hv4
hv4(config)#int s0/0/0
hv4(config-if)#no shut
hv4(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
hv4(config-if)#ip add
hv4(config-if)#ip address 172.16.
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
2.5 255.255.255.0
hv4(config-if)#exit
hv4(config)#int f0/0
hv4(config-if)#no shut
hv4(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
hv4(config-if)#ip ad
hv4(config-if)#ip address 172.16.4.5 255.255.255.0
hv4(config-if)#exit
hv4(config)#ip rou
hv4(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
hv4(config)#exit
hv4#
%SYS-5-CONFIG_I: Configured from console by console
hv4#wr
Building configuration…
[OK]
hv4#
Vào web trên pc 172.16.4.30