Switch and Router Configuration Experiment 3 Introduction to Router
Experiment 3 Introduction to routers (6 points)
Purpose:
1. Learn about common router equipment information:
The Cisco 2621 modular router is currently out of production, using Motorola MPC860 50MHz CPU, the control port is RS-232, including 2 fast Ethernet interfaces.
2. Understand the basic configuration process of the router
Including user name and password settings, simple port settings, etc.
3. Understand the difference between a router and a switch
Including communication between the same network segment and different network segments
Experimental steps: (1 point)
1. Select the corresponding router:
2. Network topology diagram: connect to the console port for configuration:
Experimental results: (4 points)
1. Username and password settings (1 point)
2. Interface configuration (1 point)
3. Comparative experiment (2 points)
Summary: (1 point)
Communication between different network segments inside the switch is not possible. Only the same network segment and the same vlan can communicate. Communication between different network segments of the same vlan requires at least one router for bridging, that is, through the two interfaces of the router, respectively assign different network segments corresponding Gateway IP, in this experiment, the PC0 network segment is set to 192.168.1.X, and the gateway IP: 192.168.1.10, so the router interface f0/0 connected to this switch, the IP is set to 192.168.1.10; Reason, PC1 network segment is 192.168.2.X, gateway IP: 192.168.2.10, so the router interface f0/1 connected to switch 2, IP is set to 192.168.2.10. When the router is plugged into the default port, it is different from the plug-and-play of the switch, and needs to be turned on manually. In the command, it is: no shutdown
Extended experiment (static routing):
1. Network topology diagram
2. Router configuration:
2.1 Router corresponding interface IP configuration:
router0:
Router 1:
2.2 Router corresponding routing table configuration:
router0:
Router 1:
3. Experimental results
Communication between PC1\2 and PC3\4 can be realized
4. Summary:
The reason for the communication is that the two routers have set static routing:
Jack-Router01(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2
Jack-Router02(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.1
For these two routers, when they receive the data packet, they will search for the forwarding path through static routing. Taking router 0 as an example, when it receives the data packet sent by PC1 to PC3, it receives the data packet. Check the IP and find that it is for the network segment 192.168.2.X, and the network segment it is responsible for is 192.168.1.X, so it needs to look up the routing table, and its routing table is: Jack-Router01(config) #ip route 0.0.0.0 0.0.0.0 1.1.1.2 ; This sentence means that when router 0 does not know who to send the data packet to, it sends the data packet to the interface device with IP 1.1.1.2, that is, it is the same as router 0 Configured interface IP of interface f0/1 of router 1 directly connected to interface f0/1. So by looking up the routing table, the data is forwarded to router 1. As soon as router 1 receives it, it finds that it is the network segment 192.168.2.X that I am in charge of, so it sends it down through the corresponding port F0/0, and sends it to switch 1, and then switch 1 performs a broadcast search, finds PC3, and completes the communication.