. Configure the pc ip Address
Ii. vlan2 and vlan3
S1 (config) # VLAN 2 \ divide vlan2
S1 (config-VLAN) # namecw \ rename vlan2
S1 # VLAN database \ Access VLAN
S1 (VLAN) # VLAN 3 namejs \ method 2 vlan3
VLAN 3 added:
Name: JS
3. Add pC1 PC2 to vlan2 PC3 pc4 to vlan3
S1 (config) # interfacefastethernet 0/1 \ enter interface mode
S1 (config-If) # switchportaccess VLAN 2 \ add this port to vlan2
S1 (config-If) # exit
S1 (config) # interfacerange fastethernet 0/3-4 \ enter interface mode
S1 (config-if-range) # switchportaccess VLAN 3 \ add this group of interfaces to vlan3
650) This. length = 650; "Border =" 0 "width =" 454 "Height =" 121 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
VLANs do not communicate with each other
Configure the vswitch topology of S2 according to S1
650) This. length = 650; "Border =" 0 "width =" 576 "Height =" 155 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
650) This. length = 650; "Border =" 0 "width =" 576 "Height =" 154 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
4. Establish a trunk to implement communication between the same VLAN of different switches
S1 (config) # interfacefastethernet 0/5 \ enter port S1 0/5
S1 (config-If) # switchportmode trunk \ set trunk
S2 (config) # interfacefastethernet 0/5
S2 (config-If) # switchportmode trunk
5. Test
650) This. length = 650; "Border =" 0 "width =" 499 "Height =" 98 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
Normal Network Communication
6. establish channels to achieve Load Balancing across multiple lines, improve bandwidth, and fault tolerance
Topology:
S1 (config) # interfacerange fastethernet 0/5-8
S1 (config-if-range) # switchportmode trunk
S1 (config-if-range) # channel-group1 mode on
S2 (config) # interfacerange fastethernet 0/5-8
S2 (config-if-range) # switchportmode trunk
S2 (config-if-range) # channel-group1 mode on
S2 # Show running-config
Interfacefastethernet0/5
Channel-group 1 mode on
Switchport mode trunk
Interfacefastethernet0/6
Channel-group 1 mode on
Switchport mode trunk
!
Interfacefastethernet0/7
Channel-group 1 mode on
Switchport mode trunk
!
Interfacefastethernet0/8
Channel-group 1 mode on
650) This. length = 650; "Border =" 0 "width =" 222 "Height =" 56 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
Experiment 2 sets up DHCP
Topology:
650) This. length = 650; "Border =" 0 "width =" 576 "Height =" 259 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
1. Set all PCs to automatically obtain IP addresses
2. Set the route implementation DBCP
Router (config) # interfacefastethernet 0/1 access the 0/1 Interface
Router (config-If) # IPaddress 192.168.2.254 255.255.255.0
Router (config-If) # enable noshutdown
Router (config) # IP dhcppool rdhcp enter DHCP settings
Router (DHCP-config) # network192.168.1.0 255.255.255.0
Router (DHCP-config) # The default gateway for default-router192.168.1.254 Configuration
Router (DHCP-config) # dns-server202.106.0.20 to configure DNS
650) This. length = 650; "Border =" 0 "width =" 288 "Height =" 153 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
3. Reserved static IP address 192.168.1.1-192.168.1.100
Router (config) # IP dhcpexcluded-address 192.168.1.1 192.168.1.100
# A Single IP Address indicates that an IP address is connected to an IP address. The space interval between the two IP addresses indicates the IP address segment.
650) This. length = 650; "Border =" 0 "width =" 356 "Height =" 153 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
650) This. length = 650; "Border =" 0 "width =" 70 "Height =" 56 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/themes/default/images/word.gif") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>
Divide VLANs and configure trunk to implement intercommunication between different switches