首页 电脑常识文章正文

网络交换机怎么连接(关于交换机的设置方法)

电脑常识 2024年05月29日 11:56 56 游客

交换机配置命令

网络交换机怎么连接(关于交换机的设置方法)

1、进行VLAN的配置,使用主机名/config命令进入配置模式。

2、使用VLANID命令创建VLAN。

3、将需要连接的两台主机添加到VLAN中。

4、删除配置文件。

5、删除配置文件。

6、将两台主机共享一台主机的配置,配置环境变量。

配置模式

(1)、进入到VLAN的配置模式。

网络交换机怎么连接(关于交换机的设置方法)

(2)、创建虚拟的连接。

(3)、主机与vlan的配置。

VMware虚拟网络设置

网络交换机怎么连接(关于交换机的设置方法)

第一步:创建vlan

1、在VLAN中创建vlan。

2、168、进入到vlan的配置模式,输入vlan192,1,254。

第二步:设置主机port

配置主机port:主要用于连接主机与vlan。

配置主机端口:主要用于连接两台主机。

第三步:将两台主机共享一台主机。

1、配置主机端口的IP地址。

2、配置主机端口的权限。

第四步:启用端口的共享

配置主机port:主要用于连接两台主机。

配置端口的共享:主要用于连接两台主机。

第五步:为主机指定共享名称

配置端口的共享名称:主要用于连接两台主机。

第六步:开启端口的共享

配置端口的共享名称:主要用于连接两台主机。

第七步:将配置文件保存到交换机的rc配置文件中。

第八步:查看vlan状态

主机配置与vlan共享

主机配置与vlan共享

注意:则将无法进行、如果在配置时没有指定共享名称。

第七步:添加实例

#添加vlan100

[Huawei]interfaceVlan-interface100

[Quidway-Vlan-interface100]ipaddress192.168.1.1255.255.255.0

[Huawei]interfaceVlan-interface200

[Quidway-Vlan-interface200]ipaddress192.168.1.1255.255.255.0

[Quidway-Vlan-interface200]quit

#删除端口

[Huawei]interfaceVlan-interface100

[Quidway]interfaceport-typeaccess

[Quidway-port-typeaccess]portdefaultvlan-interface100

[Quidway-port-port-defaultvlan-interface100]quit

#配置连接信息

[Huawei]user-interfaceVlan-interface100

[Quidway-port-interface100]ipaddress192.168.1.1255.255.255.0

[Quidway-port-interface100]quit

#配置实例

#添加用户名为vlan100的vlan100

[Huawei]user-interfacevlan-interface100

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]ipaddress192.168.1.1255.255.255.0

[Quidway-port-interface100]quit

#配置权限

[Huawei]interfaceVlan-interface100

[Quidway]user-interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]ipaddress192.168.1.255.255.255.0

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]ipaddress192.168.1.255.255.255.0

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]ipaddress192.168.1.255.255.255.0

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]ipaddress192.168.1.101

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]ipaddress192.168.1.101

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface200]quit

#配置

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface200]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]quit

#配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface100

[Quidway-port-interface100]quit

配置实例

[Quidway]interfaceVlan-interface100

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]undoport-interface200

[Quidway-port-interface100]quit

二、配置访问控制列表

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

Saved

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]undoport-interface500

[Quidway-port-interface500]quit

#配置实例

[Quidway]interfaceVlan-interface500

[Quidway-port-inter

标签: 电脑常识

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 3561739510@qq.com 举报,一经查实,本站将立刻删除。

Copyright © www.jszcfw.com All Rights Reserved. 滇ICP备2023005829号 图片来源于网络,如有侵权请联系删除