Switches

Adding a Switch Port Interface to a VLAN

Posted on Updated on

In an internet data centre, clients can set up a colocation where they can run their servers for access with the internet. In my job, what I would do is configure the Cisco Catalyst switch 3750 for new colocation clients. It is pretty simple. I check for a free port, assign this to the client, then assign them to a VLAN.

Here’s a configuration sample of how it would go:

————————-

colo.switch>en

colo.switch>password:

colo.switch#show run int fa 1/0/11

Building configuration…

Current configuration : 36 bytes

!

interface FastEthernet1/0/11

end

colo.switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

colo.switch(config)#int fa 1/0/11

colo.switch(config-if)#desc ClientNum – ClientName – VLAN 311

colo.switch(config-if)#switchport access vlan 311

% Access VLAN does not exist. Creating vlan 311

colo.switch(config-if)#dup full

colo.switch(config-if)#speed 100

colo.switch(config-if)#storm-control broadcast level pps 10k 9k

colo.switch(config-if)#storm-control multicast level pps 10k 9k

colo.switch(config-if)#storm-control unicast level pps 10k 9k

colo.switch(config-if)#switchport mode access

colo.switch(config-if)#no shut

colo.switch(config-if)#^Z

colo.switch#show run int fa 1/0/11

Building configuration…

Current configuration : 298 bytes

!

interface FastEthernet1/0/11

description ClientNum – ClientName – VLAN 311

switchport access vlan 311

switchport mode access

speed 100

duplex full

storm-control broadcast level pps 10k 9k

storm-control multicast level pps 10k 9k

storm-control unicast level pps 10k 9k

end

colo.switch#copy run start

Destination filename [startup-config]?

Building configuration…

[OK]

colo.switch#

————————-

Always keep in mind when configuring a switch port that there are no existing configurations there that you would be overwriting by mistake. This is why the show run int fa 1/0/xx is important as it would display the existing running-configuration.

When you’re done with your configurations and have verified them correct, be sure to save them to the memory by using the command copy run start.

This post just shows a sample of configuring a switch port to a VLAN. Of course, this is not all that needs to be done for the client as they wouldn’t have access yet to and from the internet. The next step would be assigning them IP addresses and configuring the routes. More of that in another post.

Cisco IOS 10 Basic Commands That Should Be Mastered

Posted on Updated on

David Davis wrote in TechRepublic about the ten commands that a Cisco professional or network administrator should know when using the Cisco IOS in routers, switches, and firewalls. This is a good reminder for me, and I’m glad to know that I have embedded all of it in my brain already.

Below is the list he made plus my comments on what I think about each item.

1.    The “?”
This is the most helpful command ever. There are thousands of possible commands in the Cisco IOS and this is definitely useful when you don’t know or can’t remember the command to type, or the parameter that should come next.


2.    show running-configuration (sh run)

If you want to check the current configuration of the router, switch, or firewall, this is what is used.


3.    copy running-configuration startup-configuration (copy run start)

This command will save your current configuration, which is in the RAM, to the nonvolatile RAM (NVRAM). You can also use the copy command to copy to the TFTP server. If you must turn off your router, do not forget to use this command unless you don’t want to save the configuration changes you made.


4.    show interface (sh int)

For troubleshooting, this command is used to check the status of the router’s interfaces.


5.    show ip interface (sh ip int)

Much useful information about the configuration and status of the IP protocol and its services, on all interfaces are displayed with this command. Alternatively, you can add brief at the end of the command to get a shorter quick status.

Cisco 2801 Router
6.    config terminal, enable, interface, and router (conf t, en, int, router)

These are used to enter different modes in configuring the router.


7.    no shutdown (no shut)

This is used to enable an interface, and also useful for troubleshooting when used with shut (to bring down interface then up).


8.    show ip route (sh ip ro)

To check the routing table, use this command.


9.    show version (sh ver)

This will display the router’s firmware settings, the last time the router was booted, the version of the IOS, the name of the IOS file, the model of the router, and the router’s amount of RAM and Flash.


10.    debug

This is helpful in troubleshooting. The debug command is used with other commands like for example, debug ip route.

Alright. That should be pretty simple to remember. Commands, stay in my brain please, thank you.

Photo Credit: dontthink.feel