HCIE第七天总结
程序员文章站
2022-04-15 23:02:30
一、实验要求:使用OSPF协议(划分区域,开销值)实现办公与业务路由分离实验拓朴图:实验代码如下:R1:R1interface Ethernet0/0/0.1dot1q termination vid 1ip address 10.1.12.1 255.255.255.0ospf cost 1arp broadcast enable#interface Ethernet0/0/0.2dot1q termination vid 2ip address 10.2.12.1 255....
一、OSPF分流实验
实验要求:
使用OSPF协议(划分区域,开销值)实现办公与业务路由分离
实验拓朴图:
实验代码如下:
R1:
R1
interface Ethernet0/0/0.1
dot1q termination vid 1
ip address 10.1.12.1 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface Ethernet0/0/0.2
dot1q termination vid 2
ip address 10.2.12.1 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface Ethernet0/0/1
ip address 10.1.13.1 255.255.255.0
ospf cost 1
#
interface GigabitEthernet0/0/0.1
dot1q termination vid 1
ip address 10.1.14.1 255.255.255.0
ospf cost 3
arp broadcast enable
#
interface GigabitEthernet0/0/0.2
dot1q termination vid 2
ip address 10.2.14.1 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface GigabitEthernet0/0/1
ip address 10.100.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 10.200.1.1 255.255.255.0
#
ospf 1 router-id 1.1.1.1
area 0.0.0.1
network 10.100.0.0 0.0.255.255
network 10.1.12.0 0.0.0.255
network 10.1.14.0 0.0.0.255
network 10.1.13.0 0.0.0.255
area 0.0.0.2
network 10.200.0.0 0.0.255.255
network 10.2.12.0 0.0.0.255
network 10.2.14.0 0.0.0.255
R2:
R2
interface Ethernet0/0/0.1
dot1q termination vid 1
ip address 10.1.12.2 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface Ethernet0/0/0.2
dot1q termination vid 2
ip address 10.2.12.2 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface Ethernet0/0/1
ip address 10.1.24.1 255.255.255.0
ospf cost 1
#
interface GigabitEthernet0/0/0
ip address 10.100.2.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.1
dot1q termination vid 1
ip address 10.1.23.1 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface GigabitEthernet0/0/1.2
dot1q termination vid 2
ip address 10.2.23.1 255.255.255.0
ospf cost 3
arp broadcast enable
#
interface GigabitEthernet0/0/2
ip address 10.200.2.1 255.255.255.0
#
ospf 1 router-id 2.2.2.2
area 0.0.0.1
network 10.100.0.0 0.0.255.255
network 10.1.12.0 0.0.0.255
network 10.1.23.0 0.0.0.255
area 0.0.0.2
network 10.200.0.0 0.0.255.255
network 10.2.12.0 0.0.0.255
network 10.2.23.0 0.0.0.255
network 10.2.24.0 0.0.0.255
network 10.1.24.0 0.0.0.255
R3:
R3
interface Ethernet0/0/0
ip address 10.1.34.1 255.255.255.0
ospf cost 10
#
interface Ethernet0/0/1
ip address 10.1.13.2 255.255.255.0
#
interface GigabitEthernet0/0/1.1
dot1q termination vid 1
ip address 10.1.23.2 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface GigabitEthernet0/0/1.2
dot1q termination vid 2
ip address 10.2.23.2 255.255.255.0
ospf cost 3
arp broadcast enable
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/2.1
dot1q termination vid 1
ip address 10.1.35.1 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface GigabitEthernet0/0/2.2
dot1q termination vid 2
ip address 10.2.35.1 255.255.255.0
ospf cost 3
arp broadcast enable
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 10.1.34.0 0.0.0.255
area 0.0.0.1
network 10.1.23.0 0.0.0.255
network 10.1.13.0 0.0.0.255
area 0.0.0.2
network 10.2.23.0 0.0.0.255
area 0.0.0.3
network 10.1.35.0 0.0.0.255
area 0.0.0.4
network 10.2.35.0 0.0.0.255
R4:
R4
interface Ethernet0/0/0
ip address 10.1.34.2 255.255.255.0
ospf cost 10
#
interface Ethernet0/0/1
ip address 10.1.24.2 255.255.255.0
ospf cost 1
#
interface GigabitEthernet0/0/0.1
dot1q termination vid 1
ip address 10.1.14.2 255.255.255.0
ospf cost 3
arp broadcast enable
#
interface GigabitEthernet0/0/0.2
dot1q termination vid 2
ip address 10.2.14.2 255.255.255.0
arp broadcast enable
#
interface GigabitEthernet0/0/1.1
dot1q termination vid 1
ip address 10.1.45.1 255.255.255.0
ospf cost 3
arp broadcast enable
#
interface GigabitEthernet0/0/1.2
dot1q termination vid 2
ip address 10.2.45.1 255.255.255.0
ospf cost 1
arp broadcast enable
#
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 10.1.34.0 0.0.0.255
area 0.0.0.1
network 10.1.14.0 0.0.0.255
area 0.0.0.2
filter ip-prefix 100 import
network 10.2.14.0 0.0.0.255
network 10.1.24.0 0.0.0.255
area 0.0.0.3
network 10.1.45.0 0.0.0.255
area 0.0.0.4
filter ip-prefix 100 import
network 10.2.45.0 0.0.0.255
#
ip ip-prefix 100 index 10 deny 10.100.0.0 16 greater-equal 17 less-equal 32
ip ip-prefix 100 index 20 permit 0.0.0.0 0 less-equal 32
R5:
R5
interface Ethernet0/0/0
ip address 10.100.3.1 255.255.255.0
#
interface Ethernet0/0/1
ip address 10.200.3.1 255.255.255.0
#
interface GigabitEthernet0/0/1.1
dot1q termination vid 1
ip address 10.1.45.2 255.255.255.0
ospf cost 3
arp broadcast enable
#
interface GigabitEthernet0/0/1.2
dot1q termination vid 2
ip address 10.2.45.2 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/2.1
dot1q termination vid 1
ip address 10.1.35.2 255.255.255.0
ospf cost 1
arp broadcast enable
#
interface GigabitEthernet0/0/2.2
dot1q termination vid 2
ip address 10.2.35.2 255.255.255.0
ospf cost 3
arp broadcast enable
#
ospf 1 router-id 5.5.5.5
area 0.0.0.3
network 10.1.35.0 0.0.0.255
network 10.1.45.0 0.0.0.255
network 10.100.0.0 0.0.255.255
area 0.0.0.4
network 10.2.35.0 0.0.0.255
network 10.2.45.0 0.0.0.255
network 10.200.0.0 0.0.255.255
二、
1.
3.
4.
5.
A=(1-(1-f1)(1-f1))(1-(1-f2)(1-f2))
串联公式=f1f2
并联公式=1-(1-f)(1-f)
本文地址:https://blog.csdn.net/yangcx01/article/details/107434183
下一篇: C++基础——对象的内存布局