tft每日頭條

 > 生活

 > 思科查看曆史配置命令

思科查看曆史配置命令

生活 更新时间:2024-07-07 07:42:08

思科查看曆史配置命令?用戶模式----特權模式,使用命令"enable"特權模式----全局配置模式,使用命令"configt"全局配置模式----接口模式,使用命令"interface 接口類型 接口号"全局配置模式----線控模式,使用命令"line 接口類型 接口号",我來為大家科普一下關于思科查看曆史配置命令?以下内容希望對你有幫助!

思科查看曆史配置命令(簡單解說思科命令大全)1

思科查看曆史配置命令

1. switch配置命令(1)模式轉換命令

用戶模式----特權模式,使用命令"enable"特權模式----全局配置模式,使用命令"configt"全局配置模式----接口模式,使用命令"interface 接口類型 接口号"全局配置模式----線控模式,使用命令"line 接口類型 接口号"

(2)配置命令

show running config 顯示所有的配置show versin 顯示版本号和寄存器值shut down 關閉接口no shutdown 打開接口ip add ip地址配置IP地址secondary IP地址為接口配置第二個IP地址show interface 接口類型 接口号查看接口管理性show controllers interface 查看接口是否有DCE電纜show history 查看曆史記錄show terminal 查看終端記錄大小hostname 主機名配置路由器或交換機的标識

2. 路由器配置命令

ip route 非直連網段 子網掩碼 下一跳地址配置靜态/默認路由show ip route 查看路由表show protocols 顯示出所有的被動路由協議和接口上哪些協議被設置show ip protocols 顯示了被配置在路由器上的路由選擇協議,同時給出了在路由選擇協議中使用的定時器等信息router rip 激活RIP協議network 直連網段發布直連網段interface lookback 0 激活邏輯接口passive-interface 接口類型 接口号配置接口為被動模式debug ip 協議動态查看路由更新信息undebug all 關閉所有DEBUG信息

3. 三層交換機配置命令配置一組二層端口

configure terminal 進入配置狀态nterface range {port-range} 進入組配置狀态

配置三層端口

configureterminal 進入配置狀态interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} |{port-channel port-channel-number} 進入端口配置狀态no switchport 把物理端口變成三層口ip address ip_address subnet_mask 配置IP地址和掩碼no shutdown 激活端口

配置VLAN

configure terminal 進入配置狀态vlan vlan-id 輸入一個VLAN号, 然後進入vlan配态,可以輸入一個新的VLAN号或舊的來進行修改。name vlan-name 可選)輸入一個VLAN名,如果沒有配置VLAN名,缺省的名字是VLAN号前面用0填滿的4位數,如VLAN0004是VLAN4的缺省名字mtu mtu-size (可選) 改變MTU大小

将端口分配給一個VLAN

configure terminal 進入配置狀态interface interface-id 進入要分配的端口switchport mode access 定義二層口switchport access vlan vlan-id 把端口分配給某一VLAN

配置VLAN trunk

configure terminal 進入配置狀态interface interface-Id 進入端口配置狀态switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝ISL 或 802.1Q 或自動協商switchport mode {dynamic {auto | desirable} | trunk} 配置二層trunk模式。dynamic auto—自動協商是否成為trunkdynamic desirable—把端口設置為trunk如果對方端口是trunk, desirable, 配置Native VLAN(802.1q) 或自動模式,trunk—設置端口為強制的trunk方式,而不理會對方端口是否為trunkswitchport access vlan vlan-id 可選) 指定一個缺省VLAN, 如果此端口不再是trunkswitchport trunk native vlan vlan-id 指定802.1Q native VLAN号

定義TRUNK允許的VLAN

configure terminal子進入配置狀态interface interface-id 進入端口配置switchport mode trunk 配置二層口為trunkswitchport trunk allowed vlan {add | all | except | remove} vlan-list可選) 配置trunk允許的VLAN.使用add, all, except, remove關健字no switchport trunk allowed vlan 允許所有VLAN通過

配置NativeVLAN(802.1q)

configure terminal 進入配置狀态interface interface-id 進入配置成802.1qtrunk的端口switchport trunk native vlan vlan-Id 配置native VLAN号no switchport trunk native vlan 端口配置命令回到缺省的狀态

配置基于端口權值的負載均衡

configure terminal 進入Switch 1配置狀态vtp domain domain-name 配置VTP域vtp mode server 将Switch 1配置成VTP server.show vtp status 驗證VTP的配置show vlan 驗證VLANconfigure terminal 進入配置狀态interface fastethernet 0/1 進入F0/1端口switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝switchport mode trunk 配置成trunkshow interfaces fastethernet0/1 switchport 驗證VLAN配置按以上步驟對想要負載均衡的接口進行配置

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关生活资讯推荐

热门生活资讯推荐

网友关注

Copyright 2023-2024 - www.tftnews.com All Rights Reserved