Saturday 28 July 2012

VLAN'S SWITCH SIDE

Create and Name VLAN

S1(config)#vlan {VLAN NUMBER}
S1(config-vlan)#name {VLAN NAME}
S1(config -vlan)# exit


Trunk VLAN

S1(config)#int range {INT RANGE E.G fa0/0 - fa0/24}  
NOTE: int range command doesn't work in packet tracer, use int {INT}
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan {VLAN NUMBER}

Access VLAN

S1(config)#int range {INT RANGE E.G fa0/0 - fa0/24}  
NOTE: int range command doesn't work in packet tracer, use int {INT}

S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan {VLAN NUMBER}

VLAN'S ROUTER SIDE

Sub interface configuration as Native VLAN

R1(config)int fa0/0.99
R1(config-subif) encap dot1q 99 native
R1(config-subif) ip address {IPADDRESS} {MASK}


VLAN Sub interface configuration

R1(config)int fa0/0.99
R1(config-subif) encap dot1q 99
R1(config-subif) ip address {IPADDRESS} {MASK}




VTP (Vlan Trunking Protocol) Switch

VTP a service that automates the process of updating trunk link, 2 Modes CLIENT Receives Updates and SERVER sends updates.

VTP mode syntax

S1(config)#vtp mode{CLIENT/SERVER}
S1(config)#vtp domain {DOMAIN NAME}
S1(config)#vtp password  {PASSWORD}

STP (Spanning Tree Protocol) Switch

Set spanning tree priority.

S1(config)# spanning-tree vlan {vlan range e.g 1-255} priority {Priority Number}

Note: Priority range is between 1-65536 1 being the highest priority,
the highest priority will be elected as the root bridge.

View spanning tree priority and status

S1#show spanning-tree

OSPF(Open Shortest Path First) Router

OSPF

Router Syntax for ospf network

R1(config)ospf {process-id} ## or for PK R1(config)router ospf {proccess-id}

R1(config-router) network {X.X.X.X} {Y.Y.Y.Y} area {Z}  Note: {Y.Y.Y.Y} wild card mask

To inject new command

R1(config-router)default-information originate



Router Syntax for passive interface.

R1(config)ospf {process-id}

R1(config-router)passive-interface {interface}

Reinstate interface

R1(config-router)no passive-interface {interface}

Great Subnetting cheat sheet



Static and Defualt route (Router)

Static Route Syntax

R1(config) ip route {IP ADDRES} {MASK} {INTERFACE}

Default static route syntax

R1(config) ip route 0.0.0.0 0.0.0.0 (INTERFACE)