Cisco uses the RIP Protocol for network-wide communication and Cisco rip Protocol for intercommunication
First, prepare the machine: Five PCs, one layer-3 Switch, two layer-2 switches, and three routers.
Configuration: IP Address: PC0: 192.168.10.1 Gateway: 192.168.10.254
PC1: 192.168.10.2 Gateway: 192.168.10.254
PC2: 192.168.10.3 Gateway: 192.168.10.254
PC3: 192.168.20.1 Gateway: 192.168.255.254
PC4: 192.168.30.1 Gateway: 192.168.30.254
VLAN: PC0, PC1, and PC2 are VLAN10
PC3 is VLAN20
PC4 is VLAN30
Shows the topology:
Create VLAN20 on SW1 and divide the two ports into VLANs.
SW1 (config) # vlan
SW1 (config) # vlan 20
SW1 (config-vlan )#
SW1 (config) # interface fastEthernet 0/1
SW1 (config-if) # switchport mode access
SW1 (config-if) # switchport access vlan 20
SW1 (config) # interface fastEthernet 0/2
SW1 (config-if) # switchport mode access
SW1 (config-if) # switchport access vlan 20
On R1, configure the gateway address of PC3 for Gig0/0 and configure the IP address for the Gig0/1 port of the router.
R1 (config) # interface gigabitEthernet 0/0
R1 (config-if) # ip address 192.168.255.254 255.255.255.0
R1 (config-if) # no shutdown
R1 (config) # interface gigabitEthernet 0/1
R1 (config-if) # ip address 192.168.40.1 255.255.255.0
R1 (config-if) # no shutdown
On R2, IP addresses are configured for Gig0/0 and Gig0/1, and Gateway Addresses for PC0, PC1, and pc2.
R2. (config) # interface gigabitEthernet 0/0
R2 (config-if) # ip address 192.168.40.2 255.255.255.0
R2 (config-if) # no shutdown
R2. (config) # interface gigabitEthernet 0/1
R2 (config-if) # ip address 192.168.50.1 255.255.0
R2 (config-if) # no shutdown
R2. (config) # interface gigabitEthernet 0/2
R2 (config-if) # ip address 192.168.10.254 255.255.255.0
R2 (config-if) # no shutdown
On R3, configure the gateway address of PC4 for Gig0/0 and configure the IP address for the Gig0/1 port of the router.
R1 (config) # interface gigabitEthernet 0/0
R1 (config-if) # ip address 192.168.30.254 255.255.255.0
R1 (config-if) # no shutdown
R1 (config) # interface gigabitEthernet 0/1
R1 (config-if) # ip address 192.168.50.2 255.255.0
R1 (config-if) # no shutdown
Create VLAN30 on SW3 and divide the two ports into VLANs.
SW3 (config) # vlan 30
SW3 (config-vlan )#
SW3 (config) # interface fastEthernet 0/1
SW3 (config-if) # switchport mode access
SW3 (config-if) # switchport access vlan 30
SW3 (config) # interface fastEthernet 0/2
SW3 (config-if) # switchport mode access
SW3 (config-if) # switchport access vlan 30
Create VLAN10 on SW2 and divide VLAN into four ports.
SW2 (config) # vlan 10
SW2 (config) # interface fastEthernet 0/1
SW2 (config-if) # switchport mode access
SW2 (config-if) # switchport aCcess vlan 10
SW2 (config) # interface fastEthernet 0/2
SW2 (config-if) # switchport mode access
SW2 (config-if) # switchport access vlan 10
SW2 (config) # interface fastEthernet 0/3
SW2 (config-if) # switchport mode access
SW2 (config-if) # switchport access vlan 10
SW2 (config) # interface fastEthernet 0/4
SW2 (config-if) # switchport mode access
SW2 (config-if) # switchport access vlan 10
After completing the basic configuration, you still need to configure the RIP on the vro.
First, operate on R1;
R1 (config) # router rip
R1 (config-router) # version 2
R1 (config-router) # no auto-summary
R1 (config-router) # network 192.168.20.0
R1 (config-router) # network 192.168.40.0
RIP configuration on R2;
R2 (config) # router rip
R2 (config-router) # version 2
R2 (config-router) # no auto-summary
R2 (config-router) # network 192.168.10.0
R2 (config-router) # network 192.168.40.0
R2 (config-router) # network 192.168.50.0
RIP configuration on R3;
R3 (config) # router rip
R3 (config-router) # version 2
R3 (config-router) # no auto-summary
R3 (config-router) # network 192.168.50.0
R3 (config-router) # network 192.168.30.0
Check whether the configuration is successful on the three routers. Enter:
R3 # show ip route
Check that the router has learned the route entry, indicating that the configuration is successful. Check whether the ping is successful on the PC.
As shown in:
: