cisco7200vlan配置命令

2021-03-06 02:21:21 字數 7506 閱讀 7084

1樓:匿名使用者

cisco交換機vlan配置命令:

1、將電腦用tel***或console線連線交換機。

2、輸入交換機的使用者名稱、密碼並登陸。

3、進入交換機後:

switch>enable

switch#c onfigure terminalswitch(conf)#hostnameaptch2950aptech2950(conf)#inte***ce vlan 1aptech2950(conf-if)#ipaddress 192.168.1.

1 255.255.255.

0 配置交換機埠ip和子網掩碼

aptech2950(conf-if)#noshut 是配置處於執行中

aptech2950(conf-if)#exitaptech2950(conf)#ipdefault-gateway 192.168.254 設定閘道器位址

2樓:匿名使用者

switch>enable ;進入

特權模式

switch#config terminal ;進入全域性配置模式

switch(config)#hostname ;設定交換機的主機名

switch(config)#enable secret *** ;設定特權加密口令

switch(config)#enable password xxa ;設定特權非密口令

switch(config)#line console 0 ;進入控制台口

switch(config-line)#line vty 0 4 ;進入虛擬終端

switch(config-line)#login ;允許登入

switch(config-line)#password xx ;設定登入口令xx

switch#exit ;返回命令

交換機vlan設定:

switch#vlan database ;進入vlan設定

switch(vlan)#vlan 2 ;建vlan 2

switch(vlan)#no vlan 2 ;刪vlan 2

switch(config)#int f0/1 ;進入埠1

switch(config-if)#switchport access vlan 2 ;當前埠加入vlan 2

switch(config-if)#switchport mode trunk ;設定為幹線

switch(config-if)#switchport trunk allowed vlan 1,2 ;設定允許的vlan

switch(config-if)#switchport trunk encap dot1q ;設定vlan 中繼

switch(config)#vtp domain ;設定發vtp網域名稱

switch(config)#vtp password ;設定發vtp密碼

switch(config)#vtp mode server ;設定發vtp模式

switch(config)#vtp mode client ;設定發vtp模式

3樓:果凍

各位大哥,你們複製難道就不煩嗎?

配置vlan有兩種方式

一種是在全域性模式下直接配

vlan vlan-id

還有一種是在特權模式下進入vlan database下面配還有 cisco自帶的有vtp協議,記得把vtp的mode改為透傳模式

4樓:

config#vlan 10

conf-if#exit

config#inte***ce vlan 10conf-if#ip address 192.168.1.1 255.255.255.0

exit

可以了吧

5樓:匿名使用者

搞扯哦cisco 7200是路由器怎麼配vlan哦

cisco路由器命令 檢視某個vlan下面的配置的命令是什麼?

6樓:匿名使用者

do sh vlan b 檢視vlan

do sh run int vlan x 看svi介面

你想看詳細配置就是do sh run 或者do sh run | b vlan 啦

7樓:匿名使用者

檢視vlan的配置資訊

sw1#show vlan brief

swi#show vlan vlan-id

引申:在全域性模式下配置vlan

sw1(config)#vlan vlan-id                         //新增乙個vlan

sw1(config-vlan)# name vlan-name                 //給vlan取個名字

在vlan資料庫建立vlan

sw1#vlan database                                //進入vlan資料庫

sw1(vlan)#vlan  vlan-id  name  **                //新增乙個vlan 名字為**

sw1(vlan)#exit

刪除已建立的vlan

sw1#vlan database

sw1(vlan)# no vlan  vlan-id

或者可以 sw1(config)#no vlan 2

將埠加入到vlan

sw1(config)#int f0/1                                //進入埠模式

sw1(config-if)#swi acc vlan vlan-id                 //把埠加入到某個vlan

swi(config-if)#no swi acc vlan vlan-id              //將埠從某個vlan上刪除

要同時把多個埠加入到某個vlan:

sw1(config)#int range  f0/0-10

sw1(config-if-range)#swi acc vlan vlan-id

8樓:匿名使用者

檢視vlan介面配置 (比如vlan10 介面)

sh run int vlan 10

sh vlan brief (檢視vlan 下介面所屬狀態)

思科路由器中vlan的配置,請大俠指教

9樓:匿名使用者

需要通過單臂路由才能是不同的vlan之間通訊,具體配置就是進入子介面中封裝802.1q協議配置vlan的ip位址並且no shutdown

router(config)#inte***ce f0/0.1

%link-5-changed: inte***ce fastether***0/0.1, changed state to up

%lineproto-5-updown: line protocol on inte***ce fastether***0/0.1, changed state to uprouter(config-subif)#en

router(config-subif)#encapsulation do

router(config-subif)#encapsulation dot1q ?

<1-1005> ieee 802.1q vlan id

router(config-subif)#encapsulation dot1q 1

router(config-subif)#ip ad

router(config-subif)#ip address 192.168.1.1 255.255.255.0

router(config-subif)#no sh

router(config-subif)#no shutdown

router(config-subif)#

cisco交換機vlan的命令。

10樓:匿名使用者

switch# configure terminal 進入配置狀態switch(config)# vlan 20 劃分乙個vlan vlan號為20

switch(config-vlan)# name test20 將vlan20命名為test20

switch(config-vlan)# end 退出

思科路由器怎麼配置vlan

11樓:匿名使用者

需要通過單臂路由才能是不同的vlan之間通訊,具體配置就是進入子介面中封裝802.1q協議配置vlan的ip位址並且no shutdown

router(config)#inte***ce f0/0.1

%link-5-changed: inte***ce fastether***0/0.1, changed state to up

%lineproto-5-updown: line protocol on inte***ce fastether***0/0.1, changed state to uprouter(config-subif)#en

router(config-subif)#encapsulation do

router(config-subif)#encapsulation dot1q ?

<1-1005> ieee 802.1q vlan id

router(config-subif)#encapsulation dot1q 1

router(config-subif)#ip ad

router(config-subif)#ip address 192.168.1.1 255.255.255.0

router(config-subif)#no sh

router(config-subif)#no shutdown

router(config-subif)#

12樓:匿名使用者

你想問啥 路由上的還是交換上的?

思科路由器配置命令一覽表

13樓:super鄧肯

switch> 使用者模式

1:進入特權模式 enable

switch>enable

switch#

2:進入全域性配置模式 configure terminal

switch>enable

switch#c onfigure terminal

switch(conf)#

3:交換機命名 hostname aptech2950 以aptech2950為例

switch>enable

switch#c onfigure terminal

switch(conf)#hostnameaptch-2950

aptech2950(conf)#

4:配置使能口令 enable password cisco 以cisco為例

switch>enable

switch#c onfigure terminal

switch(conf)#hostnameaptch2950

aptech2950(conf)#enable password cisco

5:配置使能密碼 enable secret ciscolab 以cicsolab為例

switch>enable

switch#c onfigure terminal

switch(conf)#hostnameaptch2950

aptech2950(conf)#enable secret ciscolab

6:設定虛擬區域網vlan 1 inte***ce vlan 1

switch>enable

switch#c onfigure terminal

switch(conf)#hostnameaptch2950

aptech2950(conf)#inte***ce vlan 1

aptech2950(conf-if)#ipaddress 192.168.1.1 255.255.255.0 配置交換機埠ip和子網掩碼

aptech2950(conf-if)#noshut 是配置處於執行中

aptech2950(conf-if)#exit

aptech2950(conf)#ipdefault-gateway 192.168.254 設定閘道器位址

7:進入交換機某一埠 inte***ce fasteher*** 0/17 以17埠為例

switch>enable

switch#c onfigure terminal

switch(conf)#hostnameaptch2950

aptech2950(conf)#inte***ce fasteher*** 0/17

aptech2950(conf-if)#

8:檢視命令 show

switch>enable

switch#show version 察看系統中的所有版本資訊

showinte***ce vlan 1 檢視交換機有關ip 協議的配置資訊

showrunning-configure 檢視交換機當前起作用的配置資訊

showinte***ce fastether*** 0/1 察看交換機1介面具體配置和統計資訊

showmac-address-table 檢視mac位址表

showmac-address-table aging-time 檢視mac位址表自動老化時間

9:交換機恢復出廠預設恢復命令

switch>enable

switch#erase startup-configure

switch#reload

10:雙工模式設定

switch>enable

switch#c onfigure terminal

switch2950(conf)#hostnameaptch-2950

aptech2950(conf)#inte***ce fasteher*** 0/17 以17埠為例

aptech2950(conf-if)#duplexfull/half/auto 有full , half, auto 三個可選項

11:cdp相關命令

switch>enable

switch#show cdp 檢視裝置的cdp全域性配置資訊

show cdpinte***ce fastether*** 0/17 檢視17埠的cdp配置資訊

show cdptraffic 檢視有關cdp包的統計資訊

show cdpnerghbors 列出與裝置相連的cisco裝置

cisco配置vlan問題,cisco配置vlan問題?

配置方面具體點開顯示器 9掏空了快樂新年快樂!思科交換機配置vlan的問題 你有啟用介面嗎?接網線了嗎?還有問題可以直接回覆。int e0 2 switchport mode accessswitchport access vlan 10no shutdow 關於cisco路由器vlan配置問題 需...

關於cisco交換機vlan問題

看看trunk設定是否正確?方便的話把拓撲結構說一下 有台交換機在乙個地方只能尋到3個vlan,但是拿到別的地方就能把所有vlan找到!換的這個介面和之前那個介面配置完全一樣?看不出問題 debug查吧 把vtp client模式先停了,清除配置重新啟動,再配置vlan,啟用vtp client模式...

Cisco3750交換機如何修改vlan中的的dhcp下的d

人家就問你dhcp,一樓的說的太多了吧!enconft servicedhcp 啟動dhcp服務 ipdhcppingpacket5 定義在分發ip的時候先ping幾個包探測 ipdhcppool hehe 定義位址池名稱 work 192.168.1.0 定義位址池的網段 default rout...