The embodiment of the invention provides a network configuration method and an access switch, which relates to the field of communication technology. When configuring two layers of network, the user side port of the access switch is automatically added to the two layer network, which improves the configuration efficiency. The receiving port access switch message from the first user side, the message carries a target of two layer network identification; when the first user side port does not join the target of two layer network, port attribute and the first user side port indicating the first user side port is allowed to automatically add two layer network, the first user side port with two goals the network layer; according to the relationship determined allowed to join the network side target two network ports; and send to allow two layer network join the target network side port join request, so that the network side receives the device request to join, will receive the join request port join the target two layer network. An embodiment of the invention is used for network configuration.
【技术实现步骤摘要】
一种网络配置方法及接入交换机
本专利技术涉及通信
,尤其涉及一种网络配置方法及接入交换机。
技术介绍
在通信系统中,二层网络是指利用媒体访问控制(英文:mediaaccesscontrol,简称:MAC)地址进行寻址和转发报文的网络,例如可以是虚拟局域网(英文:VirtualLocalAreaNetwork,简称:VLAN)、虚拟可扩展局域网(英文:VirtualeXtensibleLAN,简称:VXLAN)等。现有技术在配置二层网络时,首先由网络管理员将接入交换机的用户侧端口手动加入二层网络,而后根据网络扩展协议,接入交换机可以通过网络侧端口将该二层网络扩展到与接入交换机直连的第一网络侧设备上,然后第一网络侧设备可以根据网络扩展协议将该二层网络扩展到与第一网络侧设备直连的其它设备上。其中,网络扩展协议可以包括通用属性注册协议(英文:GenericAttributeRegistrationProtocol,简称:GARP)VLAN注册协议(英文:GARPVLANRegistrationProtocol,简称:GVRP)、边界网关协议(英文:BorderGat ...
【技术保护点】
一种网络配置方法,其特征在于,包括:接入交换机从第一用户侧端口接收报文,所述报文中携带有目标二层网络的标识;所述接入交换机中存储有每个网络侧端口与所述网络侧端口允许加入的二层网络的标识的对应关系,以及每个用户侧端口的端口属性,所述端口属性指示所述每个用户侧端口是否被允许自动加入二层网络;当所述第一用户侧端口没有加入所述目标二层网络,且所述第一用户侧端口的端口属性指示所述第一用户侧端口被允许自动加入二层网络时,所述接入交换机将所述第一用户侧端口加入所述目标二层网络;所述接入交换机根据所述对应关系确定允许加入所述目标二层网络的网络侧端口;所述接入交换机向所述允许加入所述目标二层 ...
【技术特征摘要】
1.一种网络配置方法,其特征在于,包括:接入交换机从第一用户侧端口接收报文,所述报文中携带有目标二层网络的标识;所述接入交换机中存储有每个网络侧端口与所述网络侧端口允许加入的二层网络的标识的对应关系,以及每个用户侧端口的端口属性,所述端口属性指示所述每个用户侧端口是否被允许自动加入二层网络;当所述第一用户侧端口没有加入所述目标二层网络,且所述第一用户侧端口的端口属性指示所述第一用户侧端口被允许自动加入二层网络时,所述接入交换机将所述第一用户侧端口加入所述目标二层网络;所述接入交换机根据所述对应关系确定允许加入所述目标二层网络的网络侧端口;所述接入交换机向所述允许加入所述目标二层网络的网络侧端口发送加入请求,以使接收到所述加入请求的网络侧设备,将接收所述加入请求的端口加入所述目标二层网络。2.根据权利要求1所述的方法,其特征在于,在将所述第一用户侧端口加入所述目标二层网络之后,所述方法还包括:所述接入交换机通过所述目标二层网络转发所述报文。3.根据权利要求1或2所述的方法,其特征在于,在将所述第一用户侧端口加入所述目标二层网络后,所述方法还包括:如果所述接入交换机在第一预设时间间隔内未通过所述第一用户侧端口接收到携带有所述目标二层网络的标识的报文,则所述接入交换机将所述第一用户侧端口从所述目标二层网络中删除。4.根据权利要求1-3任一项所述的方法,其特征在于,当所述接入交换机上已加入所述目标网络的每个用户侧端口,在第二预设时间间隔内均未接收到携带有所述目标二层网络的标识的报文时,所述接入交换机注销所述目标二层网络。5.根据权利要求4所述的方法,其特征在于,所述接入交换机注销所述目标二层网络包括:所述接入交换机向所述允许加入所述目标二层网络的网络侧端口发送注销请求,以使得接收到所述注销请求的网络侧设备,将接收所述注销请求的端口从所述目标二层网络中删除,并在所述网络侧设备上已加入所述目标二层网络的每个端口均从所述目标二层网络中删除时,注销所述目标二层网络。6.一种接入交换机,其特征在...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。