首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

H3C_S3600 简单配置

<H3C> <H3C> <H3C>sy <H3C>system-view System View: return to User View with Ctrl+Z. [H3C]di [H3C]display cu [H3C]display current-configuration #  sysname H3C # radius scheme system # domain system # vlan 1  name home # vlan 2  name hanyutuiguang # vlan 3  name huanongzaixian # vlan 4  name dajiaoshi # vlan 5  name dongshizhang # vlan 6  name caiwubu #                                         vlan 7  name wufuqi # vlan 9 to 4092 # vlan 4094 # interface Vlan-interface1  ip address 192.168.1.254 255.255.255.0 # interface Vlan-interface2  ip address 192.168.2.254 255.255.255.0 # interface Vlan-interface3  ip address 192.168.3.254 255.255.255.0 # interface Vlan-interface4  ip address 192.168.4.254 255.255.255.0 # interface Vlan-interface5  ip address 192.168.5.254 255.255.255.0 # interface Vlan-interface6  ip address 192.168.6.254 255.255.255.0   # interface Vlan-interface7  ip address 192.168.7.254 255.255.255.0 # interface Aux1/0/0 # interface Ethernet1/0/1 # interface Ethernet1/0/2 # interface Ethernet1/0/3  port access vlan 2 # interface Ethernet1/0/4  port access vlan 2 # interface Ethernet1/0/5  port access vlan 2 # interface Ethernet1/0/6  port access vlan 3 # interface Ethernet1/0/7  port access vlan 3                       # interface Ethernet1/0/8  port access vlan 3 # interface Ethernet1/0/9  port access vlan 4 # interface Ethernet1/0/10  port access vlan 4 # interface Ethernet1/0/11  port access vlan 4 # interface Ethernet1/0/12  port access vlan 5 # interface Ethernet1/0/13  port access vlan 5 # interface Ethernet1/0/14  port access vlan 5 # interface Ethernet1/0/15  port access vlan 5                       # interface Ethernet1/0/16  port access vlan 6 # interface Ethernet1/0/17  port access vlan 6 # interface Ethernet1/0/18  port access vlan 7 # interface Ethernet1/0/19  port access vlan 7 # interface Ethernet1/0/20  port access vlan 7 # interface Ethernet1/0/21 # interface Ethernet1/0/22 # interface Ethernet1/0/23 # interface Ethernet1/0/24 #                                         interface Gigab

01
您找到你想要的搜索结果了吗?
是的
没有找到

【第1篇】TypeScript在Eclipse在线安装和使用教程

TypeScript是一种由微软开发的自由和开源的编程语言。它是JavaScript的一个超集,而且本质上向这个语言添加了可选的静态类型和基于类的面向对象编程。安德斯·海尔斯伯格,C#的首席架构师,已工作于TypeScript的开发。2012年十月份,微软发布了首个公开版本的TypeScript,2013年6月19日,在经历了一个预览版之后微软正式发布了正式版TypeScript 0.9,向未来的TypeScript 1.0版迈进了很大一步。 简介 编辑 TypeScript是一种由微软开发的自由和开源的编程语言。它是JavaScript的一个超集,而且本质上向这个语言添加了可选的静态类型和基于类的面向对象编程。安德斯·海尔斯伯格,C#的首席架构师,已工作于TypeScript的开发。[1-4] TypeScript扩展了 JavaScript 的句法,所以任何现有的JavaScript程序可以不加改变的在TypeScript下工作。TypeScript是为大型应用之开发而设计,而编译时它产生 JavaScript 以确保兼容性。[5] TypeScript 支持为已存在的 JavaScript 库添加类型信息的头文件,扩展了它对于流行的库如 jQuery,MongoDB,Node.js 和 D3.js 的好处。 2背景 TypeScript 起源于开发应用程序规模的 JavaScript 应用程序的需求。Microsoft 的语言开发者们说内部以及外部的客户都表示他们构建 JavaScript 代码的问题。 很多最终依赖于 JavaScript 的开发者通常用编译为 JavaScript 代码的另一种语言写脚本,例如 CoffeeScript 和 Script# (读作 ScriptSharp)。一个明显的劣势是也许无法从那另一种语言使用任何 JavaScript 的具体的语言特性,如果那种语言不支持它的话。 在 Microsoft 内部,它导致了自定义工具以简化 JavaScript 组件的编写的需求。 3特性 TypeScript 是一种给 JavaScript 添加特性的语言扩展。 ● 类型批注和编译时类型检查 ●类 ●接口 ●模块 [6] ●lambda 函数 语法上,TypeScript 很类似于 JScript .NET,另外一个添加了对静态类型,经典的面向对象语言特性如类,继承,接口和命名空间等的支持的 Microsoft 对 ECMA-262 语言标准的实现。 类型批注 TypeScript 通过类型批注提供静态类型以在编译时启动类型检查。这是可选的,而且可以被忽略而使用 JavaScript 常规的动态类型。 对于基本类型的批注是 number, bool 和 string。而弱或动态类型的结构则是 any 类型。 类型批注可以被导出到一个单独的声明文件以让使用类型的已被编译为 JavaScript 的 TypeScript 脚本的类型信息可用。批注可以为一个现有的 JavaScript 库声明,就像已经为 Node.js 和 jQuery 所做的那样。 当类型没有给出时,TypeScript 编译器利用类型推断以推断类型。如果由于缺乏声明,没有类型可以被推断出,那么它就会默认为是动态的 any 类型。 声明文件 当一个 TypeScript 脚本被编译时,有一个产生作为编译后的 JavaScript 的组件的一个接口而起作用的声明文件 (具有扩展名 .d.ts) 的选项。在这个过程中编译器基本上带走所有的函数和方法体而仅保留所导出类型的批注。当第三方开发者从 TypeScript 中使用它时,由此产生的声明文件就可以被用于描述一个 JavaScript 库或模块导出的虚拟的 TypeScript 类型。 声明文件的概念类似于 C/C++ 中头文件的概念。 类型声明文件可以为已存在的 JavaScript 库手写,就像为 jQuery 和 Node.js 所做的那样。 对 ECMAScript 6 的支持 TypeScript 增加了对为即将到来的 ECMAScript 6 标准所建议的特性的支持。 如下为其构想: 类 (以及继承) 模块Arrow functions 尽管标准还未准备就绪,Microsoft 说它的目标是使 TypeScript 的特性与建议的标准看齐。 类 TypeScript 支持集成了可选的类型批注支持的 ECMAScript 6 的类。 泛型 这种语言的规范说明一个未来的版本将会支持基于类型擦除的泛型编程。 与 JavaScript 的兼容性 TypeScript 是 JavaScript

01

go的interface的使用

package main import ( "fmt" ) //定义:Interface 是一组抽象方法(未具体实现的方法/仅包含方法名参数返回值的方法)的集合,有点像但又不同于其他编程语言中的 interface 。type interfaceName interface {//方法列表} //注意:1:interface 可以被任意对象实现,一个类型/对象也可以实现多个 interface,2:方法不能重载,如 eat() eat(s string) 不能同时存在 //值:声明为 interface 类型的变量,可以存储任何实现了 interface 中所有方法的类型的变量(对象)。类的值类型传递方法会自动生成对应的引用类型传递方法,反之不成立 //组合:将一个 interface1 嵌入到另一个 interface2 的声明中。其作用相当于把 interface1 的函数包含到 interface2 中,但是组合中不同有重复的方法。1.只要两个接口中的方法列表相同(与顺序无关),即为相同的接口,可以相互赋值。2. interface1 的方法列表属于另一个 interface2 的方法列表的子集,interface2 可以赋值给 interface1,反之不成立(因为方法缺失),interface2 中的方法会覆盖 interface1 中同名的方法。3.可以嵌入包中的 interface type person struct { name string age int } func (p person) printMsg() { fmt.Printf("I am %s, and my age is %d.\n", p.name, p.age) } func (p person) eat(s string) { fmt.Printf("%s is eating %s ...\n", p.name, s) } func (p person) drink(s string) { fmt.Printf("%s is drinking %s ...\n", p.name, s) } type people interface { printMsg() peopleEat //组合 peopleDrink //eat() //不能出现重复的方法 } /** //与上面等价 type people interface { printMsg() eat() drink() } */ type peopleDrink interface { drink(s string) } type peopleEat interface { eat(s string) } type peopleEatDrink interface { eat(s string) drink(s string) } //以上 person 类[型]就实现了 people/peopleDrink/peopleEat/peopleEatDrink interface 类型 type foodie struct { name string } func (f foodie) eat(s string) { fmt.Printf("I am foodie, %s. My favorite food is the %s.\n", f.name, s) } //foodie 类实现了 peopleEat interface 类型 func echoArray(a interface{}) { b, _ := a.([]int) //这里是断言实现类型转换,如何不使用就会报错 for _, v := range b { fmt.Println(v, " ") } return } //任何类型都可以是interface //要点:1interface关键字用来定义一个接口,2.Go没有implements、extends等关键字,3.实现一个接口的方法就是直接定义接口中的方法4.要实现多态,就要用指针或&object语法 func main() { //定义一个people interface类型的变量p1 var p1 people p1 = person{"zhuihui", 40} p1.printMsg() p1.drin

04

ENSP HCIA综合实验

1、PC1、PC3在同一vlan,PC2、PC4在同一vlan,同vlan下网段相同 2、为了提高安全性,PC3、PC4做基于MAC的vlan 3、SW3-SW4之间做LACP模式的链路聚合,最大活动链路为两条,允许抢占。 4、接入层交换机为二层交换机。汇聚层为三层交换机, vlan10的网关在SW3上,VLAN20的网关在SW4上。 5、为了保证可靠性,交换机之间互联链路允许所有vlan通行。 6、内网区域使用OSPF全互联。AR3为内网的Telnet服务器。 7、AR1-AR2之间做浮动路由。 8、AR2为NAT设备,使用NAPT访问外网。AR3作为内网Telnet服务器,需要映射到公网中,使公网设备能够访问内网的Telnet服务器 9、公网区域使用OSPF全互联。每台路由器都需创建一个loopback接口,(开启OSPF设备AR2、4、5、6、7) 接口编号为当前路由器的设备编号。公网区域loopback接口要求也能全互访。严禁公网路由进入私网。 10、AR7作为第二个私网的出口路由器,使用静态NAT提供访问公网的服务。仅允许PC5、6进行地址转换访问公网 11、PC5、6处于不同网段,要求使用单臂路由互通。 12、交换机7作为二层交换机,使用hybird接口,AR8能和AR7、AR9互访,但AR7和AR9无法通信。AR9作为Telnet内网服务器 13、在内网1中,禁止PC2、PC3远程登陆Telnet内网服务器。但是可以ping通Telnet服务器。 禁止PC1、PC4,ping通Telnet服务器,但可以远程登陆Telnet服务器 14、公网设备AR5上存在10.1.0.0/24网段–10.1.10.0/24网段(使用loopback接口创建该网段) 要求内网PC1、3设备仅能ping通AR5上的偶数网段,PC2、4仅能ping通AR5的奇数网段。 15、要求PC5、6访问AR2的G0/0/2接口时,流量路径仅为AR7-AR5-AR4。同一时刻之内,访问AR2的G0/0/2接口仅能出现一条路由。 16、要求PC1能ping通PC5,做NAT444,在AR7的NAT444中使用静态NAT 17、附加题,做Telnet的路由器使用3A认证的方式 18、注意,PC无法Telnet,可以使用其他三层设备Telnet

01

【从零开始学深度学习编译器】十八,MLIR中的Interfaces

这篇文章用来了解一下MLIR中的Interfaces(接口)。MLIR是一个通用可扩展的框架,由不同层次的具有 特定属性,Operation以及Type的Dialects构成。正是由于Dialects的分层设计, 使得MLIR可以表达多种语意和抽象级别的Operation。但这个分级设计也存在一个缺点,那就是在不同的Dialect层次进行Operation转换或者做变换(Pass)的时候我们需要明确每个Dialect下的每个Operation的具体语意,否则就可能会转换或变换失败。其实基于MLIR开发过的读者应该碰到过组合一些MLIR Pass对一个MLIR文件进行Lower的时候,有可能出现Op转换失败的情况。为了缓解这种情况,MLIR提出了Interfaces。实际上在【从零开始学深度学习编译器】十三,如何在MLIR里面写Pass? 这里我们已经利用过Interfaces来实现内联以及形状推导Pass了。这一节就更深入的了解一下MLIR中的Interfaces,最后还结合了OneFlow IR中的UserOpCompatibleInterface例子来进一步加深了解。

02

ipv6 ospfv3 tunnel

Current configuration : 1239 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 ip cef ! ! ! ! no ip domain lookup ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface FastEthernet0/0  no ip address  shutdown  duplex auto  speed auto ! interface Serial0/0  no ip address  ipv6 address 2026::12:1/122  ipv6 ospf 6 area 12  clock rate 2000000 ! interface FastEthernet0/1  no ip address  shutdown  duplex auto  speed auto ! interface Serial0/1  no ip address  shutdown  clock rate 2000000 ! interface Serial0/2  no ip address  shutdown  clock rate 2000000 ! interface Serial1/0  no ip address  shutdown  serial restart-delay 0 ! interface Serial1/1  no ip address  shutdown  serial restart-delay 0 ! interface Serial1/2  no ip address  shutdown  serial restart-delay 0 ! interface Serial1/3  no ip address  shutdown  serial restart-delay 0 !         ! ! no ip http server no ip http secure-server ! ipv6 router ospf 6  router-id 1.1.1.1  log-adjacency-changes ! ! ! ! ! control-plane ! ! ! ! ! ! ! ! !         ! line con 0  exec-timeout 0 0  logging synchronous line aux 0 line vty 0 4  login ! ! end

01
领券