- 相關(guān)推薦
CISCO路由器配置命令詳解設(shè)置試題
思科認證的考試內(nèi)容包括筆試和實驗。筆試在全球認證的考試中心進行,時間為兩個小時。下面是小編收集的CISCO路由器配置命令詳解設(shè)置試題,希望大家認真閱讀!
設(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線路實現(xiàn)多個64K專線連接.
相關(guān)命令:
任務(wù) 命令
進入controller配置模式 controller {t1 | e1} number
選擇幀類型 framing {crc4 | no-crc4}
選擇line-code類型 linecode {ami | b8zs | hdb3}
建立邏輯通道組與時隙的映射 channel-group number timeslots range1
顯示controllers接口狀態(tài) show controllers e1 [slot/port]2
注: 1. 當鏈路為T1時,channel-group編號為0-23, Timeslot范圍1-24; 當鏈路為E1時, channel-group編號為0-30, Timeslot范圍1-31.
2.使用show controllers e1觀察controller狀態(tài),以下為幀類型為crc4時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ǔ)知識
一、所處狀態(tài)各類
router>
用戶處于用戶命令狀態(tài),可以查看網(wǎng)絡(luò)和主機
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通過192.168.10.2接口
end
showiproute//可以看到前面標明S,即為靜態(tài)路由
四、配置動態(tài)路由(RIP)
命令
en
configt//全局模式
norouterip//禁止rip協(xié)議
routerip
work192.168.1.0//work參數(shù)為路由的兩個端口對應(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
可以通過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è)置一個可訪問列表
ipnatpoolgr-nat-pool192.168.10.3192.168.10.254mask255.255.255.0//設(shè)置分配池
ipnatinsideresourcelist1poolgr-nat-pooloverload
showipnattraslations
clearipnattraslation*
七、其它
shrunning-config//顯示當前運行配置
shstartup-config//顯示開機配置
shiproute//顯示路由
shnattraslations//顯示nat當前情況
【CISCO路由器配置命令詳解設(shè)置試題】相關(guān)文章:
Cisco路由器配置命令大全04-06
CISCO路由器CHAP認證配置06-17
H3C路由器配置命令07-19
華為3COM交換機配置命令詳解08-21
精簡實用Ping命令詳解10-27
思科交換機基本配置命令大全04-02
常用交換機典型配置詳解12-30
思科路由器SSH配置案例04-06
h3c交換機清除配置命令01-27