From 1e98345743a6fe478dcedebfa1c1b45a69774429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B0=B8=E6=B7=B3?= <2678158018@qq.com> Date: Fri, 10 May 2024 16:09:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E5=8D=81=E4=B9=9D=E6=AC=A1=E7=AC=94?= =?UTF-8?q?=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20240509\347\254\224\350\256\260.md" | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 "\345\276\220\346\260\270\346\267\263/20240509\347\254\224\350\256\260.md" diff --git "a/\345\276\220\346\260\270\346\267\263/20240509\347\254\224\350\256\260.md" "b/\345\276\220\346\260\270\346\267\263/20240509\347\254\224\350\256\260.md" new file mode 100644 index 0000000..196f1d4 --- /dev/null +++ "b/\345\276\220\346\260\270\346\267\263/20240509\347\254\224\350\256\260.md" @@ -0,0 +1,9 @@ +二层交换机和三层交换机的区别: +二层交换机:工作于数据链路层,基于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