Second, the experimental topological diagram
That
Third, the experimental equipment
The topology diagram selects the experimental equipment as follows:
1, 2 routers 2621XM
2, 1 switches
3, 2 pc
4, some connected wiring
Iv. Experimental Process
1, according to the topology map to connect all the contact equipment in the network, write out the connection process.
The router R1 's s0/0 interface is connected to the s0/0 interface of the router R2, the R1 interface of the router f0/0 is connected to the F0/1 interface of the switch, the R2 interface of the router f0/0 is connected to the F0/2 of the switch, the F0/3 port of the switch is connected to the PC0, the switch f0/ 4 Port connected to PC1
2, configure the router R1, write out the complete configuration command.
router>en
Router>config T
Router (config) #hostname R1
R1 (config) #
Router (config) #int s0/0
Router (config-if) #ip address 192.168.150.100 255.255.255.0
Router (config-if) #no shut
Router (config-if) #exit
Router (config) #int f0/0
Router (config-if) #ip address 192.168.100.100 255.255.255.0
Router (config-if) #no shut
Router (config-if) #exit
Router (config) #
Router (config) #
Router (config) #ip Route 192.168.110.0 255.255.255.0 192.168.150.150
Router (config) #exit
router#
%sys-5-config_i:configured from console by console
Router#show IP route
CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP
D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area
N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2
E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP
I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area
*-Candidate default, U-per-user static route, O-ODR
P-periodic downloaded static route
Gateway of last resort are not set
C 192.168.100.0/24 is directly connected, fastethernet0/0
S 192.168.110.0/24 [1/0] via 192.168.150.2
[1/0] via 192.168.150.150
C 192.168.150.0/24 is directly connected, serial0/0
router#
3, configure the router r2503-2, write out the complete configuration command.
router>en
Router>config T
Router (config) #hostname R2
R1 (config) #
Router (config) #int s0/0
Router (config-if) #ip address 192.168.150.150 255.255.255.0
Router (config-if) #no shut
Router (config-if) #exit
Router (config) #int f0/0
Router (config-if) #ip address 192.168.110.110 255.255.255.0
Router (config-if) #no shut
Router (config-if) #
Router (config-if) #ip Route 192.168.100.0 255.255.255.0 192.168.150.100
Router (config) #exit
router#
%sys-5-config_i:configured from console by console
Router#show IP route
CODES:C-connected, s-static, I-igrp, R-rip, M-mobile, B-BGP
D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area
N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2
E1-OSPF external Type 1, E2-OSPF external type 2, E-EGP
I-is-is, L1-is-is level-1, L2-is-is level-2, ia-is-is Inter area
*-Candidate default, U-per-user static route, O-ODR
P-periodic downloaded static route
Gateway of last resort are not set
S 192.168.100.0/24 [1/0] via 192.168.150.1
[1/0] via 192.168.150.100
C 192.168.110.0/24 is directly connected, fastethernet0/0
C 192.168.150.0/24 is directly connected, serial0/0
router#
4, configure the switch S2950, write out the complete configuration command.
Switch>
switch>en
Switch#conf T
Enter configuration commands, one per line. End with cntl/z.
Switch (config) #vlan 110
Switch (Config-vlan) #vlan 150
Switch (Config-vlan) #exit
Switch (config) #int VLAN 110
Switch (config-if) #
%link-5-changed:interface Vlan110, CHANGED state-to-up
Switch (config-if) #ip address 192.168.100.0 255.255.255.0
Bad mask/24 for address 192.168.100.0
Switch (config-if) #ip address 192.168.100.1 255.255.255.0
Switch (config-if) #no shut
Switch (config-if) #exit
Switch (config) #int VLAN 150
Switch (config-if) #
%link-5-changed:interface Vlan150, CHANGED state-to-up
Switch (config-if) #ip address 192.168.150.1 255.255.255.0
Switch (config-if) #no shut
Switch (config-if) #exit
Switch (config) #
Switch (config) #
Switch (config) #int F0/1
Switch (config-if) #switchport mode access
Switch (config-if) #switchport Access VLAN 110
Switch (config-if) #exit
Switch (config) #int F0/2
Switch (config-if) #switchport mode access
Switch (config-if) #switchport Access VLAN 150
Switch (config-if) #exit
Switch (config) #int F0/3
Switch (config-if) #switchport mode access
Switch (config-if) #switchport Access VLAN 110
Switch (config-if) #exit
Switch (config) #int F0/4
Switch (config-if) #switchport mode access
Switch (config-if) #switchport Access VLAN 150
Switch (config-if) #exit
Switch (config) #
Five, experimental test
1, WINDOWS_PC1 can ping to 192.168.100.100
2.pc1192.168.110.16 can ping through 192.168.110.100
3. Since WINDOWS_PC1 and WINDOWS_PC2 are in different VLANs, to make WINDOWS_PC1 and windows_pc2 able to connect, you must route in the R2503-1 and r2503-2 routers.
The routing commands are as follows:
Router1 (config) #ip Route 192.168.110.0 255.255.255.0 192.168.150.150
Router2 (config-if) #ip Route 192.168.100.0 255.255.255.0 192.168.150.100
How do I view routes? Write the command.
Vi. conclusion of the experiment
Two PCs can ping across network segments
Integrated switch and Router experiment