HCIP第一次实验(复习)
作者:互联网
-
局域网广播域共有14个,故将192.168.1.0/24分成16份,需要从主机位分4位数
- 192.168.1.0000 0000 - 192.168.1.0000 1111 /28 R1L1
- 192.168.1.0001 0000 - 192.168.1.0001 1111 /28 R1L2
- 192.168.1.0010 0000 - 192.168.1.0010 1111 /28 R2l1
- 192.168.1.0011 0000 - 192.168.1.0011 1111 /28 R2L2
- 192.168.1.0100 0000 - 192.168.1.0100 1111 /28 R4L1
- 192.168.1.0101 0000 - 192.168.1.0101 1111 /28 R4L2
- 192.168.1.0110 0000 - 192.168.1.0110 1111 /28 R5L1
- 192.168.1.0111 0000 - 192.168.1.0111 1111 /28 R3-PC
- 192.168.1.1000 0000 - 192.168.1.1000 1111 /28 R1-R2
- 192.168.1.1001 0000 - 192.168.1.1001 1111 /28 R2-R3
- 192.168.1.1010 0000 - 192.168.1.1010 1111 /28 R3-R4
- 192.168.1.1011 0000 - 192.168.1.1011 1111 /28 R3-R1
- 192.168.1.1100 0000 - 192.168.1.1100 1111 /28 R4-R5 1000M
- 192.168.1.1101 0000 - 192.168.1.1101 1111 /28 R4-R5 100M
- 192.168.1.1110 0000 - 192.168.1.1110 1111 /28
- 192.168.1.1111 0000 - 192.168.1.1111 1111 /28
-
为每个接口配置ip
例子:
[r1]interface LoopBack 1
[r1-LoopBack1]ip add 192.168.1.0 28[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.129 28[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.130 28 -
路由器配置静态路由,缺省路由
每个网段都要包含,包括环回(图中未配置)
例子:
[r1]ip route-static 192.168.1.144 28 192.168.1.130
[r1]ip route-static 192.168.1.32 27 192.168.1.130(r2环回)
[r5]ip route-static 0.0.0.0 0.0.0.0 12.0.0.2
-
DHCP
例子:
[r3]dhcp enable
[r3-ip-pool-1]network 192.168.1.112 mask 28
[r3-ip-pool-1]gateway-list 192.168.1.113
[r3-ip-pool-1]dns-list 114.114.114.114 8.8.8.8
[r3-GigabitEthernet0/0/2]dhcp select global
-
浮动路由
例子:
[r5]ip route-static 192.168.1.0 24 192.168.1.193
[r5]ip route-static 192.168.1.0 24 192.168.1.209 preference 70
-
公网
1,利用ACL抓取感兴趣流[r2]acl 2000
[r5-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
2,在接口上配置EASY IP
[r5-GigabitEthernet0/0/2]nat outbound 2000
-
Telnet
例子:
[r1]aaa
[r1-aaa]local-user aa privilege level 15 password cipher 123456
[r1-aaa]local-user aa service-type telnet
[r1-aaa]user-interface vty 0 4
[r1-ui-vty0-4]authentication-mode aaa
[r5-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet inside 192.168.1.129 telnet
标签:0000,复习,ip,28,192.168,1111,实验,HCIP,r1 来源: https://blog.csdn.net/zx172406081/article/details/123614399