PS:思维导图在最下方!!!
要求:
步骤:
1.先给所有PC配上IP地址和网关.
2.对交换机进行配置和操作:
R1:
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
Mar 29 2024 18:22:53-08:00 R1 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R1-GigabitEthernet0/0/0]int s 4/0/0
[R1-Serial4/0/0]ip add 15.1.1.1 24
[R1-Serial4/0/0]q
[R1]ip route-static 0.0.0.0 0 15.1.1.5
[R1]ping 35.1.1.3
PING 35.1.1.3: 56 data bytes, press CTRL_C to break
Reply from 35.1.1.3: bytes=56 Sequence=1 ttl=254 time=160 ms
Reply from 35.1.1.3: bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 35.1.1.3: bytes=56 Sequence=3 ttl=254 time=20 ms
Reply from 35.1.1.3: bytes=56 Sequence=4 ttl=254 time=40 ms
Reply from 35.1.1.3: bytes=56 Sequence=5 ttl=254 time=20 ms
--- 35.1.1.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/54/160 ms
[R1]int s4/0/0
[R1-Serial4/0/0]ppp pap l
[R1-Serial4/0/0]ppp pap local-user r1 p
[R1-Serial4/0/0]ppp pap local-user r1 password c
[R1-Serial4/0/0]ppp pap local-user r1 password cipher r1234
[R1-Serial4/0/0]
[R1]int t0/0/0
[R1-Tunnel0/0/0]ip add 10.1.2.1 24
[R1-Tunnel0/0/0]tun
[R1-Tunnel0/0/0]tunnel-protocol g
[R1-Tunnel0/0/0]tunnel-protocol gre p
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]so
[R1-Tunnel0/0/0]source 15.1.1.1
Mar 29 2024 20:23:34-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R1-Tunnel0/0/0]
[R1-Tunnel0/0/0]nh
[R1-Tunnel0/0/0]nhrp n
[R1-Tunnel0/0/0]nhrp network-id 100
[R1-Tunnel0/0/0]
[r1]rip 1
[r1-rip-1]v 2
[r1-rip-1]und
[r1-rip-1]undo su
[r1-rip-1]undo summary
[r1-rip-1]net
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r1-rip-1]
[r1]int t0/0/0
[r1-Tunnel0/0/0]nh
[r1-Tunnel0/0/0]nhrp en
[r1-Tunnel0/0/0]nhrp entry mu
[r1-Tunnel0/0/0]nhrp entry multicast d
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]
[r1-Tunnel0/0/0]undo r
[r1-Tunnel0/0/0]undo rip sp
[r1-Tunnel0/0/0]undo rip split-horizon
R2:
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.2.254 24
[R2-GigabitEthernet0/0/0]
Mar 29 2024 18:24:32-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R2-GigabitEthernet0/0/0]int s 4/0/0
[R2-Serial4/0/0]ip add 25.1.1.2 24
[R2-Serial4/0/0]q
[R2]ip route-static 0.0.0.0 0 25.1.1.5
[r2]int ser4/0/0
[r2-Serial4/0/0]ppp ch
[r2-Serial4/0/0]ppp chap u
[r2-Serial4/0/0]ppp chap user r2
[r2-Serial4/0/0]ppp chap pas
[r2-Serial4/0/0]ppp chap password c
[r2-Serial4/0/0]ppp chap password cipher r2345
[r2-Serial4/0/0]
[r1]ac
[r1]acl 2
[r1]acl 20
[r1]acl 2000
[r1-acl-basic-2000]rul
[r1-acl-basic-2000]rule per
[r1-acl-basic-2000]rule permit s
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1-acl-basic-2000]q
[r1]int s4/0/0
[r1-Serial4/0/0]nat o
[r1-Serial4/0/0]nat outbound 2000
[r2]rip 1
[r2-rip-1]v 2
[r2-rip-1]undo s
[r2-rip-1]undo sum
[r2-rip-1]undo summary
[r2-rip-1]net
[r2-rip-1]network 192.168.2.0
[r2-rip-1]net
[r2-rip-1]network 10.0.0.0
[r2-rip-1]
[r2-Tunnel0/0/0]nhrp entry 10.1.2.1 15.1.1.1 register
[r2]int t0/0/0
[r2-Tunnel0/0/0]und
[r2-Tunnel0/0/0]undo rip sp
[r2-Tunnel0/0/0]undo rip split-horizon
[r2]acl 2000
[r2-acl-basic-2000]rul
[r2-acl-basic-2000]rule per
[r2-acl-basic-2000]rule permit s
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2-acl-basic-2000]q
[r2]int s4/0/0
[r2-Serial4/0/0]nat
[r2-Serial4/0/0]nat o
[r2-Serial4/0/0]nat outbound 2000
R3:
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.3.254 24
Mar 29 2024 18:25:44-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R3-GigabitEthernet0/0/0]int s 4/0/0
[R3-Serial4/0/0]ip add 35.1.1.3 24
[R3-Serial4/0/0]q
[R3]ip route-static 0.0.0.0 0 35.1.1.5
[R3]int s4/0/0
[R3-Serial4/0/0]link
[R3-Serial4/0/0]link-protocol h
[R3-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
[r3]rip 1
[r3-rip-1]v 2
[r3-rip-1]unn
[r3-rip-1]un
[r3-rip-1]undo sum
[r3-rip-1]undo summary
[r3-rip-1]net
[r3-rip-1]network 192.168.3.0
[r3-rip-1]network 10.0.0.0
[r3-Tunnel0/0/0]nhrp entry 10.1.2.1 15.1.1.1 register
[r3]int t0/0/0
[r3-Tunnel0/0/0]undo rip
[r3-Tunnel0/0/0]undo rip sp
[r3-Tunnel0/0/0]undo rip split-horizon
[r3]acl 2000
[r3-acl-basic-2000]ru
[r3-acl-basic-2000]rule per
[r3-acl-basic-2000]rule permit s
[r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[r3-acl-basic-2000]q
[r3]int s4/0/0
[r3-Serial4/0/0]nat
[r3-Serial4/0/0]nat ou
[r3-Serial4/0/0]nat outbound 2000
R4:
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 192.168.4.254 24
Mar 29 2024 18:27:19-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R4-GigabitEthernet0/0/1]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 45.1.1.1 24
Mar 29 2024 18:27:45-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R4-GigabitEthernet0/0/0]q
[R4]ip route-static 0.0.0.0 0 45.1.1.5
[r4]int t0/0/1
[r4-Tunnel0/0/1]ip add 10.1.1.4 24
[r4-Tunnel0/0/1]t
[r4-Tunnel0/0/1]tcun
[r4-Tunnel0/0/1]tu
[r4-Tunnel0/0/1]tunnel-protocol g
[r4-Tunnel0/0/1]tunnel-protocol gre
[r4-Tunnel0/0/1]s
[r4-Tunnel0/0/1]so
[r4-Tunnel0/0/1]source 45.1.1.1
[r4-Tunnel0/0/1]dest
[r4-Tunnel0/0/1]destination 15.1.1.1
Mar 29 2024 20:35:00-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[r4-Tunnel0/0/1]
[r4]rip 1
[r4-rip-1]v 2
[r4-rip-1]un
[r4-rip-1]undo sum
[r4-rip-1]undo summary
[r4-rip-1]ne
[r4-rip-1]network 192.168.4.0
[r4-rip-1]network 10.0.0.0
r4]acl 2000
[r4-acl-basic-2000]rul
[r4-acl-basic-2000]rule per
[r4-acl-basic-2000]rule permit s
[r4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[r4-acl-basic-2000]
[r4-acl-basic-2000]int g0/0/0
[r4-GigabitEthernet0/0/0]na
[r4-GigabitEthernet0/0/0]nat o
[r4-GigabitEthernet0/0/0]nat outbound 2000
ISP(R5):
[ISP]int s 4/0/1
[ISP-Serial4/0/1]ip add 15.1.1.5 24
[ISP-Serial4/0/1]
Mar 29 2024 18:29:21-08:00 ISP %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/1 has entered the UP state.
[ISP-Serial4/0/1]int s 3/0/1
[ISP-Serial3/0/1]ip add 25.1.1.5 24
[ISP-Serial3/0/1]
Mar 29 2024 18:29:58-08:00 ISP %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the UP state.
[ISP-Serial3/0/1]int s 4/0/0
[ISP-Serial4/0/0]ip add 35.1.1.5 24
[ISP-Serial4/0/0]
Mar 29 2024 18:30:18-08:00 ISP %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state.
[ISP-Serial4/0/0]int g0/0/0
[ISP-GigabitEthernet0/0/0]ip add 45.1.1.5 24
Mar 29 2024 18:30:44-08:00 ISP %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[ISP-GigabitEthernet0/0/0]q
[ISP-LoopBack0]ip add 5.5.5.5 24
[ISP-LoopBack0]q
[ISP]aaa
[ISP-aaa]local u
[ISP-aaa]loc
[ISP-aaa]local-user r1 pass
[ISP-aaa]local-user r1 password c
[ISP-aaa]local-user r1 password cipher r1234
Info: Add a new user.
[ISP-aaa]loc
[ISP-aaa]local-user
[ISP-aaa]local-user r
[ISP-aaa]local-user r1 ser
[ISP-aaa]local-user r1 service-type ppp
[ISP-aaa]q
[ISP]int ser4/0/1
[ISP-Serial4/0/1]ppp au
[ISP-Serial4/0/1]ppp authentication-mode p
[ISP-Serial4/0/1]ppp authentication-mode pap
[ISP-Serial4/0/1]
[ISP]aaa
[ISP-aaa]loc
[ISP-aaa]local-user r2 pass
[ISP-aaa]local-user r2 password c
[ISP-aaa]local-user r2 password cipher r2345
Info: Add a new user.
[ISP-aaa]loca
[ISP-aaa]local-user r
[ISP-aaa]local-user r1
[ISP-aaa]local-user r2 se
[ISP-aaa]local-user r2 service-type ppp
[ISP-aaa]q
[ISP]int se3/0/1
[ISP-Serial3/0/1]ppp au
[ISP-Serial3/0/1]ppp authentication-mode c
[ISP-Serial3/0/1]ppp authentication-mode chap
[ISP-Serial3/0/1]
[ISP-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Mar 29 2024 19:17:43-08:00 isp %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and t
hen selected Y.