From 5acd14d3ed76aab55ecc9671920493d1e34b2147 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 10 May 2024 14:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...5\261\202\344\272\244\346\215\242\346\234\272.md" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "\351\253\230\345\205\260\350\213\261/20240509-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" diff --git "a/\351\253\230\345\205\260\350\213\261/20240509-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" "b/\351\253\230\345\205\260\350\213\261/20240509-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" new file mode 100644 index 0000000..d5f6a1f --- /dev/null +++ "b/\351\253\230\345\205\260\350\213\261/20240509-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" @@ -0,0 +1,12 @@ +### +``` +二层交换机和三层交换机的区别: +二层交换机:工作于数据链路层,基于MAC地址通信,多应用于网络接入层和汇聚层。 +三层交换机:工作于网络层,基于IP协议通信。 + +三层交换机的相关命令: +Switch(config)#ip routing //开启路由功能,使不同网段的IP互通 +Switch(config)#int f0/1 +Switch(config-if)#no switchport //使其可以绑定IP +switchport trunk encapsulation dot1Q //将trunk模式封装成dot1Q协议模式 +``` \ No newline at end of file -- Gitee