This section provides an example for configure different RIP processes of routers to exchange routes.
On the network shown in Figure 1, two RIP processes, RIP 100 and RIP 200, run on FW_B. FW_B exchanges routing information with FW_A through RIP 100 and exchanges routing information with FW_C through RIP 200.
It is required that the two RIP processes of FW_B import RIP routes from each other. The cost of the routes imported from RIP 200 defaults to 3.
The configuration roadmap is as follows:
To complete the configuration, you need the following data:
Configure interface IP addresses and security zones.
Interface Name |
GE0/0/1 |
GE0/0/2 |
GE0/0/3 |
|---|---|---|---|
Zone |
trust |
trust |
trust |
IP Address |
192.168.2.2/24 |
192.168.3.1/24 |
192.168.4.1/24 |
Configure a security policy.
Name |
policy_sec_1 |
|---|---|
Source Zone |
Trust and Local |
Destination Zone |
Local and Trust |
Action |
permit |
Configure basic RIP functions.
Process ID |
200 |
|---|---|
Network Segment |
192.168.2.0 192.168.3.0 192.168.4.0 |
# Check the routing table of FW_A after route import.
[FW_A] display ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 9 Routes : 9 Destination/Mask Proto Pre Cost Flags NextHop Interface 192.168.0.0/24 Direct 0 0 D 192.168.0.1 GigabitEthernet0/0/1 192.168.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 192.168.1.0/24 Direct 0 0 D 192.168.1.1 GigabitEthernet0/0/1 192.168.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 192.168.2.0/24 RIP 100 4 D 192.168.1.2 GigabitEthernet0/0/1 192.168.3.0/24 RIP 100 4 D 192.168.1.2 GigabitEthernet0/0/1 192.168.4.0/24 RIP 100 4 D 192.168.1.2 GigabitEthernet0/0/1 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Configuration script of FW_A
# sysname FW_A # interface GigabitEthernet0/0/1 undo shutdown ip address 192.168.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 192.168.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 add interface GigabitEthernet0/0/2 # security-policy rule name policy_sec_1 source-zone trust source-zone local destination-zone local destination-zone trust action permit # rip 100 network 192.168.0.0 network 192.168.1.0 # return
Configuration script of FW_B
# sysname FW_B # acl number 2000 rule 5 deny source 192.168.4.0 0.0.0.255 rule 10 permit # interface GigabitEthernet0/0/1 undo shutdown ip address 192.168.1.2 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 192.168.2.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 add interface GigabitEthernet0/0/2 # security-policy rule name policy_sec_1 source-zone trust source-zone local destination-zone local destination-zone trust action permit # rip 100 default-cost 3 network 192.168.1.0 filter-policy 2000 export import-route rip 200 # rip 200 network 192.168.2.0 import-route rip 100 # return
Configuration script of FW_C
# sysname FW_C # interface GigabitEthernet0/0/1 undo shutdown ip address 192.168.2.2 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 192.168.3.1 255.255.255.0 # interface GigabitEthernet0/0/3 undo shutdown ip address 192.168.4.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 add interface GigabitEthernet0/0/2 add interface GigabitEthernet0/0/3 # security-policy rule name policy_sec_1 source-zone trust source-zone local destination-zone local destination-zone trust action permit # rip 100 network 192.168.2.0 network 192.168.3.0 network 192.168.4.0 # return