Cisco3524交換機配置VLAN實例
參考:
Cisco 3548(3524) 交換機:
第一次連接交換機,配置終端參數(shù)為:
波特率:9600;數(shù)據(jù)位:8;停止位:1;奇偶校驗:無;流控制:無。
通過串口線連上路由器后,按回車,即可看到配置向導:
(如果不是第一次配置,可以進入超級用戶模式后用命令setup調用以下過程)
--- System Configuration Dial og ---
At any point you may enter a question mark ? for help.任何時候可以打?取得幫助
Use ctrl-c to abort configuration dialog at any prompt.按Ctrl-C可以取消并退出
Default settings are in square brackets [].默認參數(shù)在[]中
Continue with configuration dialog? [yes/no]: y繼續(xù)交互配置嗎?回答:y
Enter IP address: 10.1.1.249ip地址
Enter IP netmask: 255.255.255.0子網(wǎng)掩碼
Would you like to enter a default gateway address? [yes]: y設置默認網(wǎng)關?y
IP address of default gateway: 10.1.1.254默認網(wǎng)關
Enter host name [3548_9A]:
The enable secret is a one-way cryptographic secret used
instead of the enable password when it exists.
Enter enable secret: _password輸入超級用戶密碼
Would you like to configure a Telnet password? [yes]: y
Enter Telnet password: _password輸入telnet密碼
Would you like to enable as a cluster command switch? [yes/no]: n集群模式?n
The following configuration command script was created:已建立以下配置信息
ip subnet-zero
interface VLAN1
ip address 10.1.1.249 255.255.255.0
ip default-gateway 10.1.1.254
enable secret 5 $1$biZ3$AOLb9cMTtBwMtGB9lyBzr.
line vty 0 15
password _domainwlzx
snmp community private rw
snmp community public ro
!
end
Use this configuration? [yes/no]:使用該配置信息嗎? y
修改配置:
禁止通過snmp管理:
3548>enable
password:
3548#config term
3548(config)#no snmp community private
3548(config)#no snmp community public
接著配置干道:(確定上級交換機對應端口已設為干道模式)
3548(config)#inter g0/1 選擇第一個千兆口
3548(config if)# switchport mode trunk設為干道模式
如果g0/2用于連接另一臺3548,也設為干道
3548(config)#inter g0/2
3548(config if)# switchport mode trunk
返回
3548(config if)# exit
3548(config)# exit
3548#
驗證: ping 10.1.1.254
配置Vlan數(shù)據(jù):
3548#vlan database
3548(vlan)#reset清除以前的配置
3548(vlan)#vtp client設為vtp客戶模式
3548(vlan)#vtp domain _domainvtp域是_domain
3548(vlan)#vtp password ********設定vtp域密碼
3548(vlan)#exit
3548#
驗證:show vtp status顯示vlan 數(shù)據(jù)
show vtp counters
show vlan
同步后看到的vlan數(shù)目和名稱應與6506上的一致
指定端口到Vlan、配置端口為portfast方式(快速建立連接):
方法1:命令方式
3548#config term
3548(config)#inter f0/1配置1號快速以太網(wǎng)端口
3548(config if)# switchport access vlan 2指定端口到Vlan 2
3548(config if)# spanning-tree portfast配置端口為portfast方式
3548(config)#inter f0/2配置1號快速以太網(wǎng)端口
3548(config if)# switchport access vlan 2指定端口到Vlan 2
3548(config if)# spanning-tree portfast配置端口為portfast方式
...對每個要設定的端口重復上述步驟。
3548(config if)# exit
3548(config)# exit
3548#
方法1:Web 方式
(預先要安裝插件:jre-1-2-2-005-win-i-09-mar-2000.exe)
打開瀏覽器連接設備:在地址欄輸入設備的管理頁面url,如3548_9a(10.1.1.248)為:http://10.1.1.249/basiccfg.html
選中菜單port -> port configure -> 設port fast 為Enable
選中菜單vlan -> vlan membership -> 指定端口所屬的Vlan號 可同時指定多個端口
! 注意: 如果把一個端口指定到不存在的VLAN上,3548交換機的VLAN同步會異常,此時應該為正確VLAN并重新“配置Vlan數(shù)據(jù)”
保存配置信息:
方法1:命令方式
3548# write ( 或 copy running-config startup-config )
方法1:Web 方式
選中設備(而不是單個端口),點擊save configure按鈕。
3548_9A#show run
Building configuration...
Current configuration:
!
version 12.0#軟件版本
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 3548_9A#系統(tǒng)名稱
!
enable secret 5 $1$4ZMs$rfC.g/nN.owt3eW2uoCL/0#加密后的enable密碼
!
!
!
!
!
!
ip subnet-zero
!
!
!
interface FastEthernet0/1#模塊0的1號快速以太網(wǎng)接口
switchport access vlan 5#指定端口0/1到vlan 5
spanning-tree portfast#如果接的是工作站,指定端口為portfast方式(不運行生成樹協(xié)議,加快建立連接速度)
!
interface FastEthernet0/2
spanning-tree portfast#默認情況下端口屬vlan 1
!
interface FastEthernet0/3
spanning-tree portfast
!
interface FastEthernet0/4
spanning-tree portfast
!
interface FastEthernet0/5
spanning-tree portfast
!
interface FastEthernet0/6
spanning-tree portfast
!
interface FastEthernet0/7
spanning-tree portfast
!
interface FastEthernet0/8
spanning-tree portfast
!
interface FastEthernet0/9
spanning-tree portfast
!
interface FastEthernet0/10
spanning-tree portfast
!
interface FastEthernet0/11
spanning-tree portfast
!
interface FastEthernet0/12
spanning-tree portfast
[1] [2] 下一頁
文章錄入:csh 責任編輯:csh!
interface FastEthernet0/13
spanning-tree portfast
!
interface FastEthernet0/14
spanning-tree portfast
!
interface FastEthernet0/15
spanning-tree portfast
!
interface FastEthernet0/16
spanning-tree portfast
!
interface FastEthernet0/17
spanning-tree portfast
!
interface FastEthernet0/18
spanning-tree portfast
!
interface FastEthernet0/19
spanning-tree portfast
!
interface FastEthernet0/20
spanning-tree portfast
!
interface FastEthernet0/21
spanning-tree portfast
!
interface FastEthernet0/22
spanning-tree portfast
!
interface FastEthernet0/23
spanning-tree portfast
!
interface FastEthernet0/24
spanning-tree portfast
!
interface FastEthernet0/25
spanning-tree portfast
!
interface FastEthernet0/26
spanning-tree portfast
!
interface FastEthernet0/27
spanning-tree portfast
!
interface FastEthernet0/28
spanning-tree portfast
!
interface FastEthernet0/29
spanning-tree portfast
!
interface FastEthernet0/30
spanning-tree portfast
!
interface FastEthernet0/31
spanning-tree portfast
!
interface FastEthernet0/32
spanning-tree portfast
!
interface FastEthernet0/33
spanning-tree portfast
!
interface FastEthernet0/34
spanning-tree portfast
!
interface FastEthernet0/35
spanning-tree portfast
!
interface FastEthernet0/36
spanning-tree portfast
!
interface FastEthernet0/37
spanning-tree portfast
!
interface FastEthernet0/38
spanning-tree portfast
!
interface FastEthernet0/39
spanning-tree portfast
!
interface FastEthernet0/40
spanning-tree portfast
!
interface FastEthernet0/41
spanning
上一頁 [1] [2]
文章錄入:csh 責任編輯:csh相關文章
基于寬帶接入網(wǎng)絡遠程視頻監(jiān)控系統(tǒng)
基于寬帶接入網(wǎng)絡遠程視頻監(jiān)控系統(tǒng)...2007-09-09世界杯用Windows Media編碼器建網(wǎng)絡電視直播站
世界杯用Windows Media編碼器建網(wǎng)絡電視直播站...2007-09-09