Switch Lab (1)

Source: Internet
Author: User

Switch Lab (1)

VLAN creation and Configuration

Code

Step 1:Enter the privileged user mode of vswitch

SwitchA> en

SwitchA #

SwitchA # set default

Are you sure? [Y/N] Y

SwitchA # write

SwitchA # reload // restart the switch

Step 2:Set IP addresses for vswitch A to manage IP addresses

SwitchA # config

SwitchA (config) # interface vlan 1

SwitchA (config-if-vlan1) # ip address 192.168.1.11 255.255.255.0

SwitchA (config-if-vlan1) # no shutdown

SwitchA (config-if-vlan1) # exit

SwitchA (config) # exit

Step 3:Create VLAN100 and VLAN200

SwitchA (config )#

SwitchA (config) # VLAN 100

SwitchA (config-vlan100) # exit

SwitchA (config) # VLAN 200

SwitchA (config-VLAN200) # exit

SwitchA (config )#

Verify Configuration:

SwitchA # show vlan

Step 4:Add ports to VLAN100 and VLAN200

, Use the following command to add a port to VLAN100

SwitchA (config) # VLAN 100

SwitchA (config-VLAN100) # switchport interface Ethernet 0/0/1-8

SwitchA (config-VLAN100) # exit

Run the following command to add a port to VLAN200:

SwitchA (config) # VLAN 200

SwitchA (config-VLAN200) # switchport interface Ethernet 0/0/9-16

SwitchA (config-VLAN220) # exit

Verify Configuration:

Step 5:Test and record results in Table 4-1

Table 4-1

Step 6:Analyze test results

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.