0% found this document useful (0 votes)
23 views

Jisable JNS Lookup: Remove The VLAN Database Information File

The document provides instructions for configuring a basic switch, including removing previous configurations, setting passwords, configuring IP addresses and VLANs, enabling trunking and native VLANs, configuring VTP and STP, and setting port security and subinterfaces.

Uploaded by

jrthebomba
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Jisable JNS Lookup: Remove The VLAN Database Information File

The document provides instructions for configuring a basic switch, including removing previous configurations, setting passwords, configuring IP addresses and VLANs, enabling trunking and native VLANs, configuring VTP and STP, and setting port security and subinterfaces.

Uploaded by

jrthebomba
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Switch Basic Configuration

Remove the VLAN database information file

Switch#delete Switch#erase

flash:vlan.dat

Remove the switch startup configuration file from NVRAM

startup-config

Create a Basic Switch Configuration


S1#(config)#no

Disable DNS lookup ip domain-lookup Hostname

S1#configure terminal S1(config)#hostname

S1

Set the access passwords.


S1#configure terminal S1(config)#line console S1(config-line)#password S1(config-line)#login S1(config-line)#line vty S1(config-line)#password S1(config-line)#login

0 cisco 0 15 cisco

Set the command mode passwords.


S1(config)#enable

secret class

Configure the Layer 3 address of the switch.


Set the IP address of the switch to 172.17.99.11 with a subnet mask of 255.255.255.0 on the internal virtual interface VLAN 99. The VLAN must first be created on the switch before the address can be assigned.
S1(config)#vlan 99 S1(config-vlan)#exit S1(config)#interface vlan99 S1(config-if)#ip address 172.17.99.11 S1(config-if)#no shutdown

255.255.255.0

Assign ports to the switch VLAN. S1(config)#interface fa0/1 S1(config-if)#switchport access vlan 99 Set the switch default gateway. S1(config)#ip default-gateway 172.17.99.1

Configure the port speed and duplex settings for a Fast Ethernet interface.
S1#configure terminal S1(config)#interface fastethernet S1(config-if)#speed 100 S1(config-if)#duplex full

0/18

Managing the MAC Address Table


Determine the MAC addresses that the switch has learned. S1#show mac-address-table Clear the MAC address table. S1#clear mac-address-table Set up a static MAC address. S1(config)#mac-address-table

dynamic static 0002.16E8.C285 vlan 99

interface fastethernet 0/18


Remove the static MAC entry S1(config)#no mac-address-table

static 0002.16E8.C285 vlan 99

interface fastethernet 0/18

Configuring Port Security


S1# configure terminal S1(config)#interface fastethernet 0/18 S1(config-if)#switchport port-security S1(config-if)#switchport port-security S1(config-if)#switchport port-security S1(config-if)#switchport port-security

maximum 1 mac-address sticky violation shutdown

Configure VLANs on the Switch


S1(config)#vlan 99 S1(config-vlan)#name S1(config-vlan)#exit S1(config)#vlan 10 S1(config-vlan)#name S1(config-vlan)#exit show vlan brief

Management&Native Faculty/Staff

Assign switch ports to VLANs S2(config)#interface fastEthernet0/6 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 30 S2(config-if)#interface fastEthernet0/11 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 10
Use the show vlan id vlan-number command on S2 to see which ports are assigned to VLAN 10.

Assign the management VLAN. S1(config)#interface vlan 99 S1(config-if)#ip address 172.17.99.11 255.255.255.0 S1(config-if)#no shutdown
S2(config)#interface vlan 99 S2(config-if)#ip address 172.17.99.12 S2(config-if)#no shutdown

255.255.255.0

Configure trunking and the native VLAN for the trunking ports
S1(config)#interface fa0/1 S1(config-if)#switchport mode trunk S1(config-if)#switchport trunk native S1(config-if)#interface fa0/2 S1(config-if)#switchport mode trunk S1(config-if)#switchport trunk native S1(config-if)#end

vlan 99 vlan 99

Verify that the trunks have been configured with the show interface trunk command.S1#show interface trunk

Configure VTP and Security on the Switches


S2#show vtp status S1(config)#vtp mode server Device mode already VTP SERVER. S1(config)#vtp domain Lab4 Changing VTP domain name from NULL to Lab4 S1(config)#vtp password cisco Setting device VLAN database password to cisco S1(config)#end S2(config)#vtp mode client Setting device to VTP CLIENT mode S2(config)#vtp domain Lab4 Changing VTP domain name from NULL to Lab4 S2(config)#vtp password cisco Setting device VLAN database password to cisco S2(config)#end S3(config)#vtp mode transparent Setting device to VTP TRANSPARENT mode. S3(config)#vtp domain Lab4 Changing VTP domain name from NULL to Lab4 S3(config)#vtp password cisco Setting device VLAN database password to cisco S3(config)#en

Configure Spanning Tree


S1#show spanning-tree S1(config)#spanning-tree vlan 99 priority 4096 S1(config)#exit

Configure subinterfaces
The commands are as follows:
R1(config)#interface R1(config-if)#no

fastethernet 0/1 shutdown

R1(config-if)#interface

fastethernet 0/1.1 dot1q 1 R1(config-subif)#ip address 172.17.1.1 255.255.255.0


R1(config-subif)#encapsulation

R1(config-if)#interface

fastethernet 0/1.10 dot1q 10 R1(config-subif)#ip address 172.17.10.1 255.255.255.0


R1(config-subif)#encapsulation R1(config-subif)#encapsulation

R1(config-if)#interface

fastethernet 0/1.20 dot1q 20 R1(config-subif)#ip address 172.17.20.1 255.255.255.0 fastethernet 0/1.30 dot1q 30 R1(config-subif)#ip address 172.17.30.1 255.255.255.0
R1(config-subif)#encapsulation R1(config-if)#interface R1(config-subif)#encapsulation

R1(config-if)#interface

fastethernet 0/1.99 dot1q 99 native R1(config-subif)#ip address 172.17.99.1 255.255.255.0

You might also like