{"id":7009,"date":"2024-07-21T16:01:01","date_gmt":"2024-07-21T08:01:01","guid":{"rendered":""},"modified":"2024-07-21T16:01:01","modified_gmt":"2024-07-21T08:01:01","slug":"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7009.html","title":{"rendered":"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u4e00\u3001\u9879\u76ee\u57fa\u672c\u60c5\u51b5<\/h5>\n

\u67d0\u4f01\u4e1a\u9700\u8981\u5efa\u8bbe\u4e00\u4e2a\u7efc\u5408\u7684\u4f01\u4e1a\u7f51\uff0c\u516c\u53f8\u67094\u4e2a\u90e8\u95e8\uff0c\u4ece\u5185\u7f51\u7684\u5b89\u5168\u8003\u8651\uff0c\u4f7f\u7528VLAN\u6280\u672f\u5c06\u5404\u95e8\u5212\u5206\u5230\u4e0d\u540c\u7684VLAN\u4e2d\uff0c\u90e8\u7f72\u9632\u73af\u3001\u9632\u653b\u51fb\u3001\u6570\u636e\u8d1f\u8f7d\u5747\u8861\u7b49\u76f8\u5173\u7b56\u7565\uff0c\u786e\u4fdd\u5c40\u57df\u7f51\u4e1a\u52a1\u5b89\u5168\u3001\u53ef\u9760\u3002\u4e3a\u4e86\u63d0\u9ad8\u516c\u53f8\u7684\u4e1a\u52a1\u80fd\u529b\u548c\u589e\u5f3a\u4f01\u4e1a\u7684\u77e5\u540d\u5ea6\uff0c\u5c06\u516c\u53f8\u7684Web\u7f51\u7ad9\u4ee5\u53caFTP\u670d\u52a1\u53d1\u5e03\u5230\u4e92\u8054\u7f51\u4e0a\uff1b\u4e3a\u4e86\u4fbf\u4e8e\u7f51\u7edc\u7ba1\u7406\uff0c\u516c\u53f8\u5185\u90e8\u7684\u7f51\u7edc\u9700\u8981\u4f7f\u7528OSPF\u8def\u7531\u534f\u8bae\u4f7f\u5168\u7f51\u4e92\u901a\uff1b\u516c\u53f8\u9700\u8981\u80fd\u591f\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u5e76\u4eceISP\u90a3\u91cc\u7533\u8bf7\u4e86\u4e00\u6bb5\u516c\u7f51IP\u5730\u574099.1.1.0\/28\u3002<\/p>\n

\u4e8c\u3001\u7f51\u7edc\u62d3\u6251\u8bf4\u660e<\/h5>\n

\u4fe1\u606f\u5316\u5efa\u8bbe\u65b9\u6848\u62d3\u6251\u56fe\u5982\u4e0b\u56fe1\u6240\u793a\uff0c\u76f8\u5173\u8bf4\u660e\u5982\u4e0b\uff1a
1.\u4e00\u53f0RG-RSR20\u7f16\u53f7\u4e3aR1\uff0c\u4f5c\u4e3a\u5206\u516c\u53f8\u51fa\u53e3\u8bbe\u5907\uff1b
2.\u4e24\u53f0RG-3760\u7f16\u53f7\u4e3aS3\u548cS4\uff0c\u4f5c\u4e3a\u516c\u53f8\u6838\u5fc3\u4ea4\u6362\u673a\uff1b
3.\u4e24\u53f0RG-S2328\u7f16\u53f7\u4e3aS1\u548cS2\uff0c\u4f5c\u4e3a\u516c\u53f8\u63a5\u5165\u4ea4\u6362\u673a\uff1b
4. \u4e00\u53f0RG-RSR20\u7f16\u53f7\u4e3aR2\uff0c\u4f5c\u4e3a\u8fd0\u8425\u5546\u63a5\u5165\u8bbe\u5907\u3002
5. \u8ba1\u7b97\u673a\uff08\u53ef\u4f7f\u7528\u865a\u62df\u673a\uff095\u53f0\uff0c\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u4e3awindows server 2008\u3002<\/p>\n

\u4e09\u3001\u5b9e\u9a8c\u62d3\u6251<\/h5>\n

\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/p>\n

\u56db\u3001\u62d3\u6251\u8fde\u7ebf\u4e0e\u5730\u5740\u89c4\u5212<\/h5>\n

\u672c\u9879\u76ee\u7684\u7f51\u7edc\u7269\u7406\u8fde\u63a5\u8868\u5982\u88681\u6240\u793a\uff0c\u7f51\u7edc\u8bbe\u5907\u540d\u79f0\u8868\u59822\u6240\u793a\uff0cIP\u5730\u5740\u5206\u914d\u8868\u5982\u88683\u6240\u793a\u3002
\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a
\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a
\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/p>\n

\u4e94\u3001\u7f51\u7edc\u8bbe\u5907\u90e8\u7f72<\/h5>\n

1.\u8def\u7531\u5668\u914d\u7f6e
\uff081\uff09\u8def\u7531\u5668R1<\/strong><\/p>\n

\u914d\u7f6e\u63a5\u53e3\/\/\u63cf\u8ff0\u63a5\u53e3 R7_RSR10_1(config)#hostname RSR20-R1 RSR20-R1(config)#int f0\/0 RSR20-R1(config-if)#ip address 10.1.1.1 255.255.255.240 RSR20-R1(config-if)#no shutdown RSR20-R1(config-if)#ip address 10.1.1.1 255.255.255.252 RSR20-R1(config-if)#description Con_To_S3_F0\/24 RSR20-R1(config-if)#int f0\/1 RSR20-R1(config-if)#ip address 10.1.1.5 255.255.255.252 RSR20-R1(config-if)#no shutdown RSR20-R1(config-if)#description Con_To_S4_F0\/24 RSR20-R1(config-if)#int s1\/0 RSR20-R1(config-if)#ip address 99.1.1.1 255.255.255.240 RSR20-R1(config-if)#no shutdown RSR20-R1(config-if)#description Con_To_R2_S1\/0 RSR20-R1(config-if)#ex RSR20-R1(config)#int loopback 0 RSR20-R1(config-if)#ip address 192.168.99.1 255.255.255.0 DHCP\u5730\u5740\u6c60 RSR20-R1(config)# ip dhcp pool vlan100 RSR20-R1(dhcp-config)#network 192.168.100.0 255.255.255.0 RSR20-R1(dhcp-config)#lease 0 0 1 RSR20-R1(dhcp-config)#default-router 192.168.100.254 RSR20-R1(dhcp-config)#ip dhcp pool vlan101 RSR20-R1(dhcp-config)#network 192.168.101.0 255.255.255.0 RSR20-R1(dhcp-config)#lease 0 0 1 RSR20-R1(dhcp-config)#default-router 192.168.101.254 RSR20-R1(dhcp-config)#ip dhcp pool vlan102 RSR20-R1(dhcp-config)#network 192.168.102.0 255.255.255.0 RSR20-R1(dhcp-config)#lease 0 0 1 RSR20-R1(dhcp-config)#default-router 192.168.102.254 RSR20-R1(dhcp-config)#ip dhcp pool vlan103 RSR20-R1(dhcp-config)#network 192.168.103.0 255.255.255.0 RSR20-R1(dhcp-config)#lease 0 0 1 RSR20-R1(dhcp-config)#default-router 192.168.103.254 \u4e0d\u5206\u914dDHCP\u5730\u5740 RSR20-R1(config)#ip dhcp excluded-address 192.168.100.1 RSR20-R1(config)#ip dhcp excluded-address 192.168.100.2 RSR20-R1(config)#ip dhcp excluded-address 192.168.100.254 RSR20-R1(config)#ip dhcp excluded-address 192.168.101.254 RSR20-R1(config)#ip dhcp excluded-address 192.168.101.2 RSR20-R1(config)#ip dhcp excluded-address 192.168.101.1 RSR20-R1(config)#ip dhcp excluded-address 192.168.102.1 RSR20-R1(config)#ip dhcp excluded-address 192.168.102.2 RSR20-R1(config)#ip dhcp excluded-address 192.168.102.254 RSR20-R1(config)#ip dhcp excluded-address 192.168.103.254 RSR20-R1(config)#ip dhcp excluded-address 192.168.103.2 RSR20-R1(config)#ip dhcp excluded-address 192.168.103.1 \u5185\u5916\u7f51 RSR20-R1(config)#int f0\/0 RSR20-R1(config-if)#ip nat inside RSR20-R1(config-if)#int f0\/1 RSR20-R1(config-if)#ip nat inside RSR20-R1(config-if)#int s1\/0 RSR20-R1(config-if)#ip nat outside \u914d\u7f6eospf\u53ca\u9ed8\u8ba4\u8def\u7531 RSR20-R1(config)#route ospf 10 RSR20-R1(config-router)#network 10.1.0.1 0.0.0.0 area 0 RSR20-R1(config-router)#network 10.1.1.0 0.0.0.3 area 0 RSR20-R1(config-router)#network 10.1.1.4 0.0.0.3 area 0 RSR20-R1(config-router)#default-information originate always RSR20-R1(config)#ip route 0.0.0.0 0.0.0.0 99.1.1.2 \u914d\u7f6eACL RSR20-R1(config)#access-list 1 permit 192.168.100.0 0.0.0.255 RSR20-R1(config)#access-list 1 permit 192.168.101.0 0.0.0.255 RSR20-R1(config)#access-list 2 permit 192.168.102.0 0.0.0.255 RSR20-R1(config)#access-list 2 permit 192.168.103.0 0.0.0.255 \u5730\u5740\u8f6c\u6362 RSR20-R1(config)#ip nat pool a1 99.1.1.3 99.1.1.5 netmask 255.255.255.240 RSR20-R1(config)#ip nat pool a2 99.1.1.6 99.1.1.8 net RSR20-R1(config)#ip nat pool a2 99.1.1.6 99.1.1.8 netmask 255.255.255.240 RSR20-R1(config)#$ tcp 192.168.104.252 20 99.1.1.11 20 RSR20-R1(config)#$ tcp 192.168.104.252 21 99.1.1.11 21 RSR20-R1(config)#$ tcp 192.168.104.254 80 99.1.1.9 80 RSR20-R1(config)#ip nat inside source list 1 pool a1 overload RSR20-R1(config)#ip nat inside source list 2 pool a2 overload <\/code><\/pre>\n

\uff082\uff09\u8def\u7531\u5668R2<\/strong><\/p>\n

\u914d\u7f6e\u63a5\u53e3\/\/\u63cf\u8ff0\u63a5\u53e3 ISP-RSR20-R2(config)#hostname ISP-RSR20-R2 ISP-RSR20-R2(config)#interface FastEthernet 0\/0 ISP-RSR20-R2(config-if)#ip address 192.168.88.1 255.255.255.0 ISP-RSR20-R2(config)#no shutdown ISP-RSR20-R2(config)#interface Loopback 0 ISP-RSR20-R2(config-if)#ip address 192.168.99.1 255.255.255.0 ISP-RSR20-R2(config)#no shutdown ISP-RSR20-R2(config)#interface Serial 1\/0 ISP-RSR20-R2(config-if)#ip address 99.1.1.2 255.255.255.240 ISP-RSR20-R2(config-if)#description Con_To_R1_S1\/0 ISP-RSR20-R2(config)#no shutdown <\/code><\/pre>\n

2.\u4ea4\u6362\u673a\u914d\u7f6e
\uff081\uff09\u4e09\u5c42\u4ea4\u6362\u673aS3<\/strong><\/p>\n

\u63a5\u53e3\u63cf\u8ff0 R6_S3760_1(config)#hostname S3760-S3 S3760-S3(config)#int fastEthernet 0\/2 S3760-S3(config-if-FastEthernet 0\/2)#description Con_To_S2_F0\/1 S3760-S3(config-if-FastEthernet 0\/2)#exit S3760-S3(config)#int f0\/1 S3760-S3(config-if-FastEthernet 0\/1)#description Con_To_S1_F0\/1 S3760-S3(config-if-FastEthernet 0\/1)#exit S3760-S3(config)#int f0\/5 S3760-S3(config-if-FastEthernet 0\/5)#description Con_To_S4_F0\/5 S3760-S3(config-if-FastEthernet 0\/5)#exit S3760-S3(config)#int f0\/6 S3760-S3(config-if-FastEthernet 0\/6)#description Con_To_S4_F0\/6 S3760-S3(config-if-FastEthernet 0\/6)#exit S3760-S3(config)#int f0\/24 S3760-S3(config-if-FastEthernet 0\/24)#description Con_To_R1_F0\/0 S3760-S3(config-if-FastEthernet 0\/24)#exit S3760-S3(config)#int f0\/4 S3760-S3(config-if-FastEthernet 0\/4)#description Con_To_server S3760-S3(config-if-FastEthernet 0\/4)#exit S3760-S3(config)#vlan 100 S3760-S3(config-vlan)#vlan 101 S3760-S3(config-vlan)#vlan 102 S3760-S3(config-vlan)#vlan 103 S3760-S3(config-vlan)#exit S3760-S3(config)#vlan 100 S3760-S3(config-vlan)#name Office S3760-S3(config-vlan)#exit S3760-S3(config)#vlan 101 S3760-S3(config-vlan)#name HRD S3760-S3(config-vlan)#exit S3760-S3(config)#vlan 102 S3760-S3(config-vlan)#name TD S3760-S3(config-vlan)#exit S3760-S3(config)#vlan 103 S3760-S3(config-vlan)#name MD \u914d\u7f6etrunk S3760-S3(config)#interface fastEthernet 0\/1 S3760-S3(config-if-FastEthernet 0\/1)#switchport mode trunk S3760-S3(config-if-FastEthernet 0\/1)#switchport trunk allowed vlan remove 1-99,104-4094 S3760-S3(config-if-FastEthernet 0\/1)#exit S3760-S3(config)#interface fastEthernet 0\/2 S3760-S3(config-if-FastEthernet 0\/2)#switchport mode trunk S3760-S3(config-if-FastEthernet 0\/2)#switchport trunk allowed vlan remove 1-99,104-4094 \u6dfb\u52a0IP\u5730\u5740 S3760-S3(config)# interface vlan 100 S3760-S3(config-if-VLAN 100)#ip address 192.168.100.1 255.255.255.0 S3760-S3(config-if-VLAN 100)#exit S3760-S3(config)# interface vlan 101 S3760-S3(config-if-VLAN 101)#ip address 192.168.101.1 255.255.255.0 S3760-S3(config-if-VLAN 101)#exit S3760-S3(config)# interface vlan 102 S3760-S3(config-if-VLAN 102)#ip address 192.168.102.1 255.255.255.0 S3760-S3(config-if-VLAN 102)#exit S3760-S3(config)# interface vlan 103 S3760-S3(config-if-VLAN 103)#ip add 192.168.103.1 255.255.255.0 S3760-S3(config-if-VLAN 103)#exit S3760-S3(config)#int fastEthernet 0\/4 S3760-S3(config-if-FastEthernet 0\/4)#no switchport S3760-S3(config-if-FastEthernet 0\/4)#ip address 192.168.104.1 255.255.255.0 S3760-S3(config-if-FastEthernet 0\/4)#exit S3760-S3(config)#int f0\/24 S3760-S3(config-if-FastEthernet 0\/24)#no switchport S3760-S3(config-if-FastEthernet 0\/24)#ip address 10.1.1.2 255.255.255.252 S3760-S3(config-if-FastEthernet 0\/24)#exit S3760-S3(config)# interface loopback 0 S3760-S3(config-if-Loopback 0)#ip address 10.1.0.3 255.255.255.255 \u914d\u7f6e\u805a\u5408\u53e3 S3760-S3(config)#interface range fastEthernet 0\/5-6 S3760-S3(config-if-range)#port-group 1 S3760-S3(config-if-range)#exit S3760-S3(config)#int aggregateport 1 S3760-S3(config-if-AggregatePort 1)#switchport mode trunk \u914d\u7f6e\u591a\u751f\u6210\u6811 S3760-S3(config)#spanning-tree S3760-S3(config)#spanning-tree mode mstp S3760-S3(config)#spanning-tree mst configuration S3760-S3(config-mst)#name ruijie S3760-S4(config-mst)#revision 1 S3760-S4(config-mst)#instance 0 vlan 1-99, 104-4094 S3760-S3(config-mst)#instance 1 vlan 100,101 S3760-S3(config-mst)#instance 2 vlan 102,103 S3760-S3(config-mst)#exit S3760-S3(config)#spanning-tree mst 1 priority 4096 S3760-S3(config)#spanning-tree mst 2 priority 8192 \u6dfb\u52a0vrrp S3760-S3(config)#interface vlan 100 S3760-S3(config-if-VLAN 100)#vrrp 10 ip 192.168.100.254 S3760-S3(config-if-VLAN 100)#vrrp 10 priority 150 S3760-S3(config-if-VLAN 100)#exit S3760-S3(config-if-VLAN 101)#interface vlan 101 S3760-S3(config-if-VLAN 101)#vrrp 20 ip 192.168.101.254 S3760-S3(config-if-VLAN 101)#vrrp 20 priority 150 S3760-S3(config-if-VLAN 101)#exit S3760-S3(config)#interface vlan 102 S3760-S3(config-if-VLAN 102)#vrrp 30 ip 192.168.102.254 S3760-S3(config-if-VLAN 102)#vrrp 30 priority 120 S3760-S3(config-if-VLAN 102)#exit S3760-S3(config)#interface vlan 103 S3760-S3(config-if-VLAN 103)#vrrp 40 ip 192.168.103.254 S3760-S3(config-if-VLAN 103)#vrrp 40 priority 120 \u914d\u7f6eospf S3760-S3(config)#route ospf 10 S3760-S3(config-router)#network 192.168.100.0 0.0.0.255 area 0 S3760-S3(config-router)#network 192.168.101.0 0.0.0.255 area 0 S3760-S3(config-router)#network 192.168.102.0 0.0.0.255 area 0 S3760-S3(config-router)#network 192.168.103.0 0.0.0.255 area 0 S3760-S3(config-router)#network 192.168.104.0 0.0.0.255 area 0 S3760-S3(config-router)#network 10.1.1.0 0.0.0.3 area 0 S3760-S3(config-router)#network 10.1.0.3 0.0.0.0 area 0 \u5f00\u542fDHCP\u670d\u52a1 S3760-S3(config)#service dhcp S3760-S3(config)#ip helper-address 10.1.0.1 <\/code><\/pre>\n

\uff082\uff09\u4e09\u5c42\u4ea4\u6362\u673aS4<\/strong><\/p>\n

R6_S3760_2#config terface R6_S3760_2(config)#hostname S3760-S4 \u63a5\u53e3\u63cf\u8ff0 S3760-S4(config)#interface fastEthernet 0\/1 S3760-S4(config-if-FastEthernet 0\/1)#description Con_To_S1_F0\/2 S3760-S4(config-if-FastEthernet 0\/1)#exit S3760-S4(config)#interface fastEthernet 0\/2 S3760-S4(config-if-FastEthernet 0\/2)#description Con_To_S2_F0\/2 S3760-S4(config-if-FastEthernet 0\/2)#exit S3760-S4(config)#interface fastEthernet 0\/5 S3760-S4(config-if-FastEthernet 0\/5)#description Con_To_S3_F0\/5 S3760-S4(config-if-FastEthernet 0\/5)#exit S3760-S4(config)#interface fastEthernet 0\/6 S3760-S4(config-if-FastEthernet 0\/6)#description Con_To_S3_F0\/6 S3760-S4(config-if-FastEthernet 0\/6)#exit S3760-S4(config)#interface fastEthernet 0\/24 S3760-S4(config-if-FastEthernet 0\/24)#description Con_To_R1_F0\/1 S3760-S4(config-if-FastEthernet 0\/24)#exit S3760-S4(config)#vlan 100 S3760-S4(config-vlan)#vlan 101 S3760-S4(config-vlan)#vlan 102 S3760-S4(config-vlan)#vlan 103 S3760-S4(config-vlan)#exit S3760-S4(config)#vlan 100 S3760-S4(config-vlan)#name Office S3760-S4(config-vlan)#exit S3760-S4(config)#vlan 101 S3760-S4(config-vlan)#name HRD S3760-S4(config-vlan)#exit S3760-S4(config)#vlan 102 S3760-S4(config-vlan)#name TD S3760-S4(config-vlan)#exit S3760-S4(config)#vlan 103 S3760-S4(config-vlan)#name MD S3760-S4(config-vlan)#exit S3760-S4(config)#interface fastEthernet 0\/1 S3760-S4(config-if-FastEthernet 0\/1)#switchport mode trunk S3760-S4(config-if-FastEthernet 0\/1)#switchport trunk allowed vlan remove 1-99,104-4094 S3760-S4(config-if-FastEthernet 0\/1)#exit S3760-S4(config)#interface fastEthernet 0\/2 S3760-S4(config-if-FastEthernet 0\/2)#switchport mode trunk S3760-S4(config-if-FastEthernet 0\/2)#switchport trunk allowed vlan remove 1-99,104-4094 S3760-S4(config-if-FastEthernet 0\/2)#exit \u6dfb\u52a0IP S3760-S4(config)#interface vlan 100 S3760-S4(config-if-VLAN 100)#ip address 192.168.100.2 255.255.255.0 S3760-S4(config-if-VLAN 100)#exit S3760-S4(config)#interface vlan 101 S3760-S4(config-if-VLAN 101)#ip address 192.168.101.2 255.255.255.0 S3760-S4(config-if-VLAN 101)#exit S3760-S4(config)#interface vlan 102 S3760-S4(config-if-VLAN 102)#ip address 192.168.102.2 255.255.255.0 S3760-S4(config-if-VLAN 102)#exit S3760-S4(config)#interface vlan 103 S3760-S4(config-if-VLAN 103)#ip address 192.168.103.2 255.255.255.0 S3760-S4(config-if-VLAN 103)#exit S3760-S4(config)#interface fastEthernet 0\/24 S3760-S4(config-if-FastEthernet 0\/24)#no switchport S3760-S4(config-if-FastEthernet 0\/24)#ip address 10.1.1.6 255.255.255.252 S3760-S4(config-if-FastEthernet 0\/24)#exit S3760-S4(config)#interface loopback 0 S3760-S4(config-if-Loopback 0)#ip address 10.1.0.4 255.255.255.255 \u5f00\u542fDHCP\u670d\u52a1 S3760-S4(config)#service dhcp S3760-S4(config)#ip helper-address 10.1.0.1 \u914d\u7f6eOSPF S3760-S4(config)#router ospf 10 S3760-S4(config)# network 10.1.0.4 0.0.0.0 area 0 S3760-S4(config)#network 10.1.1.4 0.0.0.3 area 0 S3760-S4(config)#network 192.168.100.0 0.0.0.255 area 0 S3760-S4(config)#network 192.168.101.0 0.0.0.255 area 0 S3760-S4(config)#network 192.168.102.0 0.0.0.255 area 0 S3760-S4(config)#network 192.168.103.0 0.0.0.255 area 0 \u914d\u7f6e\u805a\u5408\u53e3 S3760-S4(config)#interface range fastEthernet 0\/5-6 S3760-S4(config-if-range)#port-group 1 S3760-S4(config-if-range)#exit S3760-S4(config)#int aggregateport 1 S3760-S4(config-if-AggregatePort 1)#switchport mode trunk \u914d\u7f6e\u591a\u751f\u6210\u6811 S3760-S4(config)#spanning-tree S3760-S4(config)#spanning-tree mode mstp S3760-S4(config)#spanning-tree mst configuration S3760-S4(config-mst)#name ruijie S3760-S4(config-mst)#revision 1 S3760-S4(config-mst)#instance 0 vlan 1-99, 104-4094 S3760-S4(config-mst)#instance 1 vlan 100,101 S3760-S4(config-mst)#instance 2 vlan 102,103 S3760-S4(config)#spanning-tree mst 1 priority 8192 S3760-S4(config)#spanning-tree mst 2 priority 4096 \u914d\u7f6evrrp S3760-S4(config)#interface vlan 100 S3760-S4(config-if-VLAN 100)#vrrp 10 ip 192.168.100.254 S3760-S4(config-if-VLAN 100)#vrrp 10 priority 120 S3760-S4(config-if-VLAN 100)#exit S3760-S4(config)#interface vlan 101 S3760-S4(config-if-VLAN 101)#vrrp 20 ip 192.168.101.254 S3760-S4(config-if-VLAN 101)#vrrp 20 priority 120 S3760-S4(config-if-VLAN 101)#exit S3760-S4(config)#interface vlan 102 S3760-S4(config-if-VLAN 102)#vrrp 30 ip 192.168.102.254 S3760-S4(config-if-VLAN 102)#vrrp 30 priority 150 S3760-S4(config-if-VLAN 102)#exit S3760-S4(config)#interface vlan 103 S3760-S4(config-if-VLAN 103)#vrrp 40 ip 192.168.103.254 S3760-S4(config-if-VLAN 103)#vrrp 40 priority 150 <\/code><\/pre>\n

\uff083\uff09\u4e8c\u5c42\u4ea4\u6362\u673aS1<\/strong><\/p>\n

\u4fee\u6539\u4e3b\u673a\u540d R7_S2328_1#configure R7_S2328_1(config)#hostname S2328-S1 S2328-S1(config)#vlan 100 WLAN\u540d\u79f0 S2328-S1(config-vlan)#name office S2328-S1(config-vlan)#exit S2328-S1(config)#vlan 101 S2328-S1(config-vlan)#name HRD S2328-S1(config-vlan)#exit S2328-S1(config)#vlan 102 S2328-S1(config-vlan)#name TD S2328-S1(config-vlan)#exit S2328-S1(config)#vlan 103 S2328-S1(config-vlan)#name MD S2328-S1(config-vlan)#exit \u63a5\u53e3\u63cf\u8ff0 S2328-S1(config)#interface f0\/1 S2328-S1(config-if)#description Con_To_S3_F0\/1 S2328-S1(config-if)#exit S2328-S1(config)#interface f0\/2 S2328-S1(config-if)#description S2328-S1(config-if)#description Con_To_S4_F0\/1 S2328-S1#configure S2328-S1(config)#interface range f0\/3-10 S2328-S1(config-if-range)#switchport access vlan 100 S2328-S1(config-if-range)#exit S2328-S1(config)#interface range f0\/11-15 S2328-S1(config-if-range)#switchport access vlan 101 S2328-S1(config-if-range)#exit S2328-S1(config)#interface range f0\/16-20 S2328-S1(config-if-range)#switchport access vlan 102 S2328-S1(config)#interface range f0\/21-24 S2328-S1(config-if-range)#switchport access vlan 103 S2328-S1(config-if-range)#exit \u5f00\u542fportfast\u548cbduuguard\u9632\u62a4\u529f\u80fd S2328-S1(config)#spanning-tree S2328-S1(config)#interface range f0\/3-10 S2328-S1(config-if-range)#spanning-tree bpduguard enable S2328-S1(config-if-range)#spanning-tree portfast S2328-S1(config-if-range)#exit S2328-S1(config)#interface range f0\/11-15 S2328-S1(config-if-range)#spanning-tree bpduguard enable S2328-S1(config-if-range)#spanning-tree portfast S2328-S1(config-if-range)#exit S2328-S1(config)#interface range f0\/16-20 S2328-S1(config-if-range)#spanning-tree bpduguard enable S2328-S1(config-if-range)#spanning-tree portfast S2328-S1(config-if-range)#exit S2328-S1(config)#interface range f0\/21-24 S2328-S1(config-if-range)#spanning-tree bpduguard enable S2328-S1(config-if-range)#spanning-tree portfast S2328-S1(config-if-range)#exit \u542f\u7528rldp\u534f\u8bae S2328-S1(config)#rldp enable S2328-S1(config)#interface range f0\/3-10 S2328-S1(config-if-range)#rldp port loop-detect shutdown-port S2328-S1(config-if-range)#exit S2328-S1(config)#interface range f0\/11-15 S2328-S1(config-if-range)#rldp port loop-detect shutdown-port S2328-S1(config-if-range)# S2328-S1(config)#interface range f0\/16-20 S2328-S1(config-if-range)#rldp port loop-detect shutdown-port S2328-S1(config-if-range)#exit S2328-S1(config)#interface range fastEthernet 0\/21-24 S2328-S1(config-if-range)#rldp port loop-detect shutdown-port S2328-S1(config-if-range)#exit 300\u79d2\u4e4b\u540e\u81ea\u52a8\u6062\u590d\/\/\u5f00\u542f\u591a\u751f\u6210\u6811 S2328-S1(config)#errdisable recovery interval 300 S2328-S1(config)#interface range f0\/3-10 S2328-S1(config-if-range)#switchport trunk mode S2328-S1(config-if-range)#exit S2328-S1(config)#spanning-tree mode mstp \u914d\u7f6e\u751f\u6210\u6811 S2328-S1(config)#spanning-tree mst configuration \u914d\u7f6e\u5b9e\u4f8b S2328-S1(config-mst)#instance 1 vlan 100,101 S2328-S1(config-mst)#instance 2 vlan 102,103 S2328-S1(config-mst)#name ruijie \u914d\u7f6e\u7248\u672c S2328-S1(config-mst)#revision 1 S2328-S1(config-mst)#exit S2328-S1(config)#spanning-tree mst 1 priority 4096 S2328-S1(config)#interface range f0\/1-2 S2328-S1(config-if-range)#switchport mode trunk S2328-S1(config-if-range)#switchport trunk allowed vlan remove 1-99,104-4094 <\/code><\/pre>\n

\uff084\uff09\u4e8c\u5c42\u4ea4\u6362\u673aS2<\/strong><\/p>\n

\u66f4\u6539\u4e3b\u673a\u540d\/\/vlan\u63a5\u53e3 R7_S2328_2#configure R7_S2328_2(config)#hostname S2328-S2 S2328-S1(config)#vlan 100 Vlan\u540d\u79f0 S2328-S2 (config-vlan)#name office S2328-S2(config-vlan)#exit S2328-S2(config)#vlan 101 S2328-S2(config-vlan)#name HRD S2328-S2(config-vlan)#exit S2328-S2(config)#vlan 102 S2328-S2(config-vlan)#name TD S2328-S2(config-vlan)#exit S2328-S2(config)#vlan 103 S2328-S2(config-vlan)#name MD S2328-S2(config-vlan)#exit \u63a5\u53e3\u63cf\u8ff0 S2328-S2(config)#interface f0\/1 S2328-S2(config-if)#description Con_To_S3_F0\/2 S2328-S2(config-if)#exit S2328-S2(config)#interface f0\/2 S2328-S2(config-if)#description S2328-S2(config-if)#description Con_To_S4_F0\/2 S2328-S2#configure Vlan\u540d\u79f0\/\/\u7aef\u53e3\u5212\u5206 S2328-S2(config)#interface range f0\/3-10 S2328-S2(config-if-range)#switchport access vlan 100 S2328-S2(config-if-range)#exit S2328-S2(config)#interface range f0\/11-15 S2328-S2(config-if-range)#switchport access vlan 101 S2328-S2(config-if-range)#exit S2328-S2(config)#interface range f0\/16-20 S2328-S2(config-if-range)#switchport access vlan 102 S2328-S2(config)#interface range f0\/21-24 S2328-S2(config-if-range)#switchport access vlan 103 S2328-S2(config-if-range)#exit \u5f00\u542fportfast\u548cbpduguard\u9632\u62a4\u529f\u80fd S2328-S2(config)#spanning-tree S2328-S2(config)#interface range f0\/3-10 S2328-S2(config-if-range)#spanning-tree bpduguard enable S2328-S2(config-if-range)#spanning-tree portfast S2328-S2(config-if-range)#exit S2328-S2(config)#interface range f0\/11-15 S2328-S2(config-if-range)#spanning-tree bpduguard enable S2328-S2(config-if-range)#spanning-tree portfast S2328-S2(config-if-range)#exit S2328-S2(config)#interface range f0\/16-20 S2328-S2(config-if-range)#spanning-tree bpduguard enable S2328-S2(config-if-range)#spanning-tree portfast S2328-S2(config-if-range)#exit S2328-S2(config)#interface range f0\/21-24 S2328-S2(config-if-range)#spanning-tree bpduguard enable S2328-S2(config-if-range)#spanning-tree portfast \u5f00\u542frldp\u529f\u80fd\/\/\u65b9\u5f0f\u4e3ashutdown S2328-S2(config-if-range)#exit S2328-S2(config)#rldp enable S2328-S2(config)#interface range f0\/3-10 S2328-S2(config-if-range)#rldp port loop-detect shutdown-port S2328-S2(config-if-range)#exit S2328-S2(config)#interface range f0\/11-15 S2328-S2(config-if-range)#rldp port loop-detect shutdown-port S2328-S2(config-if-range)# S2328-S2(config)#interface range f0\/16-20 S2328-S2(config-if-range)#rldp port loop-detect shutdown-port S2328-S2(config-if-range)#exit S2328-S2(config)#interface range fastEthernet 0\/21-24 S2328-S2(config-if-range)#rldp port loop-detect shutdown-port S2328-S2(config-if-range)#exit 300\u79d2\u540e\u5f00\u542f\u81ea\u52a8\u6062\u590d\/\/\u914d\u7f6e\u591a\u751f\u6210\u6811 S2328-S2(config)#errdisable recovery interval 300 S2328-S2(config)#interface range f0\/3-10 S2328-S2(config-if-range)#switchport trunk mode S2328-S2(config-if-range)#exit S2328-S2(config)#spanning-tree mode mstp S2328-S2(config)#spanning-tree mst configuration \u914d\u7f6e\u5b9e\u4f8b S2328-S2(config-mst)#instance 1 vlan 100,101 S2328-S2(config-mst)#instance 2 vlan 102,103 S2328-S2(config-mst)#name ruijie \u914d\u7f6e\u7248\u672c S2328-S2(config-mst)#revision 1 S2328-S2(config-mst)#exit S2328-S2(config)#spanning-tree mst 1 priority 4096 S2328-S2(config)#interface range f0\/1-2 S2328-S2(config-if-range)#switchport mode trunk S2328-S2(config-if-range)#switchport trunk allowed vlan remove 1-99,104-4094 <\/code><\/pre>\n
\u516d\u3001\u529f\u80fd\u6d4b\u8bd5<\/h5>\n
    \n
  1. vlan100 \u7528\u6237PC ping vlan101 PC\uff08\u622a\u56fe\uff09
    \"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  2. vlan100\u7528\u6237PC ping vlan102 \u7528\u6237PC\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  3. vlan100\u7528\u6237PC ping vlan103 \u7528\u6237PC\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  4. vlan101\u7528\u6237PC ping vlan102 \u7528\u6237PC\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  5. vlan101\u7528\u6237PC ping vlan103 \u7528\u6237PC\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  6. vlan102\u7528\u6237PC ping vlan103 \u7528\u6237PC\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  7. vlan100 PC ping R2 loopback\u63a5\u53e3\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  8. vlan101 PC ping R2 loopback\u63a5\u53e3\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  9. vlan102 PC ping R2 loopback\u63a5\u53e3\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  10. vlan103 PC ping R2 loopback\u63a5\u53e3\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  11. R1#show ip nat translations\uff08\u622a\u56fe\uff09
    \"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a
    \"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  12. \u516c\u7f51PC\u6d4f\u89c8\u5668IE\u8bbf\u95eehttp:\/\/ 99.1.1.9\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  13. \u516c\u7f51PC\u6d4f\u89c8\u5668IE\u8bbf\u95eeftp:\/\/ 99.1.1.11\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  14. \u670d\u52a1\u5668web\u529f\u80fd\u672c\u673a\u6d4b\u8bd5\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n
  15. \u670d\u52a1\u5668FTP\u529f\u80fd\u672c\u673a\u6d4b\u8bd5\uff08\u622a\u56fe\uff09\"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"\u300a\u6784\u5efa\u4e2d\u5c0f\u578b\u7f51\u7edc\u5b9e\u8bad\u300b\u5b9e\u8bad\u8bfe\u7a0b\u603b\u7ed3_\u5de5\u7a0b\u5b9e\u8bad\u5fc3\u5f97\u4f53\u4f1a\u4e00\u3001\u9879\u76ee\u57fa\u672c\u60c5\u51b5\u67d0\u4f01\u4e1a\u9700\u8981\u5efa\u8bbe\u4e00\u4e2a\u7efc\u5408\u7684\u4f01\u4e1a\u7f51\uff0c\u516c\u53f8\u67094\u4e2a\u90e8\u95e8\uff0c\u4ece...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7009"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7009"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7009\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}