DES-7200 Configuration Guide Chapter 1 Protocol-Independent
Configuration
1-20
When the routing protocols redistribute routes among them, the simple route
filtering can be controlled by the distribution list. However, different attributes must
be set for different routes, and this is not possible for the distribution list, so the
route map must be configured for control. The route map provides more control
functions than the distribution list, and it is more complex to configure. Therefore,
do not use the route map if possible for simple configuration of the router. The
following example does not use the route map.
Router A configuration:
# Configure the network interface
DES-7200(config)# interface gigabitEthernet 0/0
DES-7200(config-if)# ip address 192.168.10.1 255.255.255.0
DES-7200(config)# interface loopback 1
DES-7200(config-if)# ip address 192.168.100.1 255.255.255.0
DES-7200(config-if)# no ip directed-broadcast
DES-7200(config)# interface gigabitEthernet 0/1
DES-7200(config-if)# ip address 192.168.12.55 255.255.255.0
# Configure the OSPF
DES-7200(config)# router ospf 12
DES-7200(config-router)# network 192.168.10.0 0.0.0.255 area 0
DES-7200(config-router)# network 192.168.12.0 0.0.0.255 area 0
DES-7200(config-router)# network 192.168.100.0 0.0.0.255 area 0
Router B configuration:
# Configure the network interface
DES-7200(config)# interface gigabitEthernet 0/0
DES-7200(config-if)# ip address 192.168.12.5 255.255.255.0
DES-7200(config)# interface Serial 1/0
DES-7200(config-if)# ip address 192.168.23.2 255.255.255.0
#Configure the OSPF and set the redistribution route type
DES-7200(config)# router ospf 12
DES-7200(config-router)# redistribute rip metric 100 metric-type 1 subnets
DES-7200(config-router)# network 192.168.12.0 0.0.0.255 area 0
#Configure the RIP and use the distribution list to filter the redistributed routes
DES-7200(config)# router rip
DES-7200(config-router)# redistribute ospf 12 metric 2
DES-7200(config-router)# network 192.168.23.0
DES-7200(config-router)# distribute-list 10 out ospf
DES-7200(config-router)# no auto-summary