当前位置:网站首页>Hcip day 2 operation 7.17
Hcip day 2 operation 7.17
2022-07-22 00:51:00 【enkh amgahan 】
One 、 Build the experiment topology
Two 、 planning IP
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.0.17/28 up up
GigabitEthernet0/0/1 192.168.0.98/28 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.0.1/30 up up(s)
LoopBack1 192.168.0.5/30 up up(s)
LoopBack2 192.168.0.9/30 up up(s)
NULL0 unassigned up up(s)
[R1-GigabitEthernet0/0/1]
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.0.18/28 up up
GigabitEthernet0/0/1 192.168.0.33/28 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
<R2>
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.0.34/28 up up
GigabitEthernet0/0/1 192.168.0.81/28 up up
GigabitEthernet0/0/2 192.168.0.49/28 up up
GigabitEthernet4/0/0 192.168.0.66/28 up up
GigabitEthernet4/0/1 unassigned down down
GigabitEthernet4/0/2 unassigned down down
GigabitEthernet4/0/3 unassigned down down
NULL0 unassigned up up(s)
<R3>
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.0.82/28 up up
GigabitEthernet0/0/1 192.168.0.97/28 up up
GigabitEthernet0/0/2 unassigned up down
GigabitEthernet0/0/2.1 192.168.0.113/28 up up
GigabitEthernet0/0/2.2 192.168.0.129/28 up up
NULL0 unassigned up up(s)
[R4]
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.0.50/28 up up
GigabitEthernet0/0/1 192.168.0.65/28 up up
GigabitEthernet0/0/2 unassigned up down
NULL0 unassigned up up(s)
<R5>
[R5]interface g0/0/2
[R5-GigabitEthernet0/0/2]ip add 100.1.1.1 24
[ISP]int g0/0/0
[ISP-GigabitEthernet0/0/0]ip add 100.1.1.2 24
3、 ... and 、 Divide VLAN
[R4-GigabitEthernet0/0/1]int g0/0/2.1
[R4-GigabitEthernet0/0/2.1]dot1q termination vid 2
[R4-GigabitEthernet0/0/2.1]ip add 192.168.0.113 28
Jul 18 2022 12:33:48-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP on the interface GigabitEthernet0/0/2.1 has entered the UP state.
[R4-GigabitEthernet0/0/2.1]arp broadcast enable
[R4-GigabitEthernet0/0/2.1]q
[R4]int g0/0/2.2
[R4-GigabitEthernet0/0/2.2]dot1q termination vid 3
[R4-GigabitEthernet0/0/2.2]ip add 192.168.0.129 28
[R4-GigabitEthernet0/0/2.2]arp broadcast enable
Four 、DHCP
[R4]ip pool xixi
Info: It's successful to create an IP address pool.
[R4-ip-pool-xixi]network 192.168.0.112 mask 255.255.255.24
[R4-ip-pool-xixi]gateway-list 192.168.0.113
[R4-ip-pool-xixi]dns-list 8.8.8.8
[R4-ip-pool-xixi]ip pool haha
Info: It's successful to create an IP address pool.
[R4-ip-pool-haha]network 192.168.0.128 mask 255.255.255.240
[R4-ip-pool-haha]gateway-list 192.168.0.129
[R4-ip-pool-haha]dns-list 8.8.8.8
[R4]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[R4]int g0/0/2.1
[R4-GigabitEthernet0/0/2.1]dhcp select global
[R4-GigabitEthernet0/0/2.1]q
[R4]int g0/0/2.2
[R4-GigabitEthernet0/0/2.2]dhcp select global
[R4-GigabitEthernet0/0/2.2]q
5、 ... and 、VLAN To configure
[SW1]vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int g0/0/4
[SW1-GigabitEthernet0/0/4]port link-type trunk
[SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/4]int g0/0/3
[SW1-GigabitEthernet0/0/3]port link-type access
[SW1-GigabitEthernet0/0/3]undo port link-type
[SW1-GigabitEthernet0/0/3]port link-type trunk
[SW1-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/3]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 2
[SW1-GigabitEthernet0/0/1]int g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 3
[SW2]vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]interface g0/0/3
[SW2-GigabitEthernet0/0/3]port link-type trunk
[SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[SW2-GigabitEthernet0/0/3]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type access
[SW2-GigabitEthernet0/0/1]port default vlan 2
[SW2-GigabitEthernet0/0/1]int g0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 3
6、 ... and 、PC1-PC4 adopt DHCP obtain IP
7、 ... and 、 Static routing
#
ip route-static 192.168.0.32 255.255.255.240 192.168.0.18
ip route-static 192.168.0.48 255.255.255.240 192.168.0.18
ip route-static 192.168.0.64 255.255.255.240 192.168.0.18
ip route-static 192.168.0.80 255.255.255.240 192.168.0.97
ip route-static 192.168.0.112 255.255.255.240 192.168.0.97
ip route-static 192.168.0.128 255.255.255.240 192.168.0.97
#
return
[R1]
[R2]ip route-static 192.168.0.96 255.255.255.240 192.168.0.17
[R2]ip route-static 192.168.0.48 255.255.255.240 192.168.0.34
[R2]ip route-static 192.168.0.64 255.255.255.240 192.168.0.34
[R2]ip route-static 192.168.0.80 255.255.255.240 192.168.0.34
[R2]ip route-static 192.168.0.112 255.255.255.240 192.168.0.34
[R2]ip route-static 192.168.0.128 255.255.255.240 192.168.0.34
[R2]ip route-static 192.168.0.0 28 192.168.0.17
[R2
[R5]ip route-static 192.168.0.96 255.255.255.240 192.168.0.49
[R5]ip route-static 192.168.0.16 255.255.255.240 192.168.0.49
[R5]ip route-static 192.168.0.32 255.255.255.240 192.168.0.49
[R5]ip route-static 192.168.0.80 255.255.255.240 192.168.0.49
[R5]ip route-static 192.168.0.112 255.255.255.240 192.168.0.49
[R5]ip route-static 192.168.0.128 255.255.255.240 192.168.0.49
[R5]
[R5]ip route-static 192.168.0.0 28 192.168.0.49
[R5]
[R3]ip route-static 192.168.0.96 255.255.255.240 192.168.0.82
[R3]ip route-static 192.168.0.16 255.255.255.240 192.168.0.33
[R3]ip route-static 192.168.0.112 255.255.255.240 192.168.0.82
[R3]ip route-static 192.168.0.128 255.255.255.240 192.168.0.82
[R3]
[R3]ip route-static 192.168.0.0 28 192.168.0.33
[R3]ip route-static 192.168.0.0 28 192.168.0.82
[R3]
[R4]ip route-static 192.168.0.16 255.255.255.240 192.168.0.98
[R4]ip route-static 192.168.0.32 255.255.255.240 192.168.0.98
[R4]ip route-static 192.168.0.48 255.255.255.240 192.168.0.81
[R4]ip route-static 192.168.0.64 255.255.255.240 192.168.0.81
[R4]
[R4]ip route-static 192.168.0.0 28 192.168.0.98
[R4]
test
[R5]ping 192.168.0.1
PING 192.168.0.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Reply from 192.168.0.1: bytes=56 Sequence=3 ttl=253 time=40 ms
Reply from 192.168.0.1: bytes=56 Sequence=4 ttl=253 time=20 ms
Reply from 192.168.0.1: bytes=56 Sequence=5 ttl=253 time=40 ms
--- 192.168.0.1 ping statistics ---
5 packet(s) transmitted
3 packet(s) received
40.00% packet loss
round-trip min/avg/max = 20/33/40 ms
[R5]ping 192.168.0.5
PING 192.168.0.5: 56 data bytes, press CTRL_C to break
Reply from 192.168.0.5: bytes=56 Sequence=1 ttl=253 time=40 ms
Reply from 192.168.0.5: bytes=56 Sequence=2 ttl=253 time=30 ms
Reply from 192.168.0.5: bytes=56 Sequence=3 ttl=253 time=20 ms
Reply from 192.168.0.5: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 192.168.0.5: bytes=56 Sequence=5 ttl=253 time=40 ms
--- 192.168.0.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/32/40 ms
[R5]ping 192.168.0.9
PING 192.168.0.9: 56 data bytes, press CTRL_C to break
Reply from 192.168.0.9: bytes=56 Sequence=1 ttl=253 time=40 ms
Reply from 192.168.0.9: bytes=56 Sequence=2 ttl=253 time=20 ms
Reply from 192.168.0.9: bytes=56 Sequence=3 ttl=253 time=30 ms
Reply from 192.168.0.9: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 192.168.0.9: bytes=56 Sequence=5 ttl=253 time=30 ms
--- 192.168.0.9 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/30/40 ms
[R5]
8、 ... and 、 Empty interface , Guard ring
[R1]ip route-static 192.168.0.0 28 NULL 0
[R1]
Nine 、 Default route
[R1]ip route-static 0.0.0.0 0 192.168.0.18
[R1]ip route-static 0.0.0.0 0 192.168.0.97
[R1]
[R2]ip route-static 0.0.0.0 0 192.168.0.34
[R2]
[R4]ip route-static 0.0.0.0 0 192.168.0.81
[R4]
Ten 、 Change priority
[R3]ip route-static 0.0.0.0 0 192.168.0.50 preference 80
[R3]
[R3]ip route-static 0.0.0.0 0 192.168.0.65
test
[R5]ip route-static 0.0.0.0 0 100.1.1.2
[R5]
11、 ... and 、ACL
[R5]acl 2000
[R5-acl-basic-2000]rule 1 permit source any
[R5-acl-basic-2000]int g0/0/2
[R5-GigabitEthernet0/0/2]nat outbound 2000
[R5-GigabitEthernet0/0/2]
test
边栏推荐
- A simple way to get headers and cookies
- HCIA NAT实验报告 7.14
- the volume for a file has been externally altered so that the opened file is no longer valid
- Reading notes of redis deep adventure core principles and application practice
- Batch transfer (copy) files of the same type in the folder (win10)
- 小程序如何使用自定义导航栏
- How to use a custom navigation bar for applets
- hcip第八天
- JS common methods
- 2个小时拿下接口测试-黑马程序员,掌握接口用例的编写,接口信息解析,通过哦抓包解析接口信息,接口用例的设计方法,
猜你喜欢
随机推荐
js 常用的 方法
传统企业是否需要数据中台?
C#/VB.NET 添加多行文本水印到Word文档
Data and business: pursuit and achievement under the tide of digital transformation
Counterfeit money problem
解决spyder代码自动补全问题
h5 实现公众号登录
机器学习K-均值——nonzero(clusterAssment[冒号,0].A==cent
How to use a custom navigation bar for applets
dataframe 统计重复次数
基于业务的数据治理,让业务数据发挥长效价值
事件链、事件代理、页面的渲染过程、style的操作、防抖与节流【DOM(四)】
记一次网站渗透的漏洞挖掘记录
Request consolidation (batch) in high concurrency scenarios
小程序 如何上传多张图片
OOM 分析工具 MAT
原来它在数据中台建设中这么重要!
统计一年中每个月的数据
SparkSQL 实验
Viewing the mid stage value of cloud native technology from the popularity of prefabricated buildings (II)