Cisco IOS 基本命令集第2/3頁
三、 IP 路由
1. 靜態(tài)路由
ip routing
ip route 目標(biāo)網(wǎng)絡(luò)號 掩碼 端口號 [permanent]
2. 缺省路由
ip default-network 網(wǎng)絡(luò)號
3. 動態(tài)路由
1) RIP配置
Router rip
Network 網(wǎng)絡(luò)號
Show ip route
Show ip protocol
Debug ip
2) OSPF 配置
Router ospf 進程號
Redistribute 其它路由協(xié)議
Network 端口網(wǎng)絡(luò) 反掩碼 area 區(qū)域號
Area 區(qū)域號 range 網(wǎng)絡(luò)號 掩碼
Area 區(qū)域號 default-cost 花銷值
Ip ospf priority number
Ip ospf cost 花銷值
Show ip ospf database
3) BGP 配置
Router bgp 自治域號
Redistribute 其它路由協(xié)議
Network 網(wǎng)絡(luò)號 /* 自治域內(nèi) */
Aggregate-address 網(wǎng)絡(luò)號 掩碼 summary-only 匯總網(wǎng)絡(luò)
Neighbor 相鄰網(wǎng)絡(luò)號 remote-as 自治域號 /* 自治域間的網(wǎng)絡(luò) */
四、 流量控制
1) 被動端口
passive interface 端口號
2) 缺省路由
ip default 網(wǎng)絡(luò)號/端口網(wǎng)絡(luò)
3) 靜態(tài)路由
ip route 目標(biāo)網(wǎng)絡(luò)號 掩碼 端口號
4)ACL過濾表
(全局上) access-list 訪問號1 {permit|deny} 反掩碼號 [ established]
access-list 訪問號2 {permit|deny} IP/TCP協(xié)議 源網(wǎng)絡(luò) 目的網(wǎng)絡(luò)
操作符 參數(shù)
(端口上)access-group 訪問號 in|out
distribute-list 訪問號 in|out 端口號
4) Null 0 interface
Ip route address mask null 0
相關(guān)文章
Cisco網(wǎng)絡(luò)設(shè)備訪問安全基礎(chǔ)
Cisco網(wǎng)絡(luò)設(shè)備訪問安全基礎(chǔ)...2007-09-09