二層網絡全局配置 - 什么是單臂路由?關于單臂路由的相關問題解析
2、二層網絡全局配置
SW3的Vlan配置
SW3#vlandatabase//進入Vlan配置模式
SW3(vlan)#vlan8//創建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,Fa0/1,Fa0/2,Fa0/3
Fa0/4,Fa0/5,Fa0/6,Fa0/7
Fa0/8,Fa0/9,Fa0/10,Fa0/11
Fa0/12,Fa0/13,Fa0/14,Fa0/15
8VLAN0008active
10VLAN0010active
11VLAN0011active
SW4的Vlan配置
SW4#vlandatabase//進入Vlan配置模式
SW4(vlan)#vlan8//創建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,Fa0/1,Fa0/2,Fa0/3
Fa0/4,Fa0/5,Fa0/6,Fa0/7
Fa0/8,Fa0/9,Fa0/10,Fa0/11
Fa0/12,Fa0/13,Fa0/14,Fa0/15
8VLAN0008active
10VLAN0010active
11VLAN0011active
3、二層鏈路調試
SW3的Access接口配置
SW3#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
SW3(config)#interfa0/10//進入接口fa0/10配置
SW3(config-if)#switchportmodeaccess//配置接口為Access模式
SW3(config-if)#switchportaccessvlan10//把接口劃到Vlan10
SW3(config-if)#exi
SW3(config)#interfa0/11//進入接口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鏈路調測
SW3(config)#interfa0/3
SW3(config-if)#switchporttrunkencapsulationdot1q//選擇封裝協議
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、二層設備網管地址配置
SW3的網管接口配置
SW3#configureterminal Enterconfigurationcommands,oneperline.EndwithCNTL/Z. SW3(config)#intervlan8//為SW3配置網管地址 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配置網關 SW3(config)#end SW3#showrun
SW4的網管接口配置
SW4(config)#intervlan8//為SW4配置網管地址
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配置網關
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上接口的狀態
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 頁:什么是單臂路由?關于單臂路由的相關問題解析
- 第 2 頁:二層網絡全局配置
- 第 3 頁:三層接口配置及鏈路測試
本文導航
非常好我支持^.^
(0) 0%
不好我反對
(0) 0%
相關閱讀:
- [電子說] 環旭電子推出Pisces企業級無線路由器助力企業應對高密度數據挑戰 2023-10-24
- [電子說] 分析 丨2個新規實施,Wi-Fi 7增添變數 2023-10-24
- [電子說] 拆機看看華為路由器的天線與濾波器 2023-10-24
- [電子說] 工業路由器一般都用哪種協議? 2023-10-24
- [電子說] SR-MPLS是什么?SR-MPLS的實際應用 2023-10-23
- [移動通信] 如何解決局域網ip地址不夠用問題? 2023-10-23
- [電子說] CPE一般支持哪些工作模式?與MIFI相比,優勢在哪里? 2023-10-22
- [電子說] Ai-WB2模組HTTP客戶端HEAD和GET請求方法 2023-10-21
( 發表人:鄧家樂 )