静态路由实验

要求:

1.除了R5的环回地址固定5.5.5.0/24,其他网段基于192.168.1.0/24进行合理划分;
2.R1-R4每个路由器存在两个环回接口,模拟PC,地址也在192.168.1.0/24网络内;
3.R1-R4不能直接编写到达5.5.5.0/24的静态路由,但依然可以访问;
4.全网可达,尽量减少每台路由器路由条目数量,避免环路;
5.R4与R5间,正常1000M链路通信,故障时自动改为100M;

R1
sysname R1
interface GigabitEthernet 0/0/0
 ip address 192.168.1.1 30
 undo shutdown

interface GigabitEthernet 0/0/1
 ip address 192.168.1.5 30
 undo shutdown
interface LoopBack 0
 ip address 192.168.1.33 28  
interface LoopBack 1
 ip address 192.168.1.49 28  
ospf 1 router-id 1.1.1.1
 area 0
  network 192.168.1.0 0.0.0.3   
  network 192.168.1.4 0.0.0.3   
  network 192.168.1.32 0.0.0.15 
  network 192.168.1.48 0.0.0.15 
R2
interface GigabitEthernet 0/0/0
 ip address 192.168.1.2 30
 undo shutdown

interface GigabitEthernet 0/0/1
 ip address 192.168.1.9 30
 undo shutdown
interface LoopBack 0
 ip address 192.168.1.65 28  
interface LoopBack 1
 ip address 192.168.1.81 28  
ospf 1 router-id 2.2.2.2
 area 0
  network 192.168.1.0 0.0.0.3
  network 192.168.1.8 0.0.0.3  
  network 192.168.1.64 0.0.0.15 
  network 192.168.1.80 0.0.0.15 
R3

system-view
sysname R3
interface GigabitEthernet 0/0/0
 ip address 192.168.1.6 30
 undo shutdown

interface GigabitEthernet 0/0/1
 ip address 192.168.1.13 30
 undo shutdown
interface LoopBack 0
 ip address 192.168.1.97 28  
interface LoopBack 1
 ip address 192.168.1.113 28 
ospf 1 router-id 3.3.3.3
 area 0
  network 192.168.1.4 0.0.0.3  
  network 192.168.1.12 0.0.0.3  
  network 192.168.1.96 0.0.0.15 
  network 192.168.1.112 0.0.0.15 
R4

system-view
sysname R4
interface GigabitEthernet 0/0/0
 ip address 192.168.1.10 30
 undo shutdown

interface GigabitEthernet 0/0/1
 ip address 192.168.1.14 30
 undo shutdown

interface GigabitEthernet 0/0/2
 ip address 192.168.1.17 30
 undo shutdown
 ospf cost 10 

interface GigabitEthernet 4/0/0
 ip address 192.168.1.21 30
 undo shutdown
 ospf cost 100 
interface LoopBack 0
 ip address 192.168.1.129 28 
interface LoopBack 1
 ip address 192.168.1.145 28 
ospf 1 router-id 4.4.4.4
 area 0
  network 192.168.1.8 0.0.0.3  
  network 192.168.1.12 0.0.0.3 
  network 192.168.1.16 0.0.0.3  
  network 192.168.1.20 0.0.0.3  
  network 192.168.1.128 0.0.0.15 
  network 192.168.1.144 0.0.0.15 
ip route-static 5.5.5.0 24 192.168.1.18 
ip route-static 5.5.5.0 24 192.168.1.22 preference 100 
ospf 1
 import-route static 
R5

system-view
sysname R5
interface GigabitEthernet 0/0/0
 ip address 192.168.1.18 30
 undo shutdown

interface GigabitEthernet 0/0/1
 ip address 192.168.1.22 30
 undo shutdown

interface LoopBack 0
 ip address 5.5.5.1 24  
ospf 1 router-id 5.5.5.5
 area 0
  network 5.5.5.0 0.0.0.255   
  network 192.168.1.16 0.0.0.3 
  network 192.168.1.20 0.0.0.3 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值