From da8a696d30e356fd43311967a54d1b644e6686c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=B410?= <11772438+uoxxi@user.noreply.gitee.com> Date: Wed, 24 Apr 2024 03:20:53 +0000 Subject: [PATCH 1/4] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 程晴10 <11772438+uoxxi@user.noreply.gitee.com> --- ...50\201\232\345\220\210\351\205\215\347\275\256.md" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" diff --git "a/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" "b/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" new file mode 100644 index 0000000..9a04700 --- /dev/null +++ "b/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" @@ -0,0 +1,11 @@ +# 交换机聚合配置 +## 命令 +- ```Switch>en``` +- ```config t``` +- ```inter range f0/23-24``` +- ```switch(config-if-range)#switch mode trunk``` +- ```...channel-group/mode on``` +- ```...exit``` +- ```switch(config)#port-channel loa-balance dst-ip```(按目的ip地址来实现) +- ```...exit ``` +- ```switch #show etherchannel summary```(显示以太通道信息) \ No newline at end of file -- Gitee From 23b59f3723298f08d46c65130ae1465856ad0f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=B410?= <11772438+uoxxi@user.noreply.gitee.com> Date: Wed, 24 Apr 2024 03:21:02 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=202024?= =?UTF-8?q?0424-=E4=BA=A4=E6=8D=A2=E6=9C=BA=E8=81=9A=E5=90=88=E9=85=8D?= =?UTF-8?q?=E7=BD=AE.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...50\201\232\345\220\210\351\205\215\347\275\256.md" | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 "20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" diff --git "a/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" "b/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" deleted file mode 100644 index 9a04700..0000000 --- "a/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" +++ /dev/null @@ -1,11 +0,0 @@ -# 交换机聚合配置 -## 命令 -- ```Switch>en``` -- ```config t``` -- ```inter range f0/23-24``` -- ```switch(config-if-range)#switch mode trunk``` -- ```...channel-group/mode on``` -- ```...exit``` -- ```switch(config)#port-channel loa-balance dst-ip```(按目的ip地址来实现) -- ```...exit ``` -- ```switch #show etherchannel summary```(显示以太通道信息) \ No newline at end of file -- Gitee From e2d4bf00a590bec369f557042d704bac512b1464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=B410?= <11772438+uoxxi@user.noreply.gitee.com> Date: Wed, 24 Apr 2024 03:21:21 +0000 Subject: [PATCH 3/4] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 程晴10 <11772438+uoxxi@user.noreply.gitee.com> --- ...50\201\232\345\220\210\351\205\215\347\275\256.md" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "\347\250\213\346\231\264/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" diff --git "a/\347\250\213\346\231\264/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" "b/\347\250\213\346\231\264/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" new file mode 100644 index 0000000..9a04700 --- /dev/null +++ "b/\347\250\213\346\231\264/20240424-\344\272\244\346\215\242\346\234\272\350\201\232\345\220\210\351\205\215\347\275\256.md" @@ -0,0 +1,11 @@ +# 交换机聚合配置 +## 命令 +- ```Switch>en``` +- ```config t``` +- ```inter range f0/23-24``` +- ```switch(config-if-range)#switch mode trunk``` +- ```...channel-group/mode on``` +- ```...exit``` +- ```switch(config)#port-channel loa-balance dst-ip```(按目的ip地址来实现) +- ```...exit ``` +- ```switch #show etherchannel summary```(显示以太通道信息) \ No newline at end of file -- Gitee From 0214de664ddcc454d883152e4bccc5261a8b92d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=B410?= <11772438+uoxxi@user.noreply.gitee.com> Date: Thu, 25 Apr 2024 02:56:12 +0000 Subject: [PATCH 4/4] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 程晴10 <11772438+uoxxi@user.noreply.gitee.com> --- ...72\347\241\200\351\205\215\347\275\256.md" | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 "\347\250\213\346\231\264/20240425-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\347\232\204\345\237\272\347\241\200\351\205\215\347\275\256.md" diff --git "a/\347\250\213\346\231\264/20240425-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\347\232\204\345\237\272\347\241\200\351\205\215\347\275\256.md" "b/\347\250\213\346\231\264/20240425-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\347\232\204\345\237\272\347\241\200\351\205\215\347\275\256.md" new file mode 100644 index 0000000..3a7304d --- /dev/null +++ "b/\347\250\213\346\231\264/20240425-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\347\232\204\345\237\272\347\241\200\351\205\215\347\275\256.md" @@ -0,0 +1,79 @@ +## 三层交换机的基本配置 + +- 二层交换机:MAC地址、数据链路层(网络接入层和汇聚层) + +- 三层交换机:ip地址、网络层(核心层) + +- Switch>en + +- Switch#config t + +- Switch(config)#ip routing --- 开启路由功能 + +- Switch(config)#inter f0/1 + +- Switch(config-if)#no switchport + +- Switch(config-if)#ip add 192.168.10.1 255.255.255.0 + +- Switch(config-if)#no shutdown + +- Switch(config-if)# do write memory + + +### 三层交换机VLAN间路由之SVI(交换虚拟接口) + +- SVI:指三层交换机为各个VLAN配置ip地址的虚拟接口 + +- LAN接口(SVI)模式:Switch(config)# + +- 网关:192.168.10.1 + +- Switch>en + +- Switch#conf t + +- Switch(config)#vlan 10 + +- Switch(config)#exit + +- Switch#inter range f0/1-2 + +- Switch(config-if range)#switch mode access + +- Switch(config)#sw access vlan 10 + +### 三层交换机 + +- Switch>en + +- Switch#conf t + +- Switch(config)#vlan 10 + +- Switch(config-vlan)#vlan 20 + +- Switch(config-vlan)#vlan 30 + +- Switch(config-vlan)#int vlan 10 ---进入vlan10的虚拟接口 + +- Switch(config-if)#ip ad 10.10.1.20 255.255.255.0 ---对虚拟接口配置IP地址,IP地址为其对应的PC网关 + +- Switch(config-if)#int vlan 20 + +- Switch(config-if)#ip ad 20.20.1.20 255.255.255.0 + +- Switch(config-if)#int vlan 30 + +- Switch(config-if)#ip ad 30.30.1.30 255.255.255.0 + +- Switch(config-if)#int f0/24 + +- Switch(config-if)#switchport trunk encapsulation dot1q ---对接口进行dot1q协议封装 + +- Switch(config-if)#sw mo tr ---将接口设置为trunk口 + +- Switch(config-if)#sw tr all vlan all ---接口允许所有vlan通过 + +- Switch(config)#ip routing + -- Gitee