Vswitch startup and basic configuration (1)

Source: Internet
Author: User

Experiment 1 vswitch startup and basic configuration:
1924 vswitch Configuration:
Sw1924_ B # delete nvram ---------- clear all vswitch configurations
Sw1924_ B # reload -------------- restart the switch. The initial prompt is>)
Sw1924_ B <config> # hostname sw1924 --------------------------- set the switch Host Name> sw1924_ B <config> # enable secret cisco ----------------------- set the encryption Password
Sw1924_ B <config> # enable password level 1 cisco1 ----------- set level password 1 to the lowest)
Sw1924_ B <config> # enable password level 15 cisco15 ---------- set the highest level password 15)
Sw1924_ B <config> # ip address 192.168.14.1 255.255.255.0 ----- set the management ip address of the switch
Sw1924_ B <config> # ip default-gateway 192.168.198.2 ---------- set the gateway address of the switch
Sw1924_ B <config> # ip domain-name pctc.com.cn ---------------- set the domain name of the domain connected to the switch
Sw1924_ B <config> # ip name-server 218.87.18.230 -------------- set the IP address of the Domain name server in the domain connected to the switch
Sw1924_ B # show ip ----------------------------------------------- view the preceding Environment
Sw1924_ B # show version ---------------------------------------- view the vswitch version and other information
Sw1924_ B # show running-config ------------------------------- view all information about the current running configuration of the switch.
Sw1924_ B # show int e0/1 ----------------------------------------- view information on the 1st ports of a vswitch
2912 vswitch Configuration:
Sw2912_a # erase nvram ----------- clear all configurations of the switch
Sw2912_a # reload -------------- restart the switch. The initial prompt is switch>)
Sw2912_a <config> # int vlan 1 ---------------------------------- enter the vlan 1 special interface configuration mode
Sw2912_a <config-if> # ip address 192.168.15.1 255.255.255.0 ---- set the management ip address of the switch
Sw2912_a <config> # ip default-gateway 192.168.198.2 ---------- set the gateway address of the switch
Sw2912_a <config> # ip domain-name pctc.com.cn ---------------- set the domain name of the domain connected to the switch
Sw2912_a <config> # ip name-server 218.87.18.230 -------------- set the IP address of the Domain name server in the domain connected to the switch
Sw2912_a # show int vlan 1 ------------------------------------- view VLAN 1 special interface configuration information of a switch
Sw2912_a # show run -------------------------------------------- view all information about the current running configuration of the switch.
Set the port and MAC address of the vswitch in Experiment 2:
1924 vswitch Configuration Port properties:
Sw1924_ B # conf t
Sw1924_ B <config> # interface ethernet 0/1 ------------------------- enter port 1st
Sw1924_ B <config-if> # description sw1924_b-e0/1-pc1 --------------- write comment information to the port
Sw1924_ B <config-if> # duplex auto/full-flow-control/half ----- set the port working mode
Sw1924_ B <config-if> # port secure ----------------------------------- enable port Security
Sw1924_ B <config-if> # port secure max-mac-count 1 --------- set the number of MAC addresses allowed for this port (132 by default)
Sw1924_ B # sh mac-address-table security ---------------- view port security
2912 vswitch Configuration Port properties:
Sw1912_a # conf t ------------------------------------------- enter the global configuration mode
Sw1912_a <config> # interface fastethernet 0/1 ------------- enter port 1st
Sw1912_a <config-if> # description sw2912_a-f0/1-pc1 ------- write comments to the port
Sw1912_a <config-if> # duplex auto/full/half ------------- set the port working mode
Sw1912_a <config-if> # port security --------------------- enable port security
Sw1912_a <config-if> # port security max-mac-count 1 ------- set the number of MAC addresses allowed for this port (132 by default)
Sw1912_a <config-if> # end ----------------------------------- return the privileged Mode
Sw1912_a <config-if> # sh port security ------------------ view port security


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.