- 相關(guān)推薦
CISCO路由器配置命令詳解設(shè)置試題
思科認(rèn)證的考試內(nèi)容包括筆試和實(shí)驗(yàn)。筆試在全球認(rèn)證的考試中心進(jìn)行,時(shí)間為兩個(gè)小時(shí)。下面是小編收集的CISCO路由器配置命令詳解設(shè)置試題,希望大家認(rèn)真閱讀!
設(shè)置如下:
Router1:
interface Serial0
ip address 192.200.10.1 255.255.255.0
clockrate 1000000
Router2:
interface Serial0
ip address 192.200.10.2 255.255.255.0
!
3. 舉例使用E1線路實(shí)現(xiàn)多個(gè)64K專線連接.
相關(guān)命令:
任務(wù) 命令
進(jìn)入controller配置模式 controller {t1 | e1} number
選擇幀類型 framing {crc4 | no-crc4}
選擇line-code類型 linecode {ami | b8zs | hdb3}
建立邏輯通道組與時(shí)隙的映射 channel-group number timeslots range1
顯示controllers接口狀態(tài) show controllers e1 [slot/port]2
注: 1. 當(dāng)鏈路為T(mén)1時(shí),channel-group編號(hào)為0-23, Timeslot范圍1-24; 當(dāng)鏈路為E1時(shí), channel-group編號(hào)為0-30, Timeslot范圍1-31.
2.使用show controllers e1觀察controller狀態(tài),以下為幀類型為crc4時(shí)controllers正常的狀態(tài).
Router# show controllers e1
e1 0/0 is up.
Applique type is Channelized E1 - unbalanced
Framing is CRC4, Line Code is HDB3 No alarms detected.
Data in current interval (725 seconds elapsed):
0 Line Code Violations, 0 Path Code Violations
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
Total Data (last 24 hours) 0 Line Code Violations, 0 Path Code Violations,
0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins,
0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
以下例子為E1連接3條64K專線, 幀類型為NO-CRC4,非平衡鏈路,路由器具體設(shè)置如下:
shanxi#wri t
Building configuration...
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname shanxi
!
enable secret 5 $1$XN08$Ttr8nfLoP9.2RgZhcBzkk/
enable password shanxi
!
!
ip subnet-zero
!
controller E1 0
framing NO-CRC4
channel-group 0 timeslots 1
channel-group 1 timeslots 2
channel-group 2 timeslots 3
!
interface Ethernet0
ip address 133.118.40.1 255.255.0.0
media-type 10BaseT
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0:0
ip address 202.119.96.1 255.255.255.252
no ip mroute-cache
!
interface Serial0:1
ip address 202.119.96.5 255.255.255.252
no ip mroute-cache
!
interface Serial0:2
ip address 202.119.96.9 255.255.255.252
no ip mroute-cache
!
no ip classless
ip route 133.210.40.0 255.255.255.0 Serial0:0
ip route 133.210.41.0 255.255.255.0 Serial0:1
ip route 133.210.42.0 255.255.255.0 Serial0:2
!
line con 0
line aux 0
line vty 0 4
password shanxi
login
!
end
Cisco路由配置基礎(chǔ)知識(shí)
一、所處狀態(tài)各類
router>
用戶處于用戶命令狀態(tài),可以查看網(wǎng)絡(luò)和主機(jī)
router#
用戶處于特權(quán)模式,可以查看狀態(tài),還可以看到和更改路由器的設(shè)置內(nèi)容
router(config)#
全局配置狀態(tài),可以設(shè)置路由的全局參數(shù)
router(config-if)#;router(config-line)#;router(config-router)#.....
處于局部配置狀態(tài),可以設(shè)置路由的局部參數(shù)
二、配置端口ip
命令
en
configt//全局模式
interfacef0/0
ipaddress192.168.1.1255.255.255.0//設(shè)置端口ip
noshu//生效
exit
interfacef0/1
ipaddress192.168.10.1255.255.255.0
noshu
exit
end
disable
三、配置靜態(tài)路由
命令
en
configt//全局模式
iproute192.168.100.0255.255.255.0192.168.10.2//到192.168.100.0/24通過(guò)192.168.10.2接口
end
showiproute//可以看到前面標(biāo)明S,即為靜態(tài)路由
四、配置動(dòng)態(tài)路由(RIP)
命令
en
configt//全局模式
norouterip//禁止rip協(xié)議
routerip
work192.168.1.0//work參數(shù)為路由的兩個(gè)端口對(duì)應(yīng)的網(wǎng)絡(luò)地址
work192.168.10.0
exit
end
disable
五、配置DHCP
命令
en
configt//全局模式
ipdhcpexcluded-address192.168.1.1//需要排除的ip地址
ipdhcppoolgr-dhcp-pool//ip地址池名
default-server192.168.1.1//指定dhcp服務(wù)器
work192.168.1.0255.255.255.0//配置網(wǎng)絡(luò)
dns-server61.177.7.1//配置dns服務(wù)器
exit
end
disable
可以通過(guò)iphelper-address指定DHCP中繼代理
interfaceFastEther0/1
ipaddress192.168.1.1255.255.255.0
iphelper-address192.168.10.2配置DHCP中繼代理,DHCP
六、配置NAT
命令
en
configt//全局模式
interfacef0/0
ipaddress192.168.1.1255.255.255.0
ipnatinside//內(nèi)部端口
noshu
exit
interfacef0/1
ipaddress192.168.10.1255.255.255.0
ipnatoutside//外部端口
noshu
exit
access-list1permitany//設(shè)置一個(gè)可訪問(wèn)列表
ipnatpoolgr-nat-pool192.168.10.3192.168.10.254mask255.255.255.0//設(shè)置分配池
ipnatinsideresourcelist1poolgr-nat-pooloverload
showipnattraslations
clearipnattraslation*
七、其它
shrunning-config//顯示當(dāng)前運(yùn)行配置
shstartup-config//顯示開(kāi)機(jī)配置
shiproute//顯示路由
shnattraslations//顯示nat當(dāng)前情況
【CISCO路由器配置命令詳解設(shè)置試題】相關(guān)文章:
Cisco路由器配置命令大全04-06
H3C路由器配置命令07-19
華為3COM交換機(jī)配置命令詳解08-21
思科交換機(jī)基本配置命令大全04-02
常用交換機(jī)典型配置詳解12-30
思科路由器SSH配置案例04-06
h3c交換機(jī)清除配置命令01-27