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

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

65xx系列交換機配置(NativeIOS)(下)

2019-11-04 23:54:25
字體:
來源:轉載
供稿:網友

  5.4(2)    8.2(0.56)TET Ok
  
  Mod
  Sub-Module         Model       Serial    Hw   Statu
  s
  --- --------------------------- ------------------ ------------ -------
  -------
  5 Policy Feature Card 3    WS-F6K-PFC3A    SAD0752009D  2.0  Ok
  5 MSFC3 Daughterboard     WS-SUP720     SAD075109HX  2.0  Ok
  6 Policy Feature Card 3    WS-F6K-PFC3A    SAD0751085J  2.0  Ok
  6 MSFC3 Daughterboard     WS-SUP720     SAD0751077C  2.0  Ok
  7 Inline Power Module     WS-F6K-PWR            0.0  Ok
  
  Mod Online Diag Status
  --- -------------------
  2 Pass
  3 Pass
  5 Pass
  6 Pass
  7 Pass
  
  3.3. 配置機器名、telnet、密碼
  
  在全局模式下,用conf t,進入配置模式,進行以下配置:
  #conf t
  #clock timezone GMT 8 ;配置時區
  #clock set 13:30:21 31 JAN 2004 ;配置交換機時間
  #clock calendar-valid ;使能硬件時鐘同步
  #service timestamps debug datetime localtime ;配置系統debug記錄時間格式
  #service timestamps log datetime localtime ;配置系統日志記錄時間格式
  #service passWord-encryption ;配置使用加密服務,主要針對口令加密
  #hostname xxxx ;配置交換機名稱
  #enable secret 0 xxxxx ;配置enable口令
  #copy run start ;將配置信息保存到NVRAM中,重啟動不會丟失
  #line vty 0 4 ;配置telnet
  #exec-timeout 30 0
  #password 0 xxxx
  #login
  
  3.4. 配置snmp
  
  #conf t
  #snmp-server community cisco ro(只讀) ;配置只讀通信字符串
  #snmp-server community secret rw(讀寫) ;配置讀寫通信字符串
  #snmp-server enable traps?。慌渲镁W關SNMP TRAP
  #snmp-server host 10.254.190.1 rw ;配置網關工作站地址
  
  3.5. 啟動三層功能
  
  #ip routing ;啟動路由功能
  
  3.6. 查看和配置系統環境變量
  
  使用show bootvar命令查看系統啟動環境變量,包括BOOT, BOOTLDR, and
  CONFIG_FILE參數:
  Router# show bootvar
  BOOT variable = slot0:c6sup22-jsv-mz.121-5c.EX.bin,1;
  CONFIG_FILE variable does not exist
  BOOTLDR variable = bootFlash:c6msfc2-boot-mz.121-3a.E4
  Configu
  ration register is 0x2
  Router#
  改變BOOT,、BOOTLDR、CONFIG_FILE 這三個環境變量使用命令:
  BOOT #boot system
  BOOTLDR #boot bootldr
  CONFIG_FILE #boot config
  
  4. 端口設置
  
  4.1. 端口基本設置
  
  Cisco 65xx系列交換機的端口缺省都是路由模式,一般都會配置為交換端口使用,進
  入端口配置模式:
  對于單一端口,在配置模式下輸入:interface Ethernet,Fast Ethernet,Gigabit
  Ethernet x/y, x為槽位號,y為端口號。
  對于一組端口,可以使用以下的命令進入,例如:
  Router(config)# interface range fastethernet 5/1 - 5   或:
  Router(config-if)# interface range gigabitethernet 2/1 - 2, gigabitethernet
  3/1 - 2
  進行端口配置模式后,可以shutdown,或no shutdown端口,并可以對端口進行配置,
  快速以太端口有全雙工、半雙工和自動協商模式,假如知道對端連接的設備是采用何
  種方式,最好采用手工設置方式固定端口的模式和速率。缺省是自動協商模式。
  快速以太端口的速率可以設置為100M,也可以設置為10M和自動協商。缺省是自動協
  商方式。如:
  Router(config-if)#speed [10 100 auto](速度)
  Router(config-if)# duplex [auto full half](雙工)
  或添加注釋,如:
  Router(config-if)# description Channel-group to "Marketing"
  
  4.2. 配置二層交換接口
  
  (以fastethernet為例,gigabitethernet一樣)
  Router(config)# interface fastethernet x/y
  Router(config-if)# shutdown
  Router(config-if)# switchport??;6500上缺省端口為路由端口,需要寫switchport
  將端口設置為交換端口
  Router(config-if)# switchport mode access
  Router(config-if)# switchport access vlan x
  Router(config-if)# no shutdown
  Router(config-if)# end
  
  清除二層接口配置
  (以fastethernet為例,gigabitethernet一樣)
  Router(config)# interface fastethernet x/y
  Router(config-if)# no switchport
  Router(config-if)# end
  注:使用default interface {ethernet fastethernet gigabitethernet}
  slot/port,使端口回到原來的缺省配置。
  
  4.3. 配置三層路由端口
  
  6500的端口缺省就是具有三層交換的端口,用來跟其他設備的連接,當將一個端口配
  置成三層端口之后,就可以在此端口上分配IP地址了。
  Router(config)# interface fastethernet x/y
  Router(config)# ip add x.x.x.x x.x.x.x
  Router(config)# no shutdown
  
  4.4. 配置端口Trunk
  
  將一個二層端口配置為Trunk模式:
  Router(config)# interface fastethernet x/y (以fastethernet為例,
  gigabitethernet一樣)
  Router(config-if)# shutdown
  Router(config-if)# switchport
  Router(config-if)# switchport trunk encapsulation dot1q
  Router(config-if)# switchport mode trunk
  Router(config-if)# no shutdown
  Router(config-if)# end
  Router# exit
  
  4.5. Ethernaet Channel
  
  Router(config)# interface range gigabitethernet1/1 - 2
  Router(config-if)#no ip address
  Router(config-if)#switchport
  Router(config-if)#switchport trunk encapsulation dot1q
  Router(config-if)#switchport mode trunk
  Router(config-if)#switchport trunk native vlan 1
  Router(config-if)#channel-group 1 mode on
  R>interface Port-channel1 ;自動產生,并且一定要如下所示,否則可能會有問題。
  switchport
  switchport trunk encapsulation dot1q
  switchport mode trunk
  !
  interface GigabitEthernet1/1
   no ip address
   switchport
   switchport trunk encapsulation dot1q
   switchport trunk native vlan 1
   channel-group 1 mode on
  !
  interface GigabitEthernet1/2
   no ip address
   switchport
   switchport trunk encapsulation dot1q
   switchport trunk native vlan 1
   channel-group 1 mode on
  假如有問題,使用命令#no int port-channel 1 ,#int g2/1 -2 ,#no switchport
  
  4.6. 查看端口配置
  Router# show running-config interface fastethernet 5/8
  Router# show interfaces fastethernet 5/8 switchport
  Router# show running-config interface port-channel 1
  Router# show spanning-tree interface fastethernet 4/4
  
  5. 配置VLAN
  
  5.1. 配置VTP
  
  VTP是一個2層信息協議,包括版本1和2。一個網絡設備只能屬于一個VTP domain。
  缺省, Catalyst 6500交換機配置為VTP server mode,在沒有治理域的狀態。直到
  在一個trunk鏈路上收到其他域的宣告或手工配置治理域。VTP并不是一定要配置,
  但是配置可以簡化配置復雜度和易于治理。
  VTP PRuning(VTP裁剪)增強了網絡帶寬利用率。結合VTP,使得沒有必要接收某個
  vlan的廣播信息的交換機被裁剪,免于接收包括broadcast, multicast, unknown,
  and flooded unicast的包。
  Router(config)# vtp domain domain_name
  Router(config)# vtp mode {client server transparent}
  Router(config)# vtp version {1 2}
  Router(config)# vtp password password_string
  Router(config)# vtp pruning
  Router# show vtp status
  
  5.2. 配置VLAN端口
  
  5.3. 創建VLAN
  
  缺省狀態下,所有的二層端口均屬于vlan1,vlan的配置方法如下:
  命令 目的
  Step 1  Router# vlan database 進入vlan配置方式.
  Step 2  Router(vlan)# vlan vlan_ID 加入一個VLAN.
  Step 3 Router(vlan)# vtp domain name 設置vtp域名
  Step 3  Router(vlan)# exit 更新VLAN數據庫,并在治理域內廣播,退到全局模
  式
  Step 4  Router# show vlan name vlan_name 驗證VLAN配置
  
  刪除配置好的vlan
  Router# vlan database
  Router(vlan)# no vlan x
  Deleting VLAN 3...
  Router(vlan)# exit
  
  5.4. 給vlan分配端口
  
  Router(config)# interface fastethernet x/y
  Router(config-if)


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 墨玉县| 辽宁省| 襄城县| 安义县| 丹凤县| 南投市| 襄垣县| 屯门区| 静安区| 晋宁县| 错那县| 那坡县| 宁津县| 襄城县| 新营市| 信丰县| 裕民县| 中方县| 五台县| 渝北区| 武隆县| 霍邱县| 海南省| 巨野县| 合水县| 崇州市| 永福县| 伊金霍洛旗| 同心县| 吉木乃县| 太湖县| 江都市| 河间市| 贺兰县| 土默特左旗| 泰安市| 衡南县| 武定县| 陆良县| 台前县| 沛县|