二层网络全局配置 - 什么是单臂路由?关于单臂路由的相关问题解析
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
( 发表人:邓家乐 )