Showing posts with label switch. Show all posts
Showing posts with label switch. Show all posts

Thursday, 19 August 2010

Add a static route on a switch

The command is, in config mode;
ip route 0.0.0.0 (MASK) 0.0.0.0 (GATEWAY) 0.0.0.0
For example: ip route 10.63.32.0 255.255.248.0 10.63.1.254

Show static routes on a switch

The command is, not in config mode;
show ip route static

Changes Subnet Masks on a VLAN

Log onto the switch usuing Telnet open 10.63.0.251
Config t
Interface vlan64 (or the vlan number you wish to change)
Ip address 10.63.64.254 255.255.255.0 (type out the ipaddress of the GW of the vlan and the new subnet)
Exit
Exit
Show run
Spacebar to the bottom
Should see the network IP/MASK change

Show MAC addresses on the switch

Log into the switch using Telnet open 10.63.0.251
To view the whole MAC table, use the following command from enable mode:
show mac-address-table

Change VLAN's on a port

Log onto the swith using Telnet open xx.xx.xx.xx
Config t
interface fastethernet 1/0/11 (Switch 1 port 11)
switchport access vlan 64 (changes the port to VLAN 64)
description XXX (changes the description field of the port)
Exit
Exit
Spacebar to view the new configuration
write
write mem (to write to flash memory for boot up)
exit
Other tips:
show vlan
show inter sum (summary report)
show inter fa 1/0/11
show run