From 6bd00b5900d76c127b43bff8fee29d1e69d2953b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BC=BA?= <3108497868@qq.com> Date: Sun, 12 May 2024 22:38:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\302\267.md" | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 "\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" diff --git "a/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" "b/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" new file mode 100644 index 0000000..46cd85a --- /dev/null +++ "b/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" @@ -0,0 +1,5 @@ +# 练习 + +![PixPin_2024-05-12_18-50-01.png](https://s2.loli.net/2024/05/12/fGrFuzLekBZCnjv.png) + +![PixPin_2024-05-12_18-50-21.png](https://s2.loli.net/2024/05/12/nTUNi6247bdSoqx.png) -- Gitee From d2076a29bf10747f8db872ad061a978222609a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BC=BA?= <3108497868@qq.com> Date: Sun, 12 May 2024 22:43:50 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232.md" | 19 +++++++++++++++++++ .../\344\275\234\344\270\232\302\267.md" | 5 ----- 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 "\347\216\213\345\274\272/\344\275\234\344\270\232.md" delete mode 100644 "\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" diff --git "a/\347\216\213\345\274\272/\344\275\234\344\270\232.md" "b/\347\216\213\345\274\272/\344\275\234\344\270\232.md" new file mode 100644 index 0000000..4499c7d --- /dev/null +++ "b/\347\216\213\345\274\272/\344\275\234\344\270\232.md" @@ -0,0 +1,19 @@ +## 三层交换机 + +核心代码 +ip routing 开启路由功能:作用让不同网段的ip互通 +no switchport 开启端口的三层功能:作用是让二层端口变成三层端口,使其可以绑定IP [这个命令要求先进入对应的端口]int f 0/1 +switchport trunk encapsulation dot1q:将trunk模式先封装成dot1q协议模式。才可以设置turnk + +### 第一种 + +int f0/1 +sw ac vlan 10 +int vlan 10 +ip add 192.168.10.254 + +### 第二种 + +int f0/1 +no sw +ip add 192.168.10.254 \ No newline at end of file diff --git "a/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" "b/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" deleted file mode 100644 index 46cd85a..0000000 --- "a/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" +++ /dev/null @@ -1,5 +0,0 @@ -# 练习 - -![PixPin_2024-05-12_18-50-01.png](https://s2.loli.net/2024/05/12/fGrFuzLekBZCnjv.png) - -![PixPin_2024-05-12_18-50-21.png](https://s2.loli.net/2024/05/12/nTUNi6247bdSoqx.png) -- Gitee From a681dd03726f7e18bb7cfd6249ecb0f07c32e00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BC=BA?= <3108497868@qq.com> Date: Sun, 12 May 2024 15:13:00 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=8E=8B=E5=BC=BA/=E4=BD=9C=E4=B8=9A=C2=B7.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232\302\267.md" | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 "\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" diff --git "a/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" "b/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" deleted file mode 100644 index 46cd85a..0000000 --- "a/\347\216\213\345\274\272/\344\275\234\344\270\232\302\267.md" +++ /dev/null @@ -1,5 +0,0 @@ -# 练习 - -![PixPin_2024-05-12_18-50-01.png](https://s2.loli.net/2024/05/12/fGrFuzLekBZCnjv.png) - -![PixPin_2024-05-12_18-50-21.png](https://s2.loli.net/2024/05/12/nTUNi6247bdSoqx.png) -- Gitee From ebe4b6f9eba50ca579a6fbbc49accdba72c88db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BC=BA?= <3108497868@qq.com> Date: Sun, 12 May 2024 22:48:00 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...44\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\216\213\345\274\272/\344\275\234\344\270\232.md" => "\347\216\213\345\274\272/\344\275\234\344\270\232\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" (100%) diff --git "a/\347\216\213\345\274\272/\344\275\234\344\270\232.md" "b/\347\216\213\345\274\272/\344\275\234\344\270\232\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" similarity index 100% rename from "\347\216\213\345\274\272/\344\275\234\344\270\232.md" rename to "\347\216\213\345\274\272/\344\275\234\344\270\232\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" -- Gitee