重慶分公司,新征程啟航
為企業(yè)提供網(wǎng)站建設(shè)、域名注冊(cè)、服務(wù)器等服務(wù)
為企業(yè)提供網(wǎng)站建設(shè)、域名注冊(cè)、服務(wù)器等服務(wù)
特權(quán)模式:enable (en)
10余年的西和網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。全網(wǎng)整合營(yíng)銷推廣的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整西和建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)建站從事“西和網(wǎng)站設(shè)計(jì)”,“西和網(wǎng)站推廣”以來(lái),每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。
全局配置模式:config terminal (conf t)
接口模式:interface fastethernet 模塊號(hào)/端口號(hào) (int f0/1)
同時(shí)進(jìn)入多個(gè)接口 int range f0/0 – 4
終止域名解析:ctrl+shift+6
退出到特權(quán)模式:crtl+z end
退出到上一層:exit
ctrl+A 光標(biāo)到命令行開(kāi)始位置
ctrl+E 光標(biāo)到命令行結(jié)束位置
特權(quán)模式下命令
show version 顯示系統(tǒng)ios名稱及版本信息
查看當(dāng)前配置信息: show running-config (sh run)
查看以保存的配置信息: show startup-config (shstar)
保存當(dāng)前配置信息:copy running-config startup-config (copy run star ) = write
刪除已保存的配置信息:erase nvram erasestartup-config
tracert 192.168.1.1 查看到192.168.1.1的過(guò)程
重啟:reload
查看vlan:show vlan brief
全局模式下命令:
host xx 修改主機(jī)名為xx
還原接口為默認(rèn)配置:default interface f0/1
配置雙工模式:deplex 【full|half|auto】
配置接口速率:speed 【10|100|100】
永不超時(shí):
line con 0
exec-timeout 0 0
信息同步:
line con 0
logging synchronous (logg syn)
禁用DNS查詢:no ip domain-lookup
交換機(jī):
查看mac地址表:show mac-address-table
查看f0/1信息(包括雙工模式和速率):show int f0/1
在三層交換機(jī)上啟用路由功能:ip routing
查看接口模式狀態(tài): show interface interface-id switchport
創(chuàng)建vlan :
1.vlan database
vlan vlan-id [name vlan-name]
exit
2.conf t
vlan vlan-id
name vlan-name
exit
將端口f0/1分配到vlan 2:
conf t
int f0/1
switchport mode access
switchport access vlan 2
exit
給交換機(jī)虛接口配置ip:
int vlan 1
ip add 192.168.1.1 255.255.255.0
no sh
配置默認(rèn)網(wǎng)關(guān): ip default-gateway 192.168.1.254
配置交換機(jī)console口密碼:
全局模式:
line console 0
password cisco
login
配置特權(quán)模式密碼:
全局模式下:
enable password cisco (明文) / enablesecret cisco(密文)
加密明文密碼:service password-encryption
配置vty密碼;
line vty 0 4
password cisco
login
設(shè)置好vty密碼和enable密碼,可以通過(guò)telnet遠(yuǎn)程管理交換機(jī)。遠(yuǎn)程管理不同網(wǎng)段的交換機(jī)時(shí),需要給交換機(jī)配置默認(rèn)網(wǎng)關(guān)
trunk配置:
int f0/1
switchport trunk encapsulation dot1q
switchport mode trunk
禁止trunk傳送某個(gè)vlan的數(shù)據(jù),刪除這個(gè)vlan: switchport trunk allowed vlan remove vlan-id
允許trunk傳送某個(gè)vlan的數(shù)據(jù),添加這個(gè)vlan: switchport trunk allowed vlan add vlan-id
配置以太網(wǎng)通道:
interface range f0/1 – 2
channel-group 1 mode on
查看以太網(wǎng)通道配置: show etherchannel 1 summary
VTP配置:
創(chuàng)建vtp域:Switch(config)# vtp domain domain-name
配置交換機(jī)的vtp模式:Switch(config)# vtp mode {server|client|transparent}
配置vtp口令:Switch(config)# vtp password password
配置vtp修剪: Switch(config)# vtp pruning
配置vtp版本:Switch(config)# vtp version 2 (默認(rèn)運(yùn)行版本1)
查看vtp配置信息:Switch# show vtp status
查看vtp口令:Switch# show vtp password
交換機(jī)密碼恢復(fù):
1.開(kāi)機(jī)按mode鍵
2.初始化flash : flash_init
3.將config.text修改為config.old
rename flash:config.text flash:config.old
4.重啟:boot
5.把配置文件名改回
rename flash:config.old flash:config.text
6.手動(dòng)加載配置文件
copy flash:config.text system:running-config
7.查看配置并修改
8.保存:wr
路由器:
查看arp緩存表:show arp
清除arp緩存表:clear arp-cache
查看所有接口ip: sh ip int brief
查看路由表:show ip route (c-直連路由,s-靜態(tài)路由,s*-默認(rèn)路由)
配置靜態(tài)路由: ip route 目的網(wǎng)段子網(wǎng)掩碼 address(到達(dá)目的網(wǎng)絡(luò)經(jīng)過(guò)的下一跳路由器的接口地址)
配置默認(rèn)路由: ip route 0.0.0.0 0.0.0.0 address(下一跳地址)
no ip routing : 把路由器路由功能關(guān)了,模擬交換機(jī)
配置ip:
int f0/0
ip add 10.0.0.10 255.255.255.0
no shut down
配置單臂路由:需要配置子接口的封裝結(jié)構(gòu),vlan和ip
int f0/0.1
encapsulatation dot1q 10(vlan-id)
ip add 10.0.0.1 255.255.255.0
int f0/0.2
…
配置DHCP:
定義ip地址池:Router(config)# ip dhcp pool pool-name
動(dòng)態(tài)分配ip地址段: Router(dhcp-config)# network 網(wǎng)段掩碼
設(shè)定網(wǎng)關(guān)地址:Router(dhcp-config)# default-router 網(wǎng)關(guān)地址
為客戶端配置DNS地址:Router(dhcp-config)# dns-server dns-ip
設(shè)定地址租期:Router(dhcp-config)# lease days
預(yù)留靜態(tài)分配的ip地址: Router(dhcp-config)# ip dhcp excluded-address low-address[high-address]
路由器密碼恢復(fù):
1.中斷開(kāi)機(jī):ctrl+break
2.修改寄存器的值:confreg0x2142
3.重啟:reset
4.手動(dòng)加載配置文件:copy startup-confg running-config
5.查看配置并修改
6.恢復(fù)寄存器的值:config-register 0x2102
7.保存配置:copy run star