當前位置:菜譜大全網 - 素菜食譜大全 - 銳捷交換機的配置,登陸問題

銳捷交換機的配置,登陸問題

名字就在 CONFIG模式下輸入 name 妳要配置的名字 時間是系統自己定義的配置不了,只要妳的機子聯了網他會自己調整的。

在全局模式下輸入ip address IP_address sunbet_mask 指定IP地址 就可以了

察看配置就是在特權模式下輸入 show running-config 就OK了

察看Vlan 就是在 特權模式下輸入 show run vlan id (妳建的那個VLAN的名字,例如妳建了個VLAN 10 這條命令就是 show run vlan id 10)

show mac-address-table 這個是察看MAC地址列表

其實很簡單,退出就是EXIT

其他的壹些命令在下面

類別 命令格式 命令含義

基本配置 S> enable 進入特權模式

S# configure terminal 進入全局配置模式

S(config)# hostname name 改變交換機名稱

S(config)# enable password level level_# password 設置用戶口令(level_#=1)或特權口令(level_#=15)

S(config)# line console 0 進入控制臺接口

S(config-line)# password console_password 接上壹條命令,設置控制臺口令

S(config)# line vty 0 15 進入虛擬終端

S(config-line)# password telnet_password 接上壹條命令,設置Telnet口令

S(config-line)# login 允許Telnet登錄

S(config)# enable password|secret privilege_password 配置特權口令(加密或不加密)

S(config)# interface ethernet|fastethernet|gigabitethernet slot_#/port_# 進入接口子配置模式

S(config-if)# [no] shutdown 關閉或啟用該接口(默認啟用)

S(config)# ip address IP_address sunbet_mask 指定IP地址

S(config)# ip default-gateway router's_IP_address 指定哪臺路由器地址為默認網關

S# show running-config 查看當前的配置

S# copy running-config startup-config 將RAM中的當前配置保存到NVRAM中

S> show interface [type slot_#/port_#] 查看所有或指定接口的信息

S> show ip 顯示交換機的IP配置(只在1900系列上可用)

S> show version 查看設備信息

S# show ip interface brief 驗證IP配置

S(config-if)# speed 10|100|auto 設置接口速率

S(config-if)# duplex auto|full|half 設置接口雙工模式

S> show mac-address-table 查看CAM表

S# clear mac-address-table 清除CAM表中的動態條目

1900(config)# mac-address-table permanent MAC_address type [slot_#/]port_# 在CAM表中創建靜態條目

2950(config)# mac-address-table static MAC_address vlan VLAN_# interface type [slot_#/] port_# 在CAM表中創建靜態條目

1900(config)# mac-address-table restricted static MAC_address source_port list_of_allowed_interface 設置靜態端口安全措施

1900(config-if)# port secure 啟用粘性學習

1900(config-if)# port secure max-mac-count value 設置粘性學習特性能夠學到的地址數量(默認132,取值範圍是1-132)

1900(config)# address-violation suspend|ignore|disable 改變安全選項

1900> show mac-address-table security 驗證端口安全措施

2950(config)# switchport mode access 定義接口為主機端口而不是中繼端口

2950(config)# switchport port-security 啟用端口安全措施

2950(config)# switchport port-security maximum value 指定可與此接口相關的設備的最大數量

2950(config)# switchport port-security violation protect|restrict|shutdown 指定出現安全違規時應該發生的事

2950(config)# switchport port-security mac-address MAC_address 指定允許與此接口相關的確切的MAC地址

2950(config)# switchport port-security mac-address sticky 啟用粘性學習特性

2950(config)# show port interface type [slot_#/] port_# 驗證接口配置

2950(config-if) description name 設置接口描述信息

2950# show buffers 查看系統緩存的大小

1900# copy nvram tftp:// IP_address_of_TFTP_server/ file_name 將配置文件備份到TFTP服務器上

1900# copy tftp:// IP_address_of_TFTP_server/ file_name nvram