Dell PowerConnect 6248 Switch
Get access to the switch by going through sgehead.bkslab.org:
[s_bwong1@gimel ~]$ ssh bwong1@sgehead.bkslab.org bwong1@sgehead.bkslab.org's password: Last login: Wed Nov 2 15:39:28 2016 from gimel.compbio.ucsf.edu Could not chdir to home directory /raid1/people/bwong1: No such file or directory -bash-3.2$ telnet switch-2-1 Trying 10.0.2.10... Connected to switch-2-1.c.bkslab.org (10.0.2.10). Escape character is '^]'.
User:admin Password:********* switch-2-1>
Enabling privilege mode and configuration mode: 1) Enable privilege mode
switch-2-1>enable Password:********* (same cluster0formula)
2) Enter configuration mode
switch-2-1#config
Backing up the current configuration of PCT6248
If the PCT6248 reboots, it will lose it's current configuration if the startup-config is different from the running-config. To backup your current configuration so that it has the same configuration after a reboot, you must do this command in privilege mode:
switch-2-1#copy running-config startup-config
Configuring The PCT6248
Enabling PortFast on a port
PortFast allows a port to enter into forwarding state immediately (instead of having the port listen and learn first) 1) To enable a port for PortFast, first enter privilege mode and configuration mode. Then select an ethernet port as your primary interface with the command: interface ethernet <port-number>.
switch-2-1(config)#interface ethernet 1/g12
2) Use the command: spanning-tree portfast to enable portfast on a port.
switch-2-1(config-if-1/g12)#spanning-tree portfast
3) Also, you may configure the VLAN when interface is in a specific mode with the command: switchport access vlan <vlan-number>. Here, I am configuring the VLAN 200 (cluster2 VLAN for this switch) to be active in access mode.
switch-2-1(config-if-1/g12)#switchport access vlan 200
VLANs
To create a new vlan:
1) Enter privilege mode, then configuration mode, and finally enter vlan mode
switch-2-1(config)#vlan database
4) Create a vlan with command "vlan <number of new vlan>"
switch-2-1(config-vlan)#vlan 5 Warning: The use of large numbers of VLANs or interfaces may cause significant delays in applying the configuration.
5) Exit back to switch's privilege mode menu (you're in privilege mode if you see a '#' in your prompt) and use "show vlan" to see entire list of current vlans. New vlan will show up.
switch-2-1#show vlan VLAN Name Ports Type Authorization ----- --------------- ------------- ----- ------------- 1 Default ch7-24, Default Required 1/g15-1/g18, 1/g39-1/g40, 1/g45-1/g47, 1/xg1-1/xg4 5 Static Required 100 26 subnet ch1-6,1/g2, Static Required 1/g12, 1/g25-1/g34, 1/g37-1/g38 101 BKS cluster ch1-3,ch5-6, Static Required 1/g1, 1/g3-1/g11, 1/g13-1/g14, 1/g19-1/g20, 1/g23-1/g24, 1/g35-1/g36 102 QB3 PI Zone ch1,ch3 Static Required 200 BKS cluster2 Static Required
To delete a vlan:
1) Enter privilege mode, then configure mode, and finally vlan mode (steps above) 2) Use command "no vlan <number of vlan to be deleted>
switch-2-1(config-vlan)#no vlan 5 Warning: The use of large numbers of VLANs or interfaces may cause significant delays in applying the configuration.
3) Exit back to default menu and see that vlan has been deleted (in this case, vlan 5)
switch-2-1#show vlan VLAN Name Ports Type Authorization ----- --------------- ------------- ----- ------------- 1 Default ch7-24, Default Required 1/g15-1/g18, 1/g39-1/g40, 1/g45-1/g47, 1/xg1-1/xg4 100 26 subnet ch1-6,1/g2, Static Required 1/g12, 1/g25-1/g34, 1/g37-1/g38 101 BKS cluster ch1-3,ch5-6, Static Required 1/g1, 1/g3-1/g11, 1/g13-1/g14, 1/g19-1/g20, 1/g23-1/g24, 1/g35-1/g36 102 QB3 PI Zone ch1,ch3 Static Required 200 BKS cluster2 Static Required
Assigning Ports to a VLAN
1) Enter privilege mode with enable command. Then enter configuration mode. Next, use the interface ethernet <port-number> command to select a port for configuration.
switch-2-1(config)#interface ethernet 1/g12
Your prompt should now contain the selected port.
switch-2-1(config-if-1/g12)#
2) Add your port to the your selected vlan with command: switchport <mode> [add (this section not necessary depending on mode)] vlan <vlan number>
switch-2-1(config-if-1/g12)#switchport access vlan 200 Warning: The use of large numbers of VLANs or interfaces may cause significant delays in applying the configuration.
Configuring IP Parameters for a VLAN
Once you have created a VLAN, you may associate an IP address and a subnet mask for a VLAN. Below, I am assigning an IP address to my VLAN, BKS cluster2. 1) Enter privilege mode > configuration mode. Next, do interface vlan <VLAN id>.
# 200 corresponds to my VLAN BKS cluster2. switch-2-1(config)#interface vlan 200
You will now see a prompt showing that you are configuring vlan200:
switch-2-1(config-if-vlan200)#
2) Since our configuration mode is now linked to interface vlan200, any commands now will affect vlan200. Now we will assign the ip address with the command: ip address <desired address> <desired subnet mask>:
switch-2-1(config-if-vlan200)#ip address 10.20.2.254 255.255.0.0
After that, the vlan 200, BKS cluster2, is now assigned the static ip address of 10.20.2.254.