路由器设置
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Loopback1
ip address 200.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 12.1.1.2 255.255.255.0
duplex full
!
interface GigabitEthernet1/0
ip address 23.1.1.1 255.255.255.0
negotiation auto
!
路由配置:
router ospf 100
redistribute rip metric 100 metric-type 1 subnets
network 2.2.2.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
!
router rip
version 2
redistribute connected
redistribute ospf 100 metric 5
network 12.0.0.0
no auto-summary
!