国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

Cisco3524交換機(jī)配置VLAN實(shí)例

2019-11-05 01:34:57
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

  參考:
  Cisco 3548(3524) 交換機(jī):
  第一次連接交換機(jī),配置終端參數(shù)為:
  波特率:9600;數(shù)據(jù)位:8;停止位:1;奇偶校驗(yàn):無(wú);流控制:無(wú)。
  通過(guò)串口線連上路由器后,按回車(chē),即可看到配置向?qū)В?
  (假如不是第一次配置,可以進(jìn)入超級(jí)用戶(hù)模式后用命令setup調(diào)用以下過(guò)程)
  
  --- System Configuration Dialog ---
  
  At any point you may enter a question mark ? for help.任何時(shí)候可以打?取得幫助
  Use ctrl-c to abort configuration dialog at any PRompt.按Ctrl-C可以取消并退出
  Default settings are in square brackets [].默認(rèn)參數(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設(shè)置默認(rèn)網(wǎng)關(guān)?y
  IP address of default gateway: 10.1.1.254默認(rèn)網(wǎng)關(guān)
  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輸入超級(jí)用戶(hù)密碼
  
  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
  
  修改配置:
  
  禁止通過(guò)snmp治理:
  3548>enable
  password:
  3548#config term
  3548(config)#no snmp community private
  3548(config)#no snmp community public
  
  接著配置干道:(確定上級(jí)交換機(jī)對(duì)應(yīng)端口已設(shè)為干道模式)
  3548(config)#inter g0/1 選擇第一個(gè)千兆口
  3548(config if)# switchport mode trunk設(shè)為干道模式
  假如g0/2用于連接另一臺(tái)3548,也設(shè)為干道
  3548(config)#inter g0/2
  3548(config if)# switchport mode trunk
  返回
  3548(config if)# exit
  3548(config)# exit
  3548#
  驗(yàn)證: ping 10.1.1.254
  
  配置Vlan數(shù)據(jù):
  3548#vlan database
  3548(vlan)#reset清除以前的配置
  3548(vlan)#vtp client設(shè)為vtp客戶(hù)模式
  3548(vlan)#vtp domain _domainvtp域是_domain
  3548(vlan)#vtp password ********設(shè)定vtp域密碼
  3548(vlan)#exit
  3548#
  驗(yàn)證:show vtp status顯示vlan 數(shù)據(jù)
  show vtp counters
  show vlan
  同步后看到的vlan數(shù)目和名稱(chēng)應(yīng)與6506上的一致
  
  指定端口到Vlan、配置端口為portfast方式(快速建立連接):
  方法1:命令方式
  3548#config term
  3548(config)#inter f0/1配置1號(hào)快速以太網(wǎng)端口
  3548(config if)# switchport access vlan 2指定端口到Vlan 2
  3548(config if)# spanning-tree portfast配置端口為portfast方式
  3548(config)#inter f0/2配置1號(hào)快速以太網(wǎng)端口
  3548(config if)# switchport access vlan 2指定端口到Vlan 2
  3548(config if)# spanning-tree portfast配置端口為portfast方式
  ...對(duì)每個(gè)要設(shè)定的端口重復(fù)上述步驟。
  3548(config if)# exit
  3548(config)# exit
  3548#
  方法1:Web 方式
  (預(yù)先要安裝插件:jre-1-2-2-005-win-i-09-mar-2000.exe)
  打開(kāi)瀏覽器連接設(shè)備:在地址欄輸入設(shè)備的治理頁(yè)面url,如3548_9a(10.1.1.248)為:http://10.1.1.249/basiccfg.Html
  選中菜單port -> port configure -> 設(shè)port fast 為Enable
  選中菜單vlan -> vlan membership -> 指定端口所屬的Vlan號(hào) 可同時(shí)指定多個(gè)端口
  
  
  ! 注重: 假如把一個(gè)端口指定到不存在的VLAN上,3548交換機(jī)的VLAN同步會(huì)異常,此時(shí)應(yīng)該為正確VLAN并重新“配置Vlan數(shù)據(jù)”
  
  保存配置信息:
  方法1:命令方式
  3548# write ( 或 copy running-config startup-config )
  方法1:Web 方式
  選中設(shè)備(而不是單個(gè)端口),點(diǎn)擊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)名稱(chēng)
  !
  enable secret 5 $1$4ZMs$rfC.g/nN.owt3eW2uoCL/0#加密后的enable密碼
  !
  !
  !
  !
  !
  !
  ip subnet-zero
  !
  !
  !
  interface FastEthernet0/1#模塊0的1號(hào)快速以太網(wǎng)接口
  switchport access vlan 5#指定端口0/1到vlan 5
  spanning-tree portfast#假如接的是工作站,指定端口為portfast方式(不運(yùn)行生成樹(shù)協(xié)議,加快建立連接速度)
  !
  interface FastEthernet0/2
  spanning-tree portfast#默認(rèn)情況下端口屬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
  !
  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-tree portfast
  !
  interface FastEthernet0/42
  spanning-tree portfast
  !
  interface FastEthernet0/43
  spanning-tree portfast
  !
  interface FastEthernet0/44
  spanning-tree portfast
  !
  interface FastEthernet0/45
  spanning-tree portfast
  !
  interface FastEthernet0/46
  spanning-tree portfast
  !
  interface FastEthernet0/47
  spanning-tree portfast
  !
  interface FastEthernet0/48
  spanning-tree portfast
  !
  interface GigabitEthernet0/1
  switchport mode trunk#設(shè)置G0/1為運(yùn)行isl協(xié)議的干道,默認(rèn)答應(yīng)所有vlan通過(guò)
  !
  interface GigabitEthernet0/2
  !
  interface VLAN1
  ip address 10.1.1.249 255.255.255.0#本交換機(jī)的IP地址
  no ip directed-broadcast
  no ip route-cache
  !
  ip default-gateway 10.1.1.254#默認(rèn)網(wǎng)關(guān)
  snmp-server engineID local 00000009020000036BC
  !
  line con 0
  transport input none
  stopbits 1
  line vty 0 4
  password _password#telnet密碼
  login
  line vty 5 15
  password _password#telnet密碼
  login
  !
  end


發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 德清县| 南雄市| 成安县| 商洛市| 托里县| 津南区| 广安市| 塔城市| 崇明县| 宣城市| 伊川县| 西乡县| 卢湾区| 怀仁县| 密云县| 六盘水市| 陵水| 大英县| 常山县| 唐海县| 腾冲县| 商水县| 察哈| 兰考县| 雅安市| 和政县| 汪清县| 万山特区| 彩票| 化德县| 如皋市| 阳原县| 七台河市| 高邮市| 罗城| 邵东县| 辽阳市| 丰原市| 许昌县| 牙克石市| 泗洪县|