首页 > 其他分享 >综合实验(六)

综合实验(六)

时间:2023-04-14 20:35:37浏览次数:26  
标签:number 192.168 down SW1 实验 user interface 综合

核心交换机配置telent
[SW1]telnet server enable 
[SW1]aaa
[SW1-aaa]local-user hcip privilege level 3 password cipher 123
Info: Add a new user.
[SW1-aaa]display this
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user hcip password cipher #*C>*$C`S!INZPO3JBXBHA!!
 local-user hcip privilege level 3
 local-user admin password simple admin
 local-user admin service-type http
#
return
[SW1-aaa]local-user hcip ?
  access-limit   Set access limit of user(s)
  ftp-directory  Set user(s) FTP directory permitted
  idle-timeout   Set the timeout period for terminal user(s)
  password       Set password 
  privilege      Set admin user(s) level
  service-type   Service types for authorized user(s)
  state          Activate/Block the user(s)
[SW1-aaa]local-user hcip service-type telnet 
[SW1]user-interface vty 0 4 ?
  <cr>  
[SW1]user-interface vty 0 4 
[SW1-ui-vty0-4]authentication-mode aaa
虚拟PC测试
<pc>telnet 192.168.254.2
Trying 192.168.254.2 ...
Press CTRL+K to abort
Connected to 192.168.254.2 ...


Login authentication


Username:aaa
Info: The connection was closed by the remote host.
<pc>
<pc>telnet 192.168.254.2
Trying 192.168.254.2 ...
Press CTRL+K to abort
Connected to 192.168.254.2 ...


Login authentication


Username:hcip
Password:
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
      The current login time is 2023-04-14 19:51:41.
<SW1>
核心交换机配置管理流量网关
[SW1]vlan 999
[SW1-vlan999]quit
[SW1]int vlanif 999
[SW1-Vlanif999]ip add 192.168.253.1 255.255.255.0
[SW1-Vlanif999]
接入交换机配置管理流量IP
[SW2]vlan 999
[SW2-vlan999]quit
[SW2]int vlanif 999
[SW2-Vlanif999]ip add 192.168.253.2 255.255.255.0
[SW2-Vlanif999]quit
[SW2]ip route-static 0.0.0.0 0 192.168.253.1   #### 关键一步,回包路由
[SW2]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
MEth0/0/1                         unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Vlanif1                           unassigned           up         down      
Vlanif200                         unassigned           up         down      
Vlanif999                         192.168.253.2/24     up         up        

------------------------配置远程访问用户
[SW2]aaa
[SW2-aaa]local-user hcip privilege level 3 password cipher 123
Info: Add a new user.
[SW2-aaa]local-user hcip service-type telnet
[SW2]user-interface vty 0 4 
[SW2-ui-vty0-4]authentication-mode aaa
模拟PC登陆接入交换机
<pc>telnet 192.168.253.2
Trying 192.168.253.2 ...
Press CTRL+K to abort
Connected to 192.168.253.2 ...


Login authentication


Username:hcip
Password:
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
      The current login time is 2023-04-14 20:10:24.
<SW2>dis ip in	
<SW2>dis ip interface br	
<SW2>dis ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
MEth0/0/1                         unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Vlanif1                           unassigned           up         down      
Vlanif200                         unassigned           up         down      
Vlanif999                         192.168.253.2/24     up         up        


标签:number,192.168,down,SW1,实验,user,interface,综合
From: https://blog.51cto.com/u_11726705/6191051

相关文章

  • 50 kWp并网光伏实验电站的综合设计、搭建与运行 | 并网光伏发电 | 垂杨光伏
    太阳能作为新能源的重要组成部分,凭借巨大的资源优势,其应用规模日益扩大并随着光伏发电技术的快速发展,各种新型光伏器件不断问世,为太阳能的开发利用提供了更多的机遇和发展潜力。考虑到现有光伏电站选用器件较为传统单一,不能满足于对新型光伏器件的性能进行实证对比研究,从而......
  • javaweb实验二
    实验项目名称:实验二  服务器端简单程序设计 一、实验目的通过一个小型网站的开发,加深对session,request,response,cookie等对象的理解,掌握其使用方法,进一步深入掌握HTML、CSS和JavaScript等知识。二、实验内容和基本要求1)编写index.jsp文件,展示某一类物品或知识的介绍,可以......
  • MATLAB代码:考虑能源集线器参的电热综合能源市场双层出清模型
    MATLAB代码:考虑能源集线器参的电热综合能源市场双层出清模型关键词:综合能源双层模型能源集线器 市场出清 参考文档:《ParticipationofanEnergyHubinElectricityandHeatDistributionMarkets:AnMPECApproach》完全复现仿真平台:MATLAB+CPLEX平台优势:代码具有......
  • matlab 代码基于主从博弈的共享储能与综合能源微网优化运行研究
    matlab代码基于主从博弈的共享储能与综合能源微网优化运行研究综合能源微网与共享储能的结合具有一定的创新性,在共享储能的背景下考虑微网运营商与用户聚合商之间的博弈关系,微网的收益和用户的收益之间达到均衡。采用主从博弈的方法,微网运营商作为上层领导者制定价格策略,用户聚......
  • matlab代码:计及条件风险价值的电-气综合能源系统能量-备用分布鲁棒优化
    matlab代码:计及条件风险价值的电-气综合能源系统能量-备用分布鲁棒优化关键词:wasserstein距离CVAR条件风险价值分布鲁棒优化电-气综合能源能量-备用调度参考文档《EnergyandReserveDispatchwithDistributionallyRobustJointChanceConstraints》主要内容:代码主要......
  • MATLAB代码:基于多目标粒子群算法冷热电联供综合能源系统运行优化
    MATLAB代码:基于多目标粒子群算法冷热电联供综合能源系统运行优化关键词:综合能源冷热电三联供 粒子群算法多目标优化参考文档:《基于多目标算法的冷热电联供型综合能源系统运行优化》仿真平台:MATLAB平台采用粒子群实现求解优势:代码注释详实,适合参考学习,非目前烂大街的版本,......
  • matlab代码 碳交易 需求响应 综合能源系统优化调度设计
    matlab代码碳交易需求响应综合能源系统优化调度设计,复现文献,效果明显。考虑碳交易机制+综合需求相应,算法使用CPLEX商业求解器,效果明显,适合初学者学习ID:51120669170150302......
  • 坚果云:2019年云综合收入0.55亿元,向Dropbox看齐
     云排名分析:坚果云,2019年云综合收入0.55亿元。2019年的时候,坚果云创始人兼CEO韩竹透露,坚果云目前已盈利,每年公司营收增速50%到100%,并且正在考虑上市,从目前财务状况看,快的话两三年就有可能。之前阿明(Aming)从2018年的公开信息和整体表现来看,估算2018年坚果云收入为0.35亿元。作为聚......
  • 亿方云:2019年云综合收入0.60亿元,360的好帮手
     云排名分析:亿方云,2019年云综合收入0.60亿元。 2020年4月,360公司公告全资收购企业文件管理与协作SaaS服务商亿方云,即杭州亿方云网络科技有限公司。只是收购完成后,亿方云将保持独立发展。当然,进入360集团的旗下,可以获得更多资源的互补,特别是与360安全云盘形成互补与配合发展。对......
  • 互联港湾,2019年云综合收入2.5亿元,业务调整再出发
     云排名分析:互联港湾,2019年云综合收入2.5亿元。 参考一下之前的营收和利润情况,在华星创业收购之前的2016互联港湾当时全年收入不超过1.3亿元,利润0.28亿元。2017年净亏损0.29亿元,年营收阿明(Aming)估算之前为1亿元,但是后来业内人士分析这个数字和实际的互联港湾IDC等业务规模有一定......