路由器配置的重要性不言而喻,这里我们主要针对Cisco路由器,详细的分析了Cisco路由器配置语句,在这里拿出来和大家分享一下,希望对大家有用。
Cisco路由器配置之CISCO路由器简介
- CISCO IOS操作环境。
- ROM monitor > Failure of password recovery
- BootROM router(boot) > Flash image upgrade
- Cisco IOS router > Normal operation
- Command Modes命令模式。
- User EXEC Router> user access
- Privileged EXEC Router# System adminstration
- Configuration mode Router(config)# Modify configuration
- Setup Prompted dialog Create the initial
- configuration
Cisco路由器配置之配置ip路由协议 (RIP ,OSPF ,BGP ,STATICS)
- 静态路由
- IP route 目的网络地址 子网掩码 端口号
- 例:在RA1上配RA2的路由
- IP route 10.0.210.4 255.255.255.252 E0
- RIP2设置
- router rip ;enable rip
- version 2 ;选择版本2
- network 10.86.16.0 ;相关子网地址
- network 10.85.1.4
- network 10.85.1.8
- OSPF设置
- router ospf 200 ;enable ospf
- redistribute bgp 200 subnets
- network 10.0.210.4 0.0.0.3 area 1
- network 10.185.1.16 0.0.0.3 area 1
- BGP设置
- router bgp 100 ;enable bgp 设置自治域号
- network 10.0.210.4 mask 255.255.255.252 ;相关子网地址及子网掩码
- network 10.80.0.0 mask 255.240.0.0 ; 这些地址由bgp发到邻居路由器
- redistribute rip
- neighbor 10.0.210.6 remote-as 200 ;设置远程相连自治域边界路由器端口
- router bgp 200
- network 10.0.210.4 mask 255.255.255.252
- network 10.0.32.0 mask 255.255.240.0
- network 10.185.1.16 mask 255.255.255.252
- network 10.0.1.0 mask 255.255.255.252
- neighbor 10.0.210.5 remote-as 100