NSSA+重分发+路由汇总_redis

IOU6的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.10.1 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.13.1 255.255.255.0

No shutdown

Exit

Interface ethernet 0/2

Duplex full

Ip address 10.0.11.1 255.255.255.0

No shutdown

Exit

配置ospf

Router ospf 1

Network 10.0.10.0 0.0.0.255 area 1

Network 10.0.11.0 0.0.0.255 area 0

Router-id 2.2.2.2

Network 10.0.13.0 0.0.0.255 area 3

Area 3 nssa

Area 1 range 192.168.0.0 255.255.0.0

end

IOU7的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.11.2 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.12.1 255.255.255.0

No shutdown

Exit

配置ospf

Router ospf 1

Router-id 3.3.3.3

Network 10.0.11.0 0.0.255.255 area 0

Network 10.0.12.0 0.0.255.255 area 2

end

IOU4的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.13.2 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.25.1 255.255.255.0

No shutdown

Exit

Ospf配置

Router ospf 1

Router-id 6.6.6.6

Network 10.0.13.0 0.0.0.255 area 2

Exit

Router rip

Version 2

No auto-summary

Network 10.0.25.0

Exit

Router ospf 1

Area 3 nssa

No network 10.0.13.0 0.0.0.255 area 2

Network 10.0.13.0 0.0.0.255 area 3

Redistribute rip metric 200 subnets metric-type
1

Exit

Router rip

Redistribute ospf 1 metric 5

end

IOU5的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.25.2 255.255.255.0

No shutdown

Exit

Router rip

Version 2

No auto-summary

Network 10.0.25.0

Exit

IOU3的配置

Configure terminal

Interface ethernet 0/0

Duplex full

Ip address 10.0.10.2 255.255.255.0

No shutdown

Exit

Interface ethernet 0/1

Duplex full

Ip address 10.0.9.1 255.255.255.0

No shutdown

Exit

配置ospf‘

Router ospf 1

Router-id 1.1.1.1

Network 10.0.9.0 0.0.0.255 area 1

Network 10.0.10.0 0.0.0.255 area 1

end

IOU8的配置

Configure
terminal

Interface
ethernet 0/0

Duplex full

Ip address
10.0.12.2 255.255.255.0

No shutdown

Exit

Interface
ethernet 0/1

Duplex full

Ip address
10.0.20.1 255.255.255.0

No shutdown

Exit

Ip route
0.0.0.0 0.0.0.0 10.0.20.2

配置ospf

Router ospf
1

Router-id
4.4.4.4

Network 10.0.12.0
0.0.0.255 area 2

Redistribute
rip metric 200 subnets metric-type 1

Summary-address
172.16.0.0 255.255.252.0

Default-information
originate

Exit

Router rip

No auto-summary

Version 2

Network 10.0.20.0

Redistribute
ospf 1 metric 5

exit

IOU9的配置

Configure
terminal

Interface
ethernet 0/0

Duplex full

Ip address
10.0.20.2 255.255.255.0

No shutdown

Exit

Interface
loopback 0

Ip address
172.16.0.1 255.255.255.0

Exit

Interface
loopback 1

Ip address
172.16.1.1 255.255.255.0

Exit

Interface
loopback 2

Ip address
172.16.2.1 255.255.255.0

Exit

Interface
loopback 3

Ip address
172.16.3.1 255.255.255.0

Exit

配置rip

Router rip

Version 2

No auto-summary

Network 172.16.0.0

Network 172.16.1.0

Network 172.16.2.0

Network 172.16.3.0

Network 10.0.20.0

Exit

IOU1的配置

Configure
terminal

Vlan 10,20,30,40

Exit

Interface
ethernet 0/0

No switchport

Ip address
10.0.9.2 255.255.255.0

No shutdown

Exit

Interface
ethernet 0/1

Switchport
trunk encapsulation dot1q

Switchport
mode trunk

Exit

Interface
vlan 10

Ip address
192.168.10.1 255.255.255.0

Exit

Interface
vlan 20

Ip address
192.168.20.1 255.255.255.0

Exit

Interface
vlan 30

Ip address
192.168.30.1 255.255.255.0

Exit

Interface
vlan 40

Ip address
192.168.40.1 255.255.255.0

Exit

配置ospf

Router ospf
1

Network 10.0.9.0
0.0.0.255 area 1

Router-id
8.8.8.8

Network 192.168.10.0
0.0.0.255 area 1

Network 192.168.20.0
0.0.0.255 area 1

Network 192.168.30.0
0.0.0.255 area 1

Network 192.168.4.0
0.0.0.255 area 1

exit

IOU2的配置

Configure
terminal

Vlan 10,20,30,40

Exit

Interface
ethernet 0/0

Switchport
trunk encapsulation dot1q

Switchport
mode trunk

Exit