随笔分类 -  网络工程

摘要:1 在华为设备上实施VLAN接入 [SW1]vlan 8 ^ [SW1-vlan8]description QCNA [SW1-vlan8] [SW1-vlan8]display port vlan active T=TAG U=UNTAG Port Link Type PVID VLAN List 阅读全文
posted @ 2023-10-21 15:38 xl4ng 阅读(33) 评论(0) 推荐(0) 编辑
摘要:1.在华三交换机上查看MAC地址表 [SW1]display mac-address MAC Address VLAN ID State Port/Nickname Aging [SW1]interface Vlan-interface 1 [SW1-Vlan-interface1]ip addre 阅读全文
posted @ 2023-10-21 10:14 xl4ng 阅读(541) 评论(0) 推荐(0) 编辑
摘要:1.配置交换机SW1作为客户端 [SW1]interface Vlanif 1 [SW1-Vlanif1]ip address 192.168.0.2 30 2.配置路由器R1作为服务端 [R1]int g0/0/0 [R1-GigabitEthernet0/0/0]ip address 192.1 阅读全文
posted @ 2023-10-18 20:43 xl4ng 阅读(22) 评论(0) 推荐(0) 编辑
摘要:1.在华为设备上配置SSH协议 1.1 按图配置端口的ip地址,并做连通性测试 [R1]interface g0/0/0 [R1-GigabitEthernet0/0/0]ip address 202.100.1.1 255.255.255.252 [R2]int g0/0/0 [R2-Gigabi 阅读全文
posted @ 2023-10-18 20:19 xl4ng 阅读(86) 评论(0) 推荐(0) 编辑
摘要:1. 选举根桥 1.1 比较优先级 1.2 比较MAC地址 2. 选举根端口 2.1 比较根路径开销 2.2 比较对端交换机的BID 2.3 比较对端交换机端口PID 2.4 比较本交换机端口PID 3. 选举指定端口 3.1 比较根路径开销,根桥上的端口、根端口对端端口都为指定端口 3.2 比较B 阅读全文
posted @ 2023-10-11 22:03 xl4ng 阅读(211) 评论(0) 推荐(0) 编辑
摘要:1 STP的基本概念 1.1 桥ID IEEE 802.1D标准中规定BID由16位的桥优先级(取值范围0~65535,必须为4096的倍数)和桥MAC地址构成。 每台运行STP的交换机都拥有一个唯一的BID。 BID桥优先级占据高16位,其余的低48位是桥MAC地址。 在STP网络中,BID最小的 阅读全文
posted @ 2023-10-10 21:49 xl4ng 阅读(201) 评论(0) 推荐(0) 编辑
摘要:1. 华为设备 1.1 配置R1 <Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname HW-R1 [HW-R1]int g0/0/1 [HW-R1-Gigab 阅读全文
posted @ 2023-10-09 23:16 xl4ng 阅读(32) 评论(0) 推荐(0) 编辑
摘要:1. 华为设备 <Huawei> <Huawei>system-view [Huawei]user-interface console 0 [Huawei-ui-console0]authentication-mode password [Huawei-ui-console0]set authent 阅读全文
posted @ 2023-10-09 22:21 xl4ng 阅读(122) 评论(0) 推荐(0) 编辑
摘要:1.说明 通常使用以下3个标题信息参数。 header参数:用来设置当用户登录设备时在终端上显示的标题信息。 login参数:指定用户在登录设备认证过程中激活终端连接时显示的标题信息。 shell参数:指定当用户成功登录设备并已经建立会话时显示的标题信息。 如果header的内容是字符串,用head 阅读全文
posted @ 2023-10-01 16:57 xl4ng 阅读(30) 评论(0) 推荐(0) 编辑
摘要:<Huawei>clock timezone BJ add 8 <Huawei>clock datetime 23:28:26 2023-9-30 <Huawei>display clock 2023-09-30 23:28:35 Saturday Time Zone(BJ) : UTC+08:00 阅读全文
posted @ 2023-09-30 23:29 xl4ng 阅读(3) 评论(0) 推荐(0) 编辑
摘要:1.配置R1端口ip <Huawei> <Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1 [R1]interf [R1]interface gi [R 阅读全文
posted @ 2023-09-30 23:19 xl4ng 阅读(40) 评论(0) 推荐(0) 编辑
摘要:<Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]user-interface con 0 [Huawei-ui-console0]auth [Huawei-ui-cons 阅读全文
posted @ 2023-09-30 23:01 xl4ng 阅读(11) 评论(0) 推荐(0) 编辑
摘要:<Huawei>system-view [Huawei] [Huawei]user-interface console 0 [Huawei-ui-console0]dis this # user-interface con 0 user-interface vty 0 4 # return [Hua 阅读全文
posted @ 2023-09-20 23:00 xl4ng 阅读(19) 评论(0) 推荐(0) 编辑
摘要:交换机配置 [SW1]vlan batch 100 200 [SW1]int g0/0/1 [SW1-GigabitEthernet0/0/1]port link-type access [SW1-GigabitEthernet0/0/1]port default vlan 100 [SW1-Gig 阅读全文
posted @ 2022-10-19 17:58 xl4ng 阅读(35) 评论(0) 推荐(0) 编辑
摘要:1、配置路由器AR1 [Huawei]sysname RouterA [RouterA]int g0/0/0.200 [RouterA-GigabitEthernet0/0/0.200]dot1q termination vid 200 [RouterA-GigabitEthernet0/0/0.2 阅读全文
posted @ 2022-10-18 23:08 xl4ng 阅读(141) 评论(0) 推荐(0) 编辑
摘要:1、配置路由器R1 <Huawei>system-view [Huawei]sysname AR1 [AR1]int s 0/0/0 [AR1-Serial0/0/0]ip add 12.1.1.1 24 [AR1-Serial0/0/0]q [AR1]int LoopBack 0 [AR1-Loo 阅读全文
posted @ 2022-10-18 21:21 xl4ng 阅读(146) 评论(0) 推荐(0) 编辑
摘要:1、配置路由器 [Huawei]sysname AR1 [AR1]int g 0/0/1 [AR1-GigabitEthernet0/0/1]ip add 192.168.200.1 24 [AR1-GigabitEthernet0/0/0]int g 0/0/0 [AR1-GigabitEther 阅读全文
posted @ 2022-10-18 15:06 xl4ng 阅读(400) 评论(0) 推荐(0) 编辑
摘要:1、Access端口配置 [Huawei]vlan 10 //创建VLAN10 [Huawei]dis vlan //查看VLAN信息 The total number of vlans is : 2 U: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vla 阅读全文
posted @ 2022-10-11 18:05 xl4ng 阅读(107) 评论(0) 推荐(0) 编辑
摘要:1、携带IEEE802.1q标签得数据帧格式 TPID(Tag Protocol Identifier):长度为2字节,固定值为0x8100,该字段的作用等同于以太网数据帧类型,标识这是一个携带IEEE802.1q标签的数据帧。如果不支持IEEE802.1q的设备收到这样的数据帧,会将其丢弃。 PR 阅读全文
posted @ 2022-10-11 16:38 xl4ng 阅读(2015) 评论(0) 推荐(1) 编辑
摘要:1、根桥选举 首先比较网桥ID优先级,越小则越优,默认优先级是32768.如果优先级一样,则比较系统MAC地址(非接口MAC地址),MAC地址越小越优先。 2、根端口选举 ① 比较BPDU报文中的根桥ID(RID),优选RID小的(在一个网络中只能存在一个根桥,所以RID都是一致的) ② 比较到达根 阅读全文
posted @ 2022-10-11 14:29 xl4ng 阅读(356) 评论(0) 推荐(0) 编辑