Cisco路由配置基礎(chǔ)
剛剛接觸cisco路由配置,下面是學(xué)習(xí)的筆記,感覺(jué)命令還是多敲才能熟悉
一、 所處狀態(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
config t?? //全局模式
interface f0/0
ip address 192.168.1.1 255.255.255.0 //設(shè)置端口ip
no shu?? //生效
exit
interface f0/1
ip address 192.168.10.1 255.255.255.0?
no shu
exit
end
disable
三、配置靜態(tài)路由
命令
en
config t?? //全局模式
ip route 192.168.100.0 255.255.255.0 192.168.10.2??? //到192.168.100.0/24通過(guò)192.168.10.2接口
end
show ip route //可以看到前面標(biāo)明S,即為靜態(tài)路由
四、配置動(dòng)態(tài)路由(RIP)
命令
en
config t?? //全局模式
no route rip????? //禁止rip協(xié)議
route rip
network 192.168.1.0????? //network參數(shù)為路由的兩個(gè)端口對(duì)應(yīng)的網(wǎng)絡(luò)地址
network 192.168.10.0
exit
end
disable
五、配置DHCP
命令
en
config t?? //全局模式
ip dhcp excluded-address 192.168.1.1?? //需要排除的ip地址
ip dhcp pool gr-dhcp-pool?? //ip地址池名
default-server?? 192.168.1.1? //指定dhcp服務(wù)器
network? 192.168.1.0 255.255.255.0?? //配置網(wǎng)絡(luò)
dns-server 61.177.7.1?? //配置dns服務(wù)器
exit
end
disable
可以通過(guò) ip helper-address指定 DHCP中繼代理
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip helper-address 192.168.10.2???????????????? \\配置DHCP中繼代理,DHCP
六、配置NAT
????????
命令
en
config t?? //全局模式
interface f0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside?? //內(nèi)部端口
no shu
exit
interface f0/1
ip address 192.168.10.1 255.255.255.0
ip nat outside?? //外部端口
no shu
exit
access-list 1 permit any?? //設(shè)置一個(gè)可訪問(wèn)列表
ip nat pool gr-nat-pool? 192.168.10.3 192.168.10.254 netmask 255.255.255.0? //設(shè)置分配池
ip nat inside resource list 1 pool gr-nat-pool overload
show ip nat traslations
clear ip nat traslation *
七、其它
sh running-config??? //顯示當(dāng)前運(yùn)行配置
sh startup-config???? //顯示開(kāi)機(jī)配置
sh ip route???????????? //顯示路由
sh nat traslations??? //顯示nat當(dāng)前情況文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-456808.html
是不是看起來(lái)有些意猶未盡呢,想詳細(xì)了解的話,小編給大家推薦本書(shū),給大家一個(gè)領(lǐng)券購(gòu)買(mǎi)的鏈接,點(diǎn)擊進(jìn)入Cisco路由器配置與管理完全手冊(cè)文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-456808.html
到了這里,關(guān)于Cisco路由器配置入門(mén)知識(shí)(基礎(chǔ))的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!