12.07.2015 Views

31 Days Before Your CCNA Exam

31 Days Before Your CCNA Exam

31 Days Before Your CCNA Exam

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

88 <strong>31</strong> <strong>Days</strong> <strong>Before</strong> <strong>Your</strong> <strong>CCNA</strong> <strong>Exam</strong>VLAN Configuration and VerificationCommandsThe default configuration of a Cisco switch is to put all interfaces in VLAN 1, which can be verifiedwith the show vlan brief command, as demonstrated for S2 in <strong>Exam</strong>ple 23-1.<strong>Exam</strong>ple 23-1Default VLAN ConfigurationS2#show vlan briefVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/15, Fa0/16Fa0/17, Fa0/18, Fa0/19, Fa0/20Fa0/21, Fa0/22, Fa0/23, Fa0/24Gig1/1, Gig1/21002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default activeA VLAN can be created in one of two ways: either in global configuration mode or directly underthe interface. The advantage to configuring in global configuration mode is that you can thenassign a name with the name vlan-name command. The advantage to configuring the VLAN ininterface configuration mode is that you assign the VLAN to the interface and create the VLANwith just one command. However, to name the VLAN, you still have to go back to the global configurationmethod. <strong>Exam</strong>ple 23-2 shows the creation of VLANs 10 and 20 using these two methods.VLAN 20 is then named, and the remaining VLANs are created in global configuration mode.<strong>Exam</strong>ple 23-2Creating VLANsS2#config tEnter configuration commands, one per line. End with CNTL/Z.S2(config)#vlan 10S2(config-vlan)#name Faculty/StaffS2(config-vlan)#interface fa 0/18S2(config-if)#switchport access vlan 20% Access VLAN does not exist. Creating vlan 20S2(config-if)#vlan 20S2(config-vlan)#name StudentsS2(config-vlan)#vlan 30S2(config-vlan)#name Guest(Default)S2(config-vlan)#vlan 99S2(config-vlan)#name Management&Native

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!