From 5371f1d61769ab0e7b4d465e70696ed3180e1035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E5=AF=8C?= <614113540@qq.com> Date: Fri, 10 May 2024 13:12:24 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 周富 <614113540@qq.com> --- .../20240509\347\254\224\350\256\260.md" | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 "\345\221\250\345\257\214/20240509\347\254\224\350\256\260.md" diff --git "a/\345\221\250\345\257\214/20240509\347\254\224\350\256\260.md" "b/\345\221\250\345\257\214/20240509\347\254\224\350\256\260.md" new file mode 100644 index 0000000..0c2a129 --- /dev/null +++ "b/\345\221\250\345\257\214/20240509\347\254\224\350\256\260.md" @@ -0,0 +1,29 @@ +- #### 笔记 + + 1.三层交换机设置trunk的时候要先把接口封装成dot1q协议模式 + + ~~~js + (config-if)#Switchport trunk encapsulation dot1q + ~~~ + + 改完了模式在设置trunk + + ~~~js + (config-if)#switport mode trunk + ~~~ + + 2.三层交换机连接不同的网络可以用vlan在开启路由功能,三层交换机可以直接给vlan设置ip网关 + + ~~~js + (config)#IP routing //开启路由功能 + ~~~ + + 3.直接把二层交换机的接口改成三层交换机的端口也可以设置ip + + ~~~js + (config-if)#no Switchport + ~~~ + + #### 作业 + + - ![捕获.PNG](https://img2.imgtp.com/2024/05/09/tB3NFqUx.PNG) -- Gitee