Home Database Mysql Tutorial switch mode命令详解

switch mode命令详解

Jun 07, 2016 pm 03:03 PM
mode switch Order Detailed explanation

switch mode有三种模式: 1.access------将某个端口加入 某个 vlan , 该端口将为access模式,从该端口出来的包或者贞将不带有tag,主要用来接入终端设备,如PC机、服务器、打印服务器等。 s1(config)#int fa 0/24 s1( config-if )#switch mode access ---指

switch mode有三种模式:
      1.access------将某个端口加入 某个vlan该端口将为access模式,从该端口出来的包或者贞将不带有tag,主要用来接入终端设备,如PC机、服务器、打印服务器等。   
    s1(config)#int fa 0/24
       s1(config-if)#switch mode access ---指定24口为普通端口模式

     2.trunk--------trunk模式的端口用于交换机与交换机,交换机与路由器,大多用于级联网络设备,从该端口出来的包或者贞将带有tag,以便在线路上承载多个vlan。
       s1(config)#int fa 0/24
       s1(config-if)#switch mode   trunk ---指定24口为普通端口模式
  
    3.multi: 在一个线路中承载多个vlan,但不像trunk,它不对承载的数据打标签。主要用于接入支持多vlan的服务器或者一些网络分析设备。现在基本不使用此类接口,在cisco的网络设备中,也基本不支持此类接口了。
   
    注意:以下配置交换机虽然不出错,但会以最后配置的那条为准
    s1(config)#int fa 0/24
     s1(config-if)#switch mode access
    s1(config-if)#switch    access vlan 80
     s1(config-if)#switch mode   trunk
    

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to delete win11 widgets? One command to uninstall Windows 11 widgets function tips How to delete win11 widgets? One command to uninstall Windows 11 widgets function tips Apr 11, 2024 pm 05:19 PM

Widgets are a new feature of the Win11 system. They are turned on by default. However, it is inevitable that some users do not use widgets very much and want to disable them because they take up space. So how should they do this? The editor below will teach you how to operate it, and you can try it out. What are widgets? Widgets are small cards that display dynamic content from your favorite apps and services on your Windows desktop. They appear on the widget board, where you can discover, pin, unpin, arrange, resize, and customize widgets to reflect your interests. The widget board is optimized to display relevant widgets and personalized content based on usage. Open the widget panel from the left corner of the taskbar, where you can see live weather

What is the correct way to restart a service in Linux? What is the correct way to restart a service in Linux? Mar 15, 2024 am 09:09 AM

What is the correct way to restart a service in Linux? When using a Linux system, we often encounter situations where we need to restart a certain service, but sometimes we may encounter some problems when restarting the service, such as the service not actually stopping or starting. Therefore, it is very important to master the correct way to restart services. In Linux, you can usually use the systemctl command to manage system services. The systemctl command is part of the systemd system manager

How to use LSOF to monitor ports in real time How to use LSOF to monitor ports in real time Mar 20, 2024 pm 02:07 PM

LSOF (ListOpenFiles) is a command line tool mainly used to monitor system resources similar to Linux/Unix operating systems. Through the LSOF command, users can get detailed information about the active files in the system and the processes that are accessing these files. LSOF can help users identify the processes currently occupying file resources, thereby better managing system resources and troubleshooting possible problems. LSOF is powerful and flexible, and can help system administrators quickly locate file-related problems, such as file leaks, unclosed file descriptors, etc. Via LSOF Command The LSOF command line tool allows system administrators and developers to: Determine which processes are currently using a specific file or port, in the event of a port conflict

Detailed explanation of the role and usage of PHP modulo operator Detailed explanation of the role and usage of PHP modulo operator Mar 19, 2024 pm 04:33 PM

The modulo operator (%) in PHP is used to obtain the remainder of the division of two numbers. In this article, we will discuss the role and usage of the modulo operator in detail, and provide specific code examples to help readers better understand. 1. The role of the modulo operator In mathematics, when we divide an integer by another integer, we get a quotient and a remainder. For example, when we divide 10 by 3, the quotient is 3 and the remainder is 1. The modulo operator is used to obtain this remainder. 2. Usage of the modulo operator In PHP, use the % symbol to represent the modulus

How to find DHCP packets using Linux commands? How to find DHCP packets using Linux commands? Mar 20, 2024 pm 09:57 PM

Title: How to find DHCP packets using Linux commands? In network management, DHCP (Dynamic Host Configuration Protocol) plays an important role and is responsible for assigning IP addresses and other related configurations to network devices. When a problem occurs on the network, tracking and diagnosing DHCP packets is a necessary operation. In Linux systems, you can easily find, capture and analyze DHCP packets by using some commands. This article will introduce how to use these commands to achieve this purpose. 1. Use the tcpdump command tcpdum

Which command in Linux Which command in Linux Mar 21, 2024 am 09:50 AM

Title: Excerpt from LinuxWhichCommand: A practical tutorial with examples on using the "which" command on Linux and how to find various executables and scripts from the PATH variable. Permalink: linux-which-command Category: Linux Commands In this guide, we will learn about the “Which” command in Linux. Prerequisites: To perform the steps demonstrated in this guide, you need the following components: A properly configured Linux system. For testing purposes, it is recommended to use LinuxVM. Have a basic understanding of the command line interface which command. Modern Linux systems come with multiple tools built-in that can be used for various tasks such as system administration,

How to display mounts in Linux How to display mounts in Linux Mar 21, 2024 am 10:30 AM

File management in Linux has always been the most important part of user workflow. Fortunately, it has a great file system and provides various features for efficient file management. It has commands to create or delete directories, list directories, display directory contents, restrict access, etc. It allows you to view mounted drives and facilitates system monitoring, storage management, troubleshooting disk issues, remote system management, and more. However, learning how to display mounts is essential for every Linux user. So, in this quick blog, we will explain the different commands to display mounts in Linux. How to Show Mounts in Linux In order to see mounted drives, just enter a few simple commands. Here are a few commands that can help

Detailed explanation of how to operate hidden apps on Black Shark phone Detailed explanation of how to operate hidden apps on Black Shark phone Mar 24, 2024 pm 12:09 PM

Detailed explanation of how to operate hidden applications on Black Shark mobile phones As mobile phone functions continue to improve, modern people’s needs for mobile phones are becoming more and more diverse. Some people may save some private information or personal photos on their mobile phones. In order to protect privacy and security, many mobile phones provide the function of hiding applications. As a mobile phone specially designed for gamers, Black Shark also provides users with the function of hiding applications. Let’s introduce in detail the operation method of hidden applications on Black Shark mobile phone. Step 1: Open the “Settings” interface. First, the user needs to open the Black Shark mobile phone.

See all articles