在網絡中配置思科交換機

By default, all ports of a switch are enabled. As we are talking about layer 2 switching, there is no need to configure IP address or any routing protocol on the switch. In such a situation, the configuration is not focused on the switch.

缺省情況下,交換機的所有端口均處于啟用狀態。 當我們談論第2層交換時 ,無需在交換器上配置IP地址或任何路由協議。 在這種情況下,配置不會集中在交換機上。

The normal configuration given below can be done on the switch:

下面給出的常規配置可以在交換機上完成:

  1. You can define the hostname on the switch.

    您可以在交換機上定義主機名。

  2. You can set the password for the switch.

    您可以設置交換機的密碼。

  3. You can describe all the ports of the switch.

    您可以描述交換機的所有端口。

  4. You can set the password for the console ports.

    您可以設置控制臺端口的密碼。

  5. You can set the password of ports for Telnetting.

    您可以設置用于Telnet的端口密碼。

The above mentioned configuration list can be seen with the following example:

通過以下示例可以看到上面提到的配置列表:

  • First, you have to execute the command execute using the command execution mode. You will see switch by default as soon as you open it. Once you run this command, you will enter into privileged execution mode. In this mode, you execute the config terminal command. By executing this command, you will be in the global configuration mode.

    首先,必須使用命令執行模式執行命令執行。 默認情況下,您將在打開開關后立即看到它。 一旦運行此命令,您將進入特權執行模式。 在這種模式下,您將執行config terminal命令。 通過執行此命令,您將進入全局配置模式。

Switch>enable
Switch# config terminal
Switch(config)# 

  • You can configure your switch after coming into the global configuration mode. You use the hostname command to configure hostname on the switch. After this command, you can mention the name that you want to give to the switch.

    進入全局配置模式后,可以配置交換機。 您可以使用hostname命令在交換機上配置主機名。 執行此命令后,您可以提及要為交換機指定的名稱。

  • Switch(config)#hostname MRSwitch
    
    
  • As soon as this command is executed, the name of your switch is set up.

    執行此命令后,即會設置交換機的名稱。

  • MRSwitch(config)#
    
    
  • The switch can be protected from password so that no unauthorized person can access it. You use the enable secret command for this. After this command, you type the password you want to set for the switch.

    可以使用密碼保護該開關,以便任何未經授權的人都不能訪問它。 為此,請使用enable secret命令。 此命令后,鍵入要為交換機設置的密碼。

  • MRSwitch(config)#enable secret MR123
    
    
  • To configure an interface of the switch, first, you have to go to the interface configuration mode. For this, use the interface command. Next, to this command, you have to type the name of the interface.

    要配置交換機的接口,首先,必須進入接口配置模式。 為此,請使用interface命令。 接下來,在此命令中,您必須鍵入接口的名稱。

  • MRSwitch(config)# interface f0/16
    
    
  • To define the description of an interface, you use the description command in the interface configuration mode. Next, to this command, you write the description of that interface.

    要定義接口的描述,請在接口配置模式下使用description命令。 接下來,在此命令中,編寫該接口的描述。

  • MRSwitch(config-if)# description Description of of/16 interface
    
    
  • You use the password command to set the password of any console line. But for this, you have to first go to the configuration mode of the console line you want to set. For this, you execute the line console command. Next, to this command, you type the console number of the console.

    您可以使用password命令來設置任何控制臺行的密碼。 但是為此,您必須首先進入要設置的控制臺行的配置模式。 為此,您執行line console命令。 接下來,在此命令中,鍵入控制臺的控制臺號。

  • MRSwitch(config-if)# line console 0
    MRSwitch(config-line)#password mrconsole
    
    
  • After that, you can execute the login command. Anyone trying to access the console line by this command is forced to enter the password. If you do not execute the login command, then the password is set but the password is not compulsory to enter. You can execute this command even after the telnet password is set.

    之后,您可以執行login命令。 任何試圖通過此命令訪問控制臺行的人都必須輸入密碼。 如果不執行login命令,則將設置密碼,但密碼不是必須輸入的。 即使設置了telnet密碼,您也可以執行此命令。

  • You use the line "vty" command to set the telnet password on the interfaces. Next, to this command, you give the range of virtual terminals lines. If you want to configure all 16 lines, then it gives 0 to 15 range. Then you set the telnet password with the password command and execute the login command.

    您可以使用line “ vty”命令在接口上設置telnet密碼。 接下來,向該命令提供虛擬終端線的范圍。 如果要配置所有16條線,則其范圍為0到15。 然后,使用password命令設置telnet密碼并執行login命令。

  • MRSwitch(config-line)#line vty 0 15
    MRSwitch(config-line)#password mrtelnet
    MRSwitch(config-line)#login
    

    翻譯自: https://www.includehelp.com/computer-networks/configuring-cisco-switches.aspx

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/378824.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/378824.shtml
英文地址,請注明出處:http://en.pswp.cn/news/378824.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

黑色背景下,描繪照片的輪廓形狀并保存

描繪照片的輪廓形狀并保存 import cv2 from matplotlib import pyplot as plt # 1.先找到輪廓 img cv2.imread(E:\Python-workspace\OpenCV\OpenCV/beyond.png, 0) _, thresh cv2.threshold(img, 0, 255, cv2.THRESH_BINARY cv2.THRESH_OTSU) image, conturs, hierarchy c…

java pdf合并_Java 合并、拆分PDF文檔

本文將介紹如何在Java程序中合并及拆分PDF文檔,合并文檔時,包括合并多個不同PDF文檔為一個文檔,以及合并PDF文檔的不同頁面為一頁;拆分文檔是,包括將PDF文檔按每一頁拆分,以及按指定頁數范圍來拆分。下面將…

HDU4405 期望

對于期望,首先,對于這個公式中p表示概率,x表示隨機變量 展開則為 ex p1*x1p2*x2p3*x3....... 對于本題 假設 ex[ i ]表示當前 i 走到 n 的期望值。所以若 i 處沒有飛機,ex[ i ]sigma(1/6*ex[ik])1 其中(k1...6) (1表示…

調用本地電腦攝像頭并進行按P進行捕獲照片并保存,按下Q退出

調用本地電腦攝像頭并進行按P進行捕獲照片并保存,按下Q退出 灰度攝像頭顯示: import cv2 cap cv2.VideoCapture(0) if not cap.isOpened():print("Cannot open camera")exit() while True:# 逐幀捕獲ret, frame cap.read()# 如果正確讀取幀…

intersect函數_PHP array_intersect()函數與示例

intersect函數PHP array_intersect()函數 (PHP array_intersect() Function ) array_intersect() function is used to find the matched elements from two or more elements. Function “array_intersect()” compares the values of the first array with the other arrays …

很全的SQL注入語句

1、返回的是連接的數據庫名and db_name()>02、作用是獲取連接用戶名and user>03、將數據庫備份到Web目錄下面;backup database 數據庫名 to diskc:\inetpub\wwwroot\1.db;--4、顯示SQL系統版本and 1(select VERSION) 或and 1convert(int,version)--5、判斷xp_cmdshell擴展…

使用DataTable更新數據庫

1、修改數據 DataRow dr hRDataSet.Tables["emp"].Rows.Find(textBox3.Text);//DataRow dr hRDataSet.Tables["emp"].Select("id"textBox3.Text)[0];dr.BeginEdit();dr["name"] textBox1.Text;dr.EndEdit();SqlCommandBuilder cmdn…

java異常體系_JAVA異常體系結構詳解

一、什么是異常異常:程序在運行過程中發生由于硬件設備問題、軟件設計錯誤等導致的程序異常事件。(在Java等面向對象的編程語言中)異常本身是一個對象,產生異常就是產生了一個異常對象。 ——百度百科二、異常體系Java把異常當作對象來處理&#xf…

對照片質量進行壓縮

對照片質量進行壓縮 其實無論是jpg還是png都是已經壓縮編碼化的格式罷了,原圖片的大小要遠遠大于壓縮編碼后的格式 1,像素:圖片放大到一定程度之后的一個個的小方塊 2,RGB:每一個像素(小方塊)都…

Silverlight訪問 Apache服務器(Tomcat,Geronimo)中部署的Webservice

Silverlight 訪問 Apache服務器中的Webservice 開發環境 Vs2010 、 Silverlight4 、 Java Jdk1.6 U 21 、 Apache-tomcat-6.0.20 、 Myeclipse8.5 、 Apache-ant-1.8.1 、 Axis2 、 Geronimo-tomcat6-javaee5-2.2. 下載地址: Apache-tomcat : http://apa…

那些幫助你成為優秀前端工程師的講座——《性能篇》

這篇文章是前端優秀講座和討論列表系列連載第七篇,介紹前端性能優化技巧。前端領域發展迅速,只有時刻掌握前端發展趨勢和技術動態,學習前沿的開發思想和理念才能讓自己跟上時代的步伐,保持自己的技術優勢。 您可能感興趣的相關文章…

mca終端_MCA的完整形式是什么?

mca終端1)MCA:計算機應用碩士 (1) MCA: Master of Computer Application) MCA is an abbreviation of Master of Computer Application. It is a masters degree program for post-graduation in Computer applications. This post-graduate course duration is abo…

鋼鐵俠java_現代版“鋼鐵俠”,無所不能的程序員,java工程師實現人造器官!...

一位名叫利亞姆澤貝迪(Liam Zebedee)的軟件工程師已經厭倦了糖尿病患者的生活挑戰,因此他決定入侵他的胰島素泵,并將其轉變成一種嶄新的高科技胰腺胰腺。Zebedee詳細介紹了查找和訂購零件的過程,為智能胰島素泵編寫軟件的代碼以及在其博客中組…

Windows下的Memcache安裝 (轉)

Windows下的Memcache安裝:1. 下載memcache的windows穩定版,解壓放某個盤下面,比如在c:\memcached2. 在終端(也即cmd命令界面)下輸入 ‘c:\memcached\memcached.exe -d install’ 安裝3. 再輸入: ‘c:\memca…

C#中實現js中的eval函數功能

在js中有eval函數,比如 eval(‘33*4’)結果為15; 但C#中想要完成這樣的功能,卻沒有相應的函數,可以用sql語句的方式實現,比如,執行 select 33*4 的方式。 可以先構造公式 Formula …

查看照片的指定位置的像素點值,并在照片中繪制一條指定像素顏色的線段

查看照片的指定位置的像素點值,并在照片中繪制一條指定像素的線段 import cv2 img cv2.imread(E:\Python-workspace\OpenCV\yanyu/beyond.png,1)#1為彩色圖片,0為灰度圖片 (b,g,r) img[20,20]#取照片的(20,20)處的像素點,左上角為(0,0)&am…

大數據和云計算涉及的技術_云計算涉及的風險

大數據和云計算涉及的技術In todays life using of cloud is very common among people, we use different clouds like Google cloud, cloud Azure etc. to store our photos, Videos, documents, data etc. to save space as well as we think that we will be able to retri…

int 轉interger java_Java中Integer和int之間的轉換

int到Integer:int a3;Integer Anew Integer(a);或:Integer AInteger.valueOf(a);Integer到int:Integer Anew Integer(5);int aA.intValue();至于Integer.parseInt(String str)則是將String類型轉為int類型。int類型是放在棧空間的,Integer是作為對象放在堆空間的;in…

圖像分割-二階導數零交叉點的含義

已知: 二階導數在灰度斜坡和灰度臺階過渡處會產生雙邊緣響應。 二階導數的符號可以用于確定邊緣的過渡是從亮到暗還是暗到亮。 斜坡開始處,二階導數為負,斜坡結束二階導數為正,斜坡上,二階導數為0.(亮到暗…

采購子系統-流程圖、表結構、內容簡介

設計說明: 流程圖: 表結構: -- {*******************************************************} -- { } -- { GSP } -- { …