偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

交換機(jī)的啟動(dòng)及基本配置實(shí)驗(yàn)

網(wǎng)絡(luò) 路由交換
也許還有一些初入企業(yè)的網(wǎng)絡(luò)運(yùn)維人員,也許對(duì)交換機(jī)中的一些細(xì)節(jié)存在小小的疑問(wèn),那么就來(lái)一起看看這篇文章吧,或許你會(huì)在這其中發(fā)現(xiàn)自己所需要的內(nèi)容。

實(shí)驗(yàn)1 交換機(jī)的啟動(dòng)及基本配置:

1924交換機(jī)上配置:

sw1924_b#delete nvram----------全部清除交換機(jī)的所有配置

sw1924_b#reload----------------重新啟動(dòng)交換機(jī)(初始提示符為> )

sw1924_b#hostname sw1924---------------------------設(shè)置交換機(jī)的主機(jī)名

>sw1924_b#enable secret cisco-----------------------設(shè)置加密密碼

sw1924_b#enable password level 1 cisco1-----------設(shè)置等級(jí)密碼(1***)

sw1924_b#enable password level 15 cisco15----------設(shè)置等級(jí)密碼(15***)

sw1924_b#ip address 192.168.14.1 255.255.255.0-----設(shè)置交換機(jī)的管理IP地址

sw1924_b#ip default-gateway 192.168.198.2----------設(shè)置交換機(jī)的網(wǎng)關(guān)地址

sw1924_b#ip domain-name pctc.com.cn----------------設(shè)置交換機(jī)所連域的域名

sw1924_b#ip name-server 218.87.18.230--------------設(shè)置交換機(jī)所連域的域名服務(wù)器IP

sw1924_b#show ip-------------------------------------------查看上述設(shè)置環(huán)境

sw1924_b#show version--------------------------------------查看交換機(jī)的版本等信息

sw1924_b#show running-config-------------------------------查看交換機(jī)的當(dāng)前運(yùn)行配置等全部信息

sw1924_b#show int e0/1-------------------------------------查看交換機(jī)的第1個(gè)端口信息

2912交換機(jī)上配置:

sw2912_a#erase nvram-----------全部清除交換機(jī)的所有配置

sw2912_a#reload----------------重新啟動(dòng)交換機(jī)(初始提示符為switch> )

sw2912_a#int vlan 1----------------------------------進(jìn)入vlan 1特殊接口配置模式

sw2912_a#ip address 192.168.15.1 255.255.255.0----設(shè)置交換機(jī)的管理IP地址

sw2912_a#ip default-gateway 192.168.198.2----------設(shè)置交換機(jī)的網(wǎng)關(guān)地址

sw2912_a#ip domain-name pctc.com.cn----------------設(shè)置交換機(jī)所連域的域名

sw2912_a#ip name-server 218.87.18.230--------------設(shè)置交換機(jī)所連域的域名服務(wù)器IP

sw2912_a#show int vlan 1-----------------------------------查看交換機(jī)的VLAN 1特殊接口配置信息

sw2912_a#show run------------------------------------------查看交換機(jī)的當(dāng)前運(yùn)行配置等全部信息

實(shí)驗(yàn)2 交換機(jī)的端口和MAC地址表的設(shè)置:

1924交換機(jī)配置端口屬性:

sw1924_b#conf t

sw1924_b#interface ethernet 0/1-------------------------進(jìn)入第1個(gè)端口

sw1924_b#description sw1924_b-e0/1-pc1---------------給端口寫(xiě)入注釋信息

sw1924_b#duplex auto/full/full-flow-control/half-----設(shè)置端口的工作模式

sw1924_b#port secure---------------------------------啟用端口安全性

sw1924_b#port secure max-mac-count 1---------設(shè)置該端口允許對(duì)應(yīng)的MAC地址數(shù)(默認(rèn)132個(gè))

sw1924_b#sh mac-address-table security------------------查看端口安全性

2912交換機(jī)配置端口屬性:

sw1912_a#conf t-----------------------------------------進(jìn)入全局配置模式

sw1912_a#interface fastethernet 0/1-------------進(jìn)入第1個(gè)端口

sw1912_a#description sw2912_a-f0/1-pc1-------給端口寫(xiě)入注釋信息

sw1912_a#duplex auto/full/half---------------設(shè)置端口的工作模式

sw1912_a#port security-----------------------啟用端口安全性

sw1912_a#port security max-mac-count 1-------設(shè)置該端口允許對(duì)應(yīng)的MAC地址數(shù)(默認(rèn)132個(gè))

sw1912_a#end---------------------------------返回特權(quán)模式

sw1912_a#sh port security--------------------查看端口安全性

配置和查看MAC地址表:

1924交換機(jī)配置MAC地址表:

sw1924_b#mac-address-table aging-time 600-----------------設(shè)置動(dòng)態(tài)地址超時(shí)時(shí)間

sw1924_b#mac-address-table permanent 0000.0cdd.5a4d e0/3---定義***MAC地址(綁定MAC地址)

sw1924_b#mac-address-table restricted static 0000.0cdd.aaed e0/6 e0/7--定義受限MAC地址

sw1924_b#address-violation disable/ignore/suspend----------------------定義地址安全違規(guī)

sw1924_b#show mac-address-table------------------查看上述配置

sw1924_b#clear mac-addr restric static-----------清除受限MAC地址表項(xiàng)

2912交換機(jī)配置MAC地址表:

sw2912_a#mac-address-table aging-time 700---------------設(shè)置動(dòng)態(tài)地址超時(shí)時(shí)間

sw2912_a#mac-address-table static 0000.0cdd.5a4d e0/3---定義***MAC地址(綁定MAC地址)

sw2912_a#mac-address-table secure 00d0.f80d.3333 f0/3 vlan 1---定義受限MAC地址

sw2912_a#port security action shutdown/trap-----------------定義地址安全違規(guī)

sw2912_a#show port security--------------------------------------------查看上述配置

實(shí)驗(yàn)3 配置VTP、VLAN、VLAN Trunk和STP:

配置VTP:

sw1924_a#conf t

sw1924_a#vtp server-------------------定義VTP的工作模式

sw1924_a#vtp domain cisco-------------定義VTP的域名

sw1924_a#trunk on---------------------啟用干道

sw1924_b#vtp domain cisco-------------加入VTP域

sw1924_b#vtp client-------------------定義VTP的工作模式

sw1924_b#trunk on---------------------啟用干道

sw1924_a#show trunk b

sw1924_a#show trunk b allowed-vlans-----------查看干道信息

配置VLAN:

sw1924_a#vlan 10 dept1

sw1924_a#vlan 20 dept2

sw1924_a#vlan 30 dept3

sw1924_a#vlan 40 dept4----------------定義所需VLAN

sw1924_a#show vlan----------------------------查看VLAN信息

sw1924_b#show vlan

sw1924_b#show vtp-----------------------------查看VTP的信息

sw1924_b#int e0/1

sw1924_b#vlan-membership static 10

sw1924_b#int e0/2

sw1924_b#vlan-membership static 20

sw1924_b#int e0/3

sw1924_b#vlan-membership static 30

sw1924_b#int e0/4

sw1924_b#vlan-membership static 40----把接口劃入各自VLAN

配置spanning tree:

sw1924_b#spantree 1------------啟用生成樹(shù)協(xié)議

sw1924_b#sh spantree 1-----------------查看生成樹(shù)信息

sw1924_b#no spantree 1---------關(guān)閉生成樹(shù)協(xié)議

sw1924_b#sh spantree 1---------查看生成樹(shù)信息

責(zé)任編輯:遺忘者 來(lái)源: talkstone 的BLOG
相關(guān)推薦

2014-06-20 14:02:11

交換機(jī)

2009-08-05 10:07:20

交換機(jī)配置實(shí)驗(yàn)

2011-08-16 09:55:37

Juniper Ex系

2011-02-22 09:53:55

交換機(jī)配置命令

2010-01-05 10:14:39

交換機(jī)配置TRUNK

2010-01-14 10:43:18

交換機(jī)配置交換機(jī)種類

2010-01-18 17:02:01

交換機(jī)VTP協(xié)議

2010-01-27 10:30:26

Cisco交換機(jī)配置

2011-07-29 09:56:28

2010-01-12 15:04:26

華為交換機(jī)配置備份

2010-01-14 10:00:08

交換機(jī)VLAN應(yīng)用

2011-03-08 10:58:38

VLANIP

2011-03-09 14:28:28

DHCP

2010-07-16 17:48:55

2018-12-24 06:49:55

SDN交換機(jī)SDN網(wǎng)絡(luò)架構(gòu)

2011-08-16 13:12:19

交換機(jī)配置

2013-12-11 13:30:20

交換機(jī)技術(shù)交換機(jī)配置

2011-03-09 14:00:21

trunkVLAN

2010-01-05 14:29:59

2010-01-11 14:59:03

TP-Link交換機(jī)配
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)