CCNA静态路由实验

要求:1.整个网络除R4的环回外,其他全部基于192.168.1.0/24划分所得。
      2.R0--R3每台设备还存在两个环回接口。
      3.R4的环回网段为1.1.1.0/24,全网可达。

拓扑图:

子网划分:
           主干链路:
                   192.168.1.32/27
                   192.168.1.64/27
                   192.168.1.96/27
                   192.168.1.128/27
                   192.168.1.160/27
                   192.168.1.192/27
         环回网段(192.168.1.0/27):
                   192.168.1.0/30
                   192.168.1.4/30
                   192.168.1.8/30
                   192.168.1.12/30
                   192.168.1.16/30
                   192.168.1.20/30
                   192.168.1.24/30
                   192.168.1.28/30

合理规划:

路由器 接口 地址
R0 f0/0 192.168.1.1/27
R0 F0/1 192.168.1.161/27
R0 loopback0 192.168.1.1/30
R0 loopback1 192.168.1.5/30
R1 f0/0 192.168.1.2/27
R1 f0/1 192.168.1.33/27
R1 loopback0 192.168.1.9/30
R1 loopback1 192.168.1.13/30
R2 f0/0 192.168.1.162/27
R2 f0/1 192.168.1.129/27
R2 loopback0 192.168.1.17/30
R2 loopback1 192.168.1.21/30
R3 f0/0 192.168.1.34/27
R3 f0/1 192.168.1.130/27
R3 f1/0 192.168.1.65/27
R3 f1/1 192.168.1.97/27
R3 loopback0 192.168.1.25/30
R3 loopback1 192.168.1.29/30
R4 f0/0 192.168.1.66/27
R4 f0/1 192.168.1.98/27
R4 loopback0 10.1.1.1/24

配置:

 1.R0
           no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 no ip address
!
interface Loopback1
 no ip address
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.1.161 255.255.255.224
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.224 FastEthernet0/0 
ip route 192.168.1.32 255.255.255.224 FastEthernet0/0 
ip route 192.168.1.128 255.255.255.224 FastEthernet0/1 
ip route 192.168.1.64 255.255.255.224 FastEthernet0/0 
ip route 192.168.1.96 255.255.255.224 FastEthernet0/0 
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
    2.R1
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 no ip address
!
interface Loopback1
 no ip address
!
interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.1.33 255.255.255.224
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.160 255.255.255.224 FastEthernet0/0 
ip route 192.168.1.64 255.255.255.224 FastEthernet0/1 
ip route 192.168.1.96 255.255.255.224 FastEthernet0/1 
ip route 192.168.1.128 255.255.255.224 FastEthernet0/1 
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
   3.R2
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.1.17 255.255.255.252
!
interface Loopback1
 ip address 192.168.1.21 255.255.255.252
!
interface FastEthernet0/0
 ip address 192.168.1.162 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.1.129 255.255.255.224
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
    4.R3
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.1.25 255.255.255.252
!
interface Loopback1
 ip address 192.168.1.29 255.255.255.252
!
interface FastEthernet0/0
 ip address 192.168.1.34 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.1.130 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.65 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet1/1
 ip address 192.168.1.97 255.255.255.224
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.224 FastEthernet0/0 
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
    5.R4
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 192.168.1.66 255.255.255.224
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.1.98 255.255.255.224
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.32 255.255.255.224 FastEthernet0/0 
ip route 192.168.1.0 255.255.255.224 FastEthernet0/0 
ip route 192.168.1.128 255.255.255.224 FastEthernet0/1 
ip route 192.168.1.160 255.255.255.224 FastEthernet0/1 
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

发布了20 篇原创文章 · 获赞 33 · 访问量 1343

猜你喜欢

转载自blog.csdn.net/qq_45331873/article/details/94342869