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

首頁 > 學院 > 網絡通信 > 正文

交換機專題 [必讀]

2019-11-05 02:06:32
字體:
來源:轉載
供稿:網友

  Cisco 3548(3524) 交換機:
  
  第一次連接交換機,配置終端參數為:
  波特率:9600;數據位:8;停止位:1;奇偶校驗:無;流控制:無。
  通過串口線連上路由器后,按回車,即可看到配置向導:
  (假如不是第一次配置,可以進入超級用戶模式后用命令setup調用以下過程)
  
  --- System Configuration Dialog ---
  
  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 '[]'. 默認參數在[]中
  
  Continue with configuration dialog? [yes/no]: y 繼續交互配置嗎?回答:y
  Enter ip address: 10.1.1.249 ip地址
  Enter IP netmask: 255.255.255.0 子網掩碼
  Would you like to enter a default gateway address? [yes]: y 設置默認網關?y
  IP address of default gateway: 10.1.1.254 默認網關
  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數據:
  3548#vlan database
  3548(vlan)#reset 清除以前的配置
  3548(vlan)#vtp client 設為vtp客戶模式
  3548(vlan)#vtp domain _domain vtp域是_domain
  3548(vlan)#vtp password ******** 設定vtp域密碼
  3548(vlan)#exit
  3548#
  驗證: show vtp status 顯示vlan 數據
  show vtp counters
  show vlan
  同步后看到的vlan數目和名稱應與6506上的一致
  
  指定端口到Vlan、配置端口為portfast方式(快速建立連接):
  方法1:命令方式
  3548#config term
  3548(config)#inter f0/1 配置1號快速以太網端口
  3548(config if)# switchport access vlan 2 指定端口到Vlan 2
  3548(config if)# spanning-tree portfast 配置端口為portfast方式
  3548(config)#inter f0/2 配置1號快速以太網端口
  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數據”
  
  保存配置信息:
  方法1:命令方式
  3548# write ( 或 copy running-config startup-config )
  方法1:Web 方式
  選中設備(而不是單個端口),點擊save configure按鈕。
  
  Cisco 4000,6500交換機:
  
  第一次連接交換機,配置終端參數為:
  波特率:9600;數據位:8;停止位:1;奇偶校驗:無;流控制:無。
  連接上后看到:
  console>
  進入超級用戶模式:
  console> enable
  console>(enable)
  在此打入以下命令設置系統:
  set system name 6506 #設置系統名稱
  set password _password #設置telnet密碼
  set enablepass _password #設置enable(超級用戶)密碼
  
  set interface sc0 1 10.1.1.253/255.255.255.0 10.1.1.255 #設置本交換機的IP地址
  set ip route 0.0.0.0/0.0.0.0 10.1.1.254 #設置默認網關
  set ip alias default 0.0.0.0 #設置ip對應的設備名,方便治理
  set ip alias 6506 10.1.1.253 #用途如:ping 2620, telnet 3548_2a
  
  set vtp domain _domain # 設置設置VTP域名
  set vtp passwd ******** # VTP域密碼
  set vlan 2 name vlan2 #建立VLAN
  set vlan 3 name vlan3
  ...
  set trunk 2/1 on dot1q 1-1005 #設置2/1為運行802.1Q協議的干道,答應vlan 1-1005通過
  set trunk 2/2 nonegotiate isl 1-1005 #設置3/4為運行isl協議的干道,答應vlan 1-1005通過
  ...
  set trunk 3/1 on dot1q 1-1005 #設置Port Channel(鏈路聚合)
  set trunk 3/2 on dot1q 1-1005 #Port Channel 各成員要有相同配置
  set port channel 3/1-2 mode on #假如是4000交換機,不要將連接L3模塊的端口設為Channel,否則無法支持ACL
  
  set vlan 5 2/1 #指定端口2/1到vlan 5
  ...
  set port name 2/1 gg #設置端口名稱
  ...
  
  set mls flow full #設置多層交換流類型
  
  說明: 1.任何命令輸入之后立即保存并生效
  2.本配置方法僅說明方法,具體參數選擇參看最近配置文件
  
  Msfc 配置方法
  功能:路由/多層交換/DHCP動態主機配置
  
  進入配置:(通過6506,如過配置了telnet密碼,也可直接telnet 10.1.1.254)
  6506> (enable) session 15 (MSFC安裝在交換引擎內,槽號為15 務份引擎內的MSFC為16)
  Trying Router-15...
  Connected to Router-15.
  Escape character is '^]'.
  
  msfc>enable 進入超級用戶狀態
  Password:
  msfc#config term 進入全局配置狀態
  Enter configuration commands, one per line. End with CNTL/Z.
  msfc(config)#
  hostname msfc #配置系統名稱
  enable secret ******** #配置超級用戶密碼
  no ip dhcp conflict logging #不使用dhcp沖突記錄
  ip dhcp excluded-address 10.1.1.1 10.1.1.9 #不用于動態分配的地址范圍
  ip dhcp excluded-address 10.1.1.200 10.1.1.254
  ip dhcp excluded-address 10.1.2.1 10.1.2.99
  ip dhcp excluded-address 10.1.3.1 10.1.3.99
  ...
  ip dhcp pool 1 #一個為動態分配預備的ip pool
  network 10.1.1.0 255.255.255.0 #網絡地址-不用于動態分配的地址范圍=用于動態分配的地址范圍
  default-router 10.1.1.254 #為客戶設定默認網關
  netbios-name-server 10.1.8.4 10.1.8.5 #為客戶設定主備wins ../InfoList/Catalog_37_1.html" target="_blank" title="服務器" >服務器地址
  netbios-node-type h-node #為客戶設定節點類型
  ip dhcp pool 2
  network 10.1.2.0 255.255.255.0
  default-router 10.1.2.254
  netbios-name-server 10.1.2.4 10.1.2.5 #Vlan 2 wins服務器地址
  netbios-node-type h-node
  
  interface Vlan1 #設置VLAN 1路由接口
  msfc(config if)# ip address 10.1.1.254 255.255.255.0 #設置IP地址、子網掩碼
  no shutdown #啟用端口
  
  interface Vlan2 #對每個VLAN重復配置過程
  ip address 10.1.2.254 255.255.255.0
  no shutdown
  msfc(config if)# exit
  msfc(config)# exit
  msfc# write ( 或 copy running-config startup-config ) 保存配置信息
  msfc# exit 退出
  msfc> exit 退出

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 临清市| 梨树县| 介休市| 巩留县| 多伦县| 上虞市| 常州市| 八宿县| 永泰县| 鹤峰县| 北辰区| 五大连池市| 德化县| 新田县| 广元市| 崇州市| 石门县| 东乡族自治县| 南昌市| 文水县| 巴塘县| 云和县| 亚东县| 射阳县| 崇州市| 视频| 邓州市| 惠安县| 武胜县| 电白县| 福州市| 中方县| 鄢陵县| 濉溪县| 泰和县| 昂仁县| 孝义市| 南昌市| 光山县| 通城县| 阜新|