Experimental environment: two clients and two routers.
The first step is to build the following topology diagram.
The second step is to configure the following IP address on pc1.
The third step is to configure the following IP address on pc2.
Step 4: Configure the following commands on AR1.
int g/0/0/0
ip address 192.168.1.254 24
quit
int g0/0/1
ip address 1.1.1.1 24
quit
Step 5: Configure the following commands on AR2.
int g/0/0/1
ip address 192.168.2.254 24
quit
int g0/0/0
ip address 1.1.1.2 24
quit
Step 6: Configure static routing and configure the following command on AR1 (system mode).
ip route-static 192.168.2.0 24 1.1.1.2
Step 7: Configure static routing and configure the following command on AR2 (system mode).
ip route-static 192.168.1.0 24 1.1.1.1
Step 8, view the routing table (display ip routing-table
)
Step 9, test (ping each other)
(Notes) The traffic between the two communicating parties comes and goes.