From 10cdfca8920db255c8b093db44ded14fea4b0919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=95=BE?= <11824566+xu-lei0923@user.noreply.gitee.com> Date: Fri, 10 May 2024 15:39:56 +0000 Subject: [PATCH] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 徐蕾 <11824566+xu-lei0923@user.noreply.gitee.com> --- ...\202\344\272\244\346\215\242\346\234\272.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "23\345\276\220\350\225\276/20240510-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" diff --git "a/23\345\276\220\350\225\276/20240510-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" "b/23\345\276\220\350\225\276/20240510-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" new file mode 100644 index 0000000..cde2d8c --- /dev/null +++ "b/23\345\276\220\350\225\276/20240510-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" @@ -0,0 +1,17 @@ +# 三层交换机 + +三层交换机默认情况就是二层交换机 +在讲接口设为trunk模式前先将该端口封装成dot1q,命令为:Switchport trunk encapsulation dot1q +trunk模式在show r 中不会展示 + + +三层交换机的SV1可以来分别设置ip,并被远程访问到 +二层Switch的vlan1地址,只能当做远程管理地址使用 + +### 以下命令同时开才能使用 + +三层交换机要连接不同的网络就要启用路由功能 +命令为:(conf)#ip routing + +三层交换机默认是二层接口,使用命令:(conf-if)no switchport +可以启用三层接口,即当路由器的那种端口使用,可以直接配置ip \ No newline at end of file -- Gitee