首页 > 其他分享 >交换机配置白板模板

交换机配置白板模板

时间:2023-05-25 09:14:15浏览次数:49  
标签:service type 白板 交换机 user key local 模板 ssh

交换机配置白板

lldp enable 开启邻居

stp enable 开启生成树

gvrp 开启同步vlan

vlan 2 3 4 创建vlan

int g1/0/24 //Trunk 接口
descrip XXXXX
port link-type trunk
port trunk permit vlan all
gvrp

int g1/0/24 //access接口
port link-type access
port access vlan 3

ip route-static 0.0.0.0 0.0.0.0 1.1.1.1 //默认路由

时间配置
[H3C] clock protocol none
[H3C] clock timezone beijing add 8
<H3C> clock datetime hh:mm:ss year/month/day

版本5.2 ssh配置
ssh server enable //ssh登录配置
public-key local create rsa
public-key local create dsa

local-user anonymous
pass cip 密码
service-type ssh ter
authori level 3

local-user hqyunwei
pass cip 密码
service-type ssh ter
authori level 3

user-inter vty 0 4
authen sch

版本3.1 ssh配置
rsa local-key-pair create //F100-C-EI version3.4 生成key

public-key local create rsa
public-key local create dsa
ssh user anonymous authentication-type password
ssh user anonymous service-type stelnet

ssh user hqyunwei authentication-type password
ssh user hqyunwei service-type stelnet

local-user anonymous
pass cip 密码
service-type ssh ter
level 3

local-user hqyunwei
pass cip 密码
service-type ssh ter
level 3

user-inter vty 0 4
authen sch

版本7.1 ssh配置
ssh ser en
public-key local create rsa
public-key local create dsa

local-user anonymous class manage
password simple 密码
service-type ssh terminal
authorization-attribute user-role level-3
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator

local-user hqyunwei class manage
password simple 密码
service-type ssh terminal
authorization-attribute user-role level-3
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator

user-inter vty 0 4
authen sch

华为防火墙SSH配置

stelnet server enable

rsa local-key-pair create

aaa
manager-user anonymous
password cipher 密码
service-type terminal ssh
level 15

manager-user hqyunwei
password cipher 密码
service-type terminal ssh
level 15

user-interface vty 0 4
authentication-mode aaa

华为交换机SSH配置
stelnet server enable
rsa local-key-pair create

local-user admin password irreversible-cipher 密码
local-user admin privilege level 15
local-user admin service-type telnet terminal ssh

user-interface vty 0 4
authentication-mode aaa

 

华为防火墙禁止Ping及tracert
security-policy
rule name untrust_local_tracert
source-zone untrust
destination-zone local
service icmp
action deny
rule name ANY-ANY
action permit

外部接口
service-man ping deny

标签:service,type,白板,交换机,user,key,local,模板,ssh
From: https://www.cnblogs.com/niway/p/17430148.html

相关文章

  • 【Redis】自定义RedisTemplate模板,拿来直接使用
    以下是自定义RedisTemplate固定模板,拿来可以直接使用:packagecom.iot.back.message.process.config;importcom.fasterxml.jackson.annotation.JsonAutoDetect;importcom.fasterxml.jackson.annotation.PropertyAccessor;importcom.fasterxml.jackson.databind.ObjectMappe......
  • php实现占位符模板替换
    php实现占位符模板替换对接过微信模板消息,或者阿里大于接口的,应该都知道,三方会给你一些模板,模板里有一些占位符,你只需要按照模板里的占位符填充参数即可。demo,实现一个地址跳转系统用户提供域名和路径参数,系统配置模板即可,用户传参即可替换。//用户提供的参数$patterns='u......
  • 高精度模板-结构体
    #include<iostream>#include<cstring>#include<cstdio>#include<cmath>usingnamespacestd;structBigNum{intlen,s[9999];BigNum(){memset(s,0,sizeof(s));len=1;}BigNumoperator=(......
  • 模板
    C++提供了模板(template)编程的概念。所谓模板,实际上是建立一个通用函数或类,其类内部的类型和函数的形参类型不具体指定,用一个虚拟的类型来代表。这种通用的方式称为模板。模板是泛型编程的基础,泛型编程即以一种独立于任何特定类型的方式编写代码。一.函数模板1.定义:template......
  • 对应4种作文模板
    2016下半年(问题解决)Inthecontemporaryworld,_(主题词)have/hasbecomeincreasinglyimportant.It'sofgreatnecessityfor___to.Reasonsandconcreteevidencetosupportmyviewpointareasfollows.​ Inthefirstplace,thereisnodoubtthat_____________......
  • 考古笔记3:通过L3交换机实现VLAN间通讯
    本主要介绍:在cisco中通过L3交换机实现VLAN间通讯。拓扑拓扑A:配置过程配置步骤1:sw2SW2#vlandataSW2(vlan)#vlan10VLAN10added:Name:VLAN0010SW2(vlan)#vlan20VLAN20added:Name:VLAN0020SW2(vlan)#applyAPPLYcompleted.SW2(vlan)#exitAPPLYcompleted.E......
  • Acwing 798.差分矩阵(模板)
    题目#include<iostream>usingnamespacestd;constintN=1010;intn,m,q;inta[N][N],b[N][N];voidinsert(intx1,inty1,intx2,inty2,intc){b[x1][y1]+=c;b[x2+1][y1]-=c;b[x1][y2+1]-=c;b[x2+1][y2+1]+=......
  • 华三(H3C)交换机做堆叠-实测可用
    前提:交换机支持堆叠,而且两台交换机型号要一样,否则会出问题1配置前先不用插上堆叠线(1)配置DeviceB# 将DeviceB的成员编号配置为2,并重启设备使新编号生效。<Sysname>system-view[Sysname]irfmember1renumber2RenumberingthememberIDmayresultinconfigurati......
  • pta_【CPP0038】单向链表模板类
    #include<iostream>usingnamespacestd;template<typenameT>classNode{public:Node(Tdata):data(data),next(nullptr){cout<<"NodeConstructorrun"<<endl;}Node(constNode<T>&other)......
  • 泛型编程(GP)和C++标准模板库(STL)
    GenericProgramming(GP)泛型编程,就是使用template(模板)为主要工具来编写程序level0:使用C++标准库level1:认识C++标准库level2:良好使用C++标准库level3:扩充C++标准库C++StandardLibraryC++标准库,编译器带的,可以看到sourcecode至于StandardTemplateLibrary->STL标......