网络割接

OSPF区域路由器设置
R1

en
conf t
no ip domain lookup
int f0/0
ip address 192.168.1.1 255.255.255.0
no shut
exit
router Ospf 1
network 192.168.1.0 0.0.0.255 area 0
exit
--------------------------------------------------------------------------------------------------------------
R2

en
conf t
no ip domain lookup
int f0/0
ip address 192.168.1.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.2.1 255.255.255.0
no shut
exit
router Ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
exit
--------------------------------------------------------------------------------------------------------------
R3

en
conf t
no ip domain lookup
int f0/0
ip address 192.168.2.1 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.200.2 255.255.255.0
no shut
exit
router Ospf 1
network 192.168.2.0 0.0.0.255 area 0
exit
--------------------------------------------------------------------------------------------------------------
RIP区域设置
R4

en
conf t
no ip domain lookup
int f0/0
ip address 192.168.100.1 255.255.255.0
no shut
exit
router rip
network 192.168.100.0
network 192.168.200.0
exit
-------------------------------------------------------------------------------------------------------------
R5
en
conf t
no ip domain lookup
int f0/0
ip address 192.168.100.2 255.255.255.0
no shut
exit
int f0/1
ip address 192.168.200.1 255.255.255.0
no shut
exit
router rip
network 192.168.100.0
exit
-------------------------------------------------------------------------------------------------------------
最后在R3做路由重分发
en
conf t
router rip
network 192.168.2.0
redistribute ospf 1 metric 10
exit
router ospf 1
redistribute rip metric 200 subnets
exit

 

你可能感兴趣的:(职场,休闲,割接,网络割接)