Cisco 2950 vswitch VLAN Division

Source: Internet
Author: User
Tags cisco 2950


Cisco 2950 switch VLAN division first configure the switch SC-2950> SC-2950> enSC-2950 # conf tEnter configuration commands, one per line. end with CNTL/Z.SC-2950 (config) # config-register 0x2102SC-2950 (config) # end
Add three VLANSC-2950 # vlan dataSC-2950 (vlan) # vlan 10 name v1VLAN 10 added: www.2cto.com Name: v1SC-2950 (vlan) # vlan 20 name v2VLAN 20 added: Name: v2SC-2950 (vlan) # vlan 30 name v3VLAN 30 added: Name: v3SC-2950 (vlan) # exitAPPLY completed. exiting ....
SC-2950 # divide the interface to each VLANSC-2950 # conf tEnter configuration commands, one per line. end with CNTL/Z.SC-2950 (config) # int fa0/1 // leave the Administrator SC-2950 (config-if) # switchport mode accessSC-2950 (config-if) # sw acc vlan 10SC-2950 (config-if) # no shutdownSC-2950 (config-if) # exit www.2cto.com SC-2950 (config) # int range f0/2-15SC-2950 (config-if-range) # sw mode accSC-2950 (config-if-range) # sw acc vlan 20SC-2950 (config-if-range) # no shSC-2950 (config-if-range) # exitSC-2950 (config) # int range f0/16-24SC-2950 (config-if-range) # sw mode accSC-2950 (config-if-range) # sw acc vlan 30SC-2950 (config-if-range) # no shSC-2950 (config-if-range) # exit
Activate the VLAN and add an IP address to VLAN 10 to manage the SC-2950 (config) # int vlan 10SC-2950 (config-if) # ip add 192.168.1.1 255.255.255.0SC-2950 (config-if) # no shSC-2950 (config-if) # exitSC-2950 (config) # int vlan 20SC-2950 (config-if) # no shSC-2950 (config-if) # exitSC-2950 (config) # int vlan 30SC-2950 (config-if) # no shSC-2950 (config-if) # exit direct the switch to the gateway SC-2950 (config) # ip default-gateway 192.168.1.254SC-2950 (config) # endSC-2950 #
Detect configuration SC-2950 # sh vlan brief www.2cto.com VLAN Name Status Ports ---- ---------------------------------- --------- Listen 1 default active10 v1 active Fa0/120 v2 active Fa0/2, Fa0/3, Fa0/4, fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, fa0/1530 v3 active Fa0/16, Fa0/17, Fa0/18, Fa0/19 Fa0/20, Fa0/21, Fa0/22, fa0/23 Fa0/24SC-2950 # sh ip int bInterface IP-addh Ss OK? Method Status failed/23 unassigned YES unset up down failed FastEthernet0/24 unassigned YES unset up down Vlan1 unassigned YES unset up down Vlan10 192.168.1.1 YES manual up Vlan20 unassigned YES unset up Vlan30 then YES unset up downSC-2950 # sh runBuilding configuration... current configuration: 1482 bytes... www.2cto.com! Interface FastEthernet0/24 switchport access vlan 30! Interface Vlan1no ip address! Interface Vlan10ip address 192.168.1.1 255.255.255.0! Interface Vlan20no ip address! Interface Vlan30no ip address! Ip default-gateway 192.168.1.254ip http server! Www.2cto.com... save the configuration SC-2950 # writeBuilding configuration... [OK] By Binotes

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.