Experimental topology diagram
(The initial state is no China Unicom)
name |
interface |
IPLand |
gateway |
DA |
F0/0 |
172.1.1.1/24 |
|
F0/1 |
192.168.1.1/24 |
||
RB |
F0/0 |
172.2.2.1/24 |
|
F0/1 |
192.168.1.2/24 |
||
PC0 |
172.1.1.2/24 |
172.1.1.1 |
|
PC1 |
172.1.1.3/24 |
172.1.1.1 |
|
PC2 |
172.2.2.2/24 |
172.2.2.1 |
|
PC3 |
172.2.2.3/24 |
172.2.2.1 |
ExperimentPurpose
- Basic configuration of the router: Set the router interface IP address
- Three network segments are divided according to the network topology, and RIP routing is required to be configured so that all clients can communicate with each other.
Experimental steps
1.CommunicationEnquiry
Before setting up RIP, use the ping command to test the communication between two hosts on the same router and the communication between hosts on different routers. The figure below shows the communication between PC0 and PC1 and PC2.
2. Basic routerconfiguration
(1) The basic configuration of RA is as shown in the figure:
The no ip domain-look command is used before configuration, which means that domain name interpretation is turned off. If you do not set it, when you enter an incorrect command in execution mode or configuration mode, the router will treat the incorrect command as a host to search, as shown below. , it will be a waste of time.
(2) The basic configuration of RB is completed with reference to RA
(3) RIP routing configuration
The configuration of RA's RIP routing is as follows:
The configuration of RB's RIP routing is as follows:
(4) View configuration: show ip route
After RIP is enabled in RA and RB is not enabled, there are only two directly connected networks in the routing table.
After RB enables rip, a route that can forward the RB network is added to RA's routing table.
Check the routing table of RB in the same way
3. Conduct communication test again
Use PC0 to ping an interface of router RB and a host under it
4.DefaultRouting configuration
The default route of the router adopts the static routing configuration method. When the router does not know the destination network of the packet, the router will forward the packet to the changed interface.
When using PC0 to ping a destination network unknown to RA, it will pass the 192.168.1.2 interface, but the destination host is unreachable because 192.168.1.2 is not connected to this network.
5. Delete routing protocol