三层架构实验 HCIP2

在这里插入图片描述
[sw1]stp enable
[sw1]st
[sw1]stp m
[sw1]stp mode m
[sw1]stp mode mstp
[sw1]s
[sw1]stp re
[sw1]stp region-configuration
[sw1-mst-region]r
[sw1-mst-region]re
[sw1-mst-region]region-name ss
[sw1-mst-region]ins
[sw1-mst-region]instance 1 v
[sw1-mst-region]instance 1 vlan 1
[sw1-mst-region]ins
[sw1-mst-region]instance 2 v
[sw1-mst-region]instance 2 vlan 2
[sw1-mst-region]
[sw1-mst-region]
[sw1-mst-region]ac
[sw1-mst-region]active r
[sw1-mst-region]active region-configuration
[sw1]display current-configuration | include root
stp instance 1 root primary
stp instance 2 root secondary
[sw2]stp enable
[sw2]stp m
[sw2]stp mode m
[sw2]stp mode mstp
[sw2]s
[sw2]stp r
[sw2]stp region-configuration
[sw2-mst-region]re
[sw2-mst-region]region-name ss
[sw2-mst-region]ins
[sw2-mst-region]instance 1
[sw2-mst-region]instance 1 v
[sw2-mst-region]instance 1 vlan 1
[sw2-mst-region]ins
[sw2-mst-region]instance 2 v
[sw2-mst-region]instance 2 vlan 2
[sw2-mst-region]
[sw2-mst-region]
[sw2-mst-region]a
[sw2-mst-region]active r
[sw2-mst-region]active region-configuration
[sw2]display current-configuration | include root
stp instance 1 root secondary
stp instance 2 root primary
[sw2-GigabitEthernet0/0/3]port link-type trunk
[sw2-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[sw2]interface e
[sw2]interface Eth-Trunk
[sw2]interface Eth-Trunk 0
[sw2-Eth-Trunk0]q
[sw2]int g0/0/9
[sw2-GigabitEthernet0/0/9]e
[sw2-GigabitEthernet0/0/9]eth-trunk 0
[sw2-GigabitEthernet0/0/10]e
[sw2-GigabitEthernet0/0/10]eth-trunk 0
[sw2]interface Vlan2
[sw2-Vlanif2]
Apr 21 2021 22:14:40-08:00 sw2 %%01IFNET/4/IF_STATE(l)[1]:Interface Vlanif2 has
turned into UP state.
[sw2-Vlanif2]
[sw2-Vlanif2]
[sw2-Vlanif2]ip add
[sw2-Vlanif2]ip address 172.16.2.253 24
[sw2-Vlanif1]ip add
[sw2-Vlanif1]ip address 172.16.1.253 24
[sw1]interface Vlan1
[sw1-Vlanif1]ip a
[sw1-Vlanif1]ip address 172.16.1.254 24
[sw1-Vlanif1]
sw1]interface Vlan2
[sw1-Vlanif2]
Apr 21 2021 22:13:27-08:00 sw1 %%01IFNET/4/IF_STATE(l)[1]:Interface Vlanif2 has
turned into UP state.
[sw1-Vlanif2]ip add
[sw1-Vlanif2]ip address 172.16.2.254 24
vrrp
sw2]interface Vlanif 2
[sw2-Vlanif2]v
[sw2-Vlanif2]vrrp v
[sw2-Vlanif2]vrrp vrid 1 v
[sw2-Vlanif2]vrrp vrid 1 virtual-ip 172.16.2.100
[sw2-Vlanif2]v
[sw2-Vlanif2]vrrp v
[sw2-Vlanif2]vrrp vrid

[sw2-Vlanif2]vrrp vrid p
[sw2-Vlanif2]vrrp vrid 1 p
[sw2-Vlanif2]vrrp vrid 1 pr
[sw2-Vlanif2]vrrp vrid 1 priority 101

[sw2-Vlanif2]vrrp vrid 1 ta
[sw2-Vlanif2]vrrp vrid 1 ta
[sw2-Vlanif2]vrrp vrid 1 tr
[sw2-Vlanif2]vrrp vrid 1 track in
[sw2-Vlanif2]vrrp vrid 1 track interface g
[sw2-Vlanif2]vrrp vrid 1 track interface GigabitEthernet 0/0/1
[sw2-Vlanif2]
[sw2-Vlanif2]
[sw2]interface v
[sw2]interface Vlanif 1
[sw2-Vlanif1]v
[sw2-Vlanif1]vrrp v
[sw2-Vlanif1]vrrp vrid 1 v
[sw2-Vlanif1]vrrp vrid 1 virtual-ip 172.16.1.100
[sw1]interface Vlanif 1
[sw1-Vlanif1]vrr
[sw1-Vlanif1]vrrp v
[sw1-Vlanif1]vrrp vrid 1v
[sw1-Vlanif1]vrrp vrid 1 v
[sw1-Vlanif1]vrrp vrid 1 virtual-ip 172.16.1.100
[sw1-Vlanif1]
Apr 21 2021 22:20:06-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 19, the
change loop count is 0, and the maximum number of records is 4095.
Apr 21 2021 22:20:08-08:00 sw1 %%01VRRP/4/STATEWARNINGEXTEND(l)[5]:Virtual Route
r state BACKUP changed to MASTER, because of protocol timer expired. (Interface=
Vlanif1, VrId=1, InetType=IPv4)
[sw1-Vlanif1]
[sw1-Vlanif1]
[sw1-Vlanif1]v
[sw1-Vlanif1]vrrp v
[sw1-Vlanif1]vrrp vrid 1
[sw1-Vlanif1]vrrp vrid 1 p
[sw1-Vlanif1]vrrp vrid 1 pr
[sw1-Vlanif1]vrrp vrid 1 priority 101
[sw1-Vlanif1]v
Apr 21 2021 22:20:36-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 20, the
change loop count is 0, and the maximum number of records is 4095.
[sw1-Vlanif1]vrrp v
[sw1-Vlanif1]vrrp vrid 1 t
[sw1-Vlanif1]vrrp vrid 1 tr
[sw1-Vlanif1]vrrp vrid 1 track i
[sw1-Vlanif1]vrrp vrid 1 track interface g
[sw1-Vlanif1]vrrp vrid 1 track interface GigabitEthernet 0/0/1
[sw1-Vlanif1]int
[sw1-Vlanif1]interface-parameter-ty
Apr 21 2021 22:21:16-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 21, the
change loop count is 0, and the maximum number of records is 409
^
Error:Incomplete command found at ‘^’ position.
[sw1-Vlanif1]int
[sw1-Vlanif1]interface v
[sw1-Vlanif1]interface vl
[sw1-Vlanif1]interface vl
[sw1-Vlanif1]q
[sw1]int
[sw1]interface v
[sw1]interface Vlanif 2
[sw1-Vlanif2]v
[sw1-Vlanif2]vrrp v
[sw1-Vlanif2]vrrp vrid 1 v
[sw1-Vlanif2]vrrp vrid 1 virtual-ip 172.16.2.100
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
ip pool vlan1
gateway-list 172.16.1.100
network 172.16.1.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8

ip pool vlan2
gateway-list 172.16.2.100
network 172.16.2.0 mask 255.255.255.0
dns-list 114.114.114.114 8.8.8.8

aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http

interface Vlanif1
ip address 172.16.1.254 255.255.255.0
vrrp vrid 1 virtual-ip 172.16.1.100
vrrp vrid 1 priority 101
vrrp vrid 1 track interface GigabitEthernet0/0/1
dhcp select global

interface Vlanif2
ip address 172.16.2.254 255.255.255.0
vrrp vrid 1 virtual-ip 172.16.2.100
dhcp select global

interface Vlanif3
ip address 172.16.0.1 255.255.255.252

interface MEth0/0/1

interface Eth-Trunk0
port link-type trunk
port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/4

interface GigabitEthernet0/0/5

interface GigabitEthernet0/0/6

interface GigabitEthernet0/0/7

interface GigabitEthernet0/0/8

interface GigabitEthernet0/0/9
eth-trunk 0

interface GigabitEthernet0/0/10
eth-trunk 0

interface GigabitEthernet0/0/11

interface GigabitEthernet0/0/12

interface GigabitEthernet0/0/13

interface GigabitEthernet0/0/14

interface GigabitEthernet0/0/15

interface GigabitEthernet0/0/16

interface GigabitEthernet0/0/17

interface GigabitEthernet0/0/18

interface GigabitEthernet0/0/19

interface GigabitEthernet0/0/20

interface GigabitEthernet0/0/21

interface GigabitEthernet0/0/22

interface GigabitEthernet0/0/23

interface GigabitEthernet0/0/24

interface NULL0

ospf 10 router-id 2.2.2.2
default-route-advertise always
area 0.0.0.0
network 172.16.0.0 0.0.255.255

user-interface con 0
user-interface vty 0 4

return

[sw1-ospf-10]
[sw1-ospf-10]
[sw1-ospf-10]
[sw1-ospf-10]
[sw1-ospf-10]
[sw1-ospf-10]
[sw1-ospf-10]undo default-route-advertise always
^
Error:Too many parameters found at ‘^’ position.
[sw1-ospf-10]shut default-route-advertise always
^
Error: Unrecognized command found at ‘^’ position.

interface GigabitEthernet0/0/0
ip address 12.1.1.1 255.255.255.0

interface GigabitEthernet0/0/1
ip address 172.16.0.2 255.255.255.252

interface GigabitEthernet0/0/2
ip address 172.16.0.6 255.255.255.252

interface NULL0

ospf 10 router-id 1.1.1.1
default-route-advertise always
area 0.0.0.0
network 172.16.0.0 0.0.255.255

ip route-static 0.0.0.0 0.0.0.0 12.1.1.2

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
对于三层架构的HCIP实验,可以进行以下步骤: 1. 首先,了解三层架构的基本概念和原理。三层架构是一种常见的软件架构模式,将应用程序划分为三个不同的层次:表示层、业务逻辑层和数据访问层。表示层负责用户界面的展示,业务逻辑层处理应用程序的核心逻辑,数据访问层负责数据库的操作。 2. 设计三层架构的应用程序。根据实验的需求,设计一个符合三层架构的应用程序,确定每个层次的功能和职责,以及它们之间的交互方式。 3. 实现表示层。在实验中,可以选择使用Web开发技术(如HTML、CSS和JavaScript)来实现表示层,设计用户界面并与用户进行交互。 4. 实现业务逻辑层。根据实验需求,实现应用程序的核心逻辑。这些逻辑可以包括数据处理、业务规则和算法等。 5. 实现数据访问层。设计数据库结构,并使用合适的数据库管理系统(如MySQL、Oracle等)来实现数据访问层。编写数据库操作的代码,包括增删改查等操作。 6. 进行集成测试和调试。将三个层次的代码进行集成,并进行测试和调试,确保应用程序的功能正常运行。 7. 进行性能测试和优化。对应用程序进行性能测试,找出可能存在的性能瓶颈,并进行相应的优化,以提高应用程序的响应速度和吞吐量。 8. 撰写实验报告。总结实验过程和结果,包括设计思路、实现步骤、遇到的问题及解决方法,以及实验结果的分析和总结。 希望以上步骤对你有所帮助!如果有其他问题,欢迎继续提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值