二層網(wǎng)絡(luò)全局配置 - 什么是單臂路由?關(guān)于單臂路由的相關(guān)問題解析
2、二層網(wǎng)絡(luò)全局配置
SW3的Vlan配置
SW3#vlandatabase//進(jìn)入Vlan配置模式
SW3(vlan)#vlan8//創(chuàng)建Vlan8、10、11
VLAN8added:
Name:VLAN0008
SW3(vlan)#vlan10
VLAN10added:
Name:VLAN0010
SW3(vlan)#vlan11
VLAN11added:
Name:VLAN0011
SW3(vlan)#exi
SW3#showvlan-switch//查看Vlan配置信息
VLANNameStatusPorts
1defaultactiveFa0/0,F(xiàn)a0/1,F(xiàn)a0/2,F(xiàn)a0/3
Fa0/4,F(xiàn)a0/5,F(xiàn)a0/6,F(xiàn)a0/7
Fa0/8,F(xiàn)a0/9,F(xiàn)a0/10,F(xiàn)a0/11
Fa0/12,F(xiàn)a0/13,F(xiàn)a0/14,F(xiàn)a0/15
8VLAN0008active
10VLAN0010active
11VLAN0011active
SW4的Vlan配置
SW4#vlandatabase//進(jìn)入Vlan配置模式
SW4(vlan)#vlan8//創(chuàng)建Vlan8、10、11
VLAN8added:
Name:VLAN0008
SW4(vlan)#vlan10
VLAN10added:
Name:VLAN0010
SW4(vlan)#vlan11
VLAN11added:
Name:VLAN0011
SW4(vlan)#exi
SW4#showvlan-switch//查看Vlan配置信息
VLANNameStatusPorts
1defaultactiveFa0/0,F(xiàn)a0/1,F(xiàn)a0/2,F(xiàn)a0/3
Fa0/4,F(xiàn)a0/5,F(xiàn)a0/6,F(xiàn)a0/7
Fa0/8,F(xiàn)a0/9,F(xiàn)a0/10,F(xiàn)a0/11
Fa0/12,F(xiàn)a0/13,F(xiàn)a0/14,F(xiàn)a0/15
8VLAN0008active
10VLAN0010active
11VLAN0011active
3、二層鏈路調(diào)試
SW3的Access接口配置
SW3#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
SW3(config)#interfa0/10//進(jìn)入接口fa0/10配置
SW3(config-if)#switchportmodeaccess//配置接口為Access模式
SW3(config-if)#switchportaccessvlan10//把接口劃到Vlan10
SW3(config-if)#exi
SW3(config)#interfa0/11//進(jìn)入接口f0/11配置
SW3(config-if)#switchportmodeaccess//配置接口為Access模式
SW3(config-if)#switchportaccessvlan11//把接口劃到Vlan11
SW3(config-if)#exi
SW4的Access接口配置
SW4#
SW4#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
SW4(config)#interfa0/10
SW4(config-if)#switchportmodeaccess
SW4(config-if)#switchportaccessvlan10
SW4(config-if)#exi
SW4(config)#interfa0/11
SW4(config-if)#switchportmodeaccess
SW4(config-if)#switchportaccessvlan11
SW4(config-if)#exi
SW3——SW4的Trunk鏈路調(diào)測
SW3(config)#interfa0/3
SW3(config-if)#switchporttrunkencapsulationdot1q//選擇封裝協(xié)議
SW3(config-if)#switchportmodetrunk//配置接口模式為Trunk
SW3(config-if)#switchporttrunkallowedvlanall//Trunk允許所有Vlan的信息通過
SW3(config-if)#exi
SW4(config)#interfa0/3
SW4(config-if)#switchporttrunkencapsulationdot1q
SW4(config-if)#switchportmodetrunk
SW4(config-if)#switchporttrunkallowedvlanall
SW4(config-if)#exi
4、二層設(shè)備網(wǎng)管地址配置
SW3的網(wǎng)管接口配置
SW3#configureterminal Enterconfigurationcommands,oneperline.EndwithCNTL/Z. SW3(config)#intervlan8//為SW3配置網(wǎng)管地址 SW3(config-if)#ipaddress192.168.8.130255.255.255.128 SW3(config-if)#noshutdown SW3(config-if)#exit SW3(config)#ipdefault-gateway192.168.8.129//為SW3配置網(wǎng)關(guān) SW3(config)#end SW3#showrun
SW4的網(wǎng)管接口配置
SW4(config)#intervlan8//為SW4配置網(wǎng)管地址
SW4(config-if)#ipaddress192.168.8.131255.255.255.128
SW4(config-if)#noshutdown
SW4(config-if)#exi
SW4(config)#ipdefault-gateway192.168.8.129//為SW4配置網(wǎng)關(guān)
SW4(config)#exi SW4#showipinterfacebrief//查看SW4上接口配置信息
InterfaceIP-AddressOK?MethodStatusProtocol
FastEthernet0/0unassignedYESunsetupdown
FastEthernet0/1unassignedYESunsetupdown
FastEthernet0/2unassignedYESunsetupdown
FastEthernet0/3unassignedYESunsetupup
FastEthernet0/4unassignedYESunsetupdown
FastEthernet0/5unassignedYESunsetupdown
FastEthernet0/6unassignedYESunsetupdown
FastEthernet0/7unassignedYESunsetupdown
FastEthernet0/8unassignedYESunsetupdown
FastEthernet0/9unassignedYESunsetupdown
FastEthernet0/10unassignedYESunsetupup
SW4#showinterfacesstatus//查看SW4上接口的狀態(tài)
PortNameStatusVlanDuplexSpeedType
Fa0/0notconnect1autoauto10/100BaseTX
Fa0/1notconnect1autoauto10/100BaseTX
Fa0/2notconnect1autoauto10/100BaseTX
Fa0/3connectedtrunka-fulla-10010/100BaseTX
Fa0/4notconnect1autoauto10/100BaseTX
Fa0/5notconnect1autoauto10/100BaseTX
Fa0/6notconnect1autoauto10/100BaseTX
Fa0/7notconnect1autoauto10/100BaseTX
Fa0/8notconnect1autoauto10/100BaseTX
Fa0/9notconnect1autoauto10/100BaseTX
Fa0/10connected10a-fulla-10010/100BaseTX
Fa0/11connected11a-fulla-10010/100BaseTX
Fa0/12notconnect1autoauto10/100BaseTX
Fa0/13notconnect1autoauto10/100BaseTX
Fa0/14notconnect1autoauto10/100BaseTX
Fa0/15notconnect1autoauto10/100BaseTX
- 第 1 頁:什么是單臂路由?關(guān)于單臂路由的相關(guān)問題解析
- 第 2 頁:二層網(wǎng)絡(luò)全局配置
- 第 3 頁:三層接口配置及鏈路測試
本文導(dǎo)航
非常好我支持^.^
(0) 0%
不好我反對
(0) 0%
相關(guān)閱讀:
- [電子說] 環(huán)旭電子推出Pisces企業(yè)級無線路由器助力企業(yè)應(yīng)對高密度數(shù)據(jù)挑戰(zhàn) 2023-10-24
- [電子說] 分析 丨2個(gè)新規(guī)實(shí)施,Wi-Fi 7增添變數(shù) 2023-10-24
- [電子說] 拆機(jī)看看華為路由器的天線與濾波器 2023-10-24
- [電子說] 工業(yè)路由器一般都用哪種協(xié)議? 2023-10-24
- [電子說] SR-MPLS是什么?SR-MPLS的實(shí)際應(yīng)用 2023-10-23
- [移動(dòng)通信] 如何解決局域網(wǎng)ip地址不夠用問題? 2023-10-23
- [電子說] CPE一般支持哪些工作模式?與MIFI相比,優(yōu)勢在哪里? 2023-10-22
- [電子說] Ai-WB2模組HTTP客戶端HEAD和GET請求方法 2023-10-21
( 發(fā)表人:鄧家樂 )