command switch ccnp

9
Command Switch(config)# spanning-tree vlan 5,100-200 priority 4096 Switch(config)# spanning-tree vlan vlan-id root {primary | secondary} [d Switch(config-if)# spanning-tree [vlan vlan-list] port-priority port-pri Switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-secon Switch(config-if)# spanning-tree guard root Switch(config-if)# spanning-tree portfast Switch(config-if)# spanning-tree link-type point-to-point Switch(config)# spanning-tree mode rapid-pvst Switch(config)# spanning-tree mstinstance-id root{primary|secondary} [di Switch(config)# spanning-tree mstinstance-id priority bridge-priority Switch(config)# spanning-tree mstinstance-id cost cost Switch(config)# spanning-tree mstinstance-id port-priority port-priority Switch(config-if)# spanning-tree vlan 10 cost 2 Switch# show spanning-tree interface type mod/num [cost] Switch(config)# spanning-tree [vlan vlan-id] hello-time seconds Switch(config)# spanning-tree [vlan vlan-id] forward-time seconds Switch(config)# spanning-tree [vlan vlan-id] max-age seconds Switch(config)# spanning-tree portfast bpduguard default Switch(config-if)# [no] spanning-tree bpduguard enable Switch(config)# spanning-tree loopguard default Switch(config-if)# [no] spanning-tree guard loop Switch(config)# spanning-tree mode mst Switch(config)# spanning-tree mst configuration Switch(config-mst)# name name Switch(config-mst)# revision version Switch(config-mst)# instance instance-id vlan vlan-list Switch(config)# spanning-tree mst hello-timeseconds Switch(config)# spanning-tree mst forward-timeseconds Switch(config)# spanning-tree mst max-ageseconds

Upload: phap-nguyen

Post on 29-Nov-2015

9 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Command Switch Ccnp

Command

Switch(config)# spanning-tree vlan 5,100-200 priority 4096

Switch(config)# spanning-tree vlan vlan-id root {primary | secondary} [diameter diameter]

Switch(config-if)# spanning-tree [vlan vlan-list] port-priority port-priority

Switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]

Switch(config-if)# spanning-tree guard root

Switch(config-if)# spanning-tree portfast

Switch(config-if)# spanning-tree link-type point-to-point

Switch(config)# spanning-tree mode rapid-pvst

Switch(config)# spanning-tree mstinstance-id root{primary|secondary} [diameterdiameter]Switch(config)# spanning-tree mstinstance-id priority bridge-prioritySwitch(config)# spanning-tree mstinstance-id cost costSwitch(config)# spanning-tree mstinstance-id port-priority port-priority

Switch(config-if)# spanning-tree vlan 10 cost 2Switch# show spanning-tree interface type mod/num [cost]

Switch(config)# spanning-tree [vlan vlan-id] hello-time secondsSwitch(config)# spanning-tree [vlan vlan-id] forward-time secondsSwitch(config)# spanning-tree [vlan vlan-id] max-age seconds

Switch(config)# spanning-tree portfast bpduguard defaultSwitch(config-if)# [no] spanning-tree bpduguard enable

Switch(config)# spanning-tree loopguard defaultSwitch(config-if)# [no] spanning-tree guard loop

Switch(config)# spanning-tree mode mstSwitch(config)# spanning-tree mst configurationSwitch(config-mst)# name nameSwitch(config-mst)# revision versionSwitch(config-mst)# instance instance-id vlan vlan-list

Switch(config)# spanning-tree mst hello-timesecondsSwitch(config)# spanning-tree mst forward-timesecondsSwitch(config)# spanning-tree mst max-ageseconds

Page 2: Command Switch Ccnp

Mean

Set up priority

Force switch to become root bridge

To setup cost

To setup port priority

To setup hello-time, forward-time, max-age

To setup port fast in RSTP

To force the port to act as a point-to-point link

To change the STP mode and begin using RPVST+

Set root bridge (macro).Set bridge priority.Set port cost. Set port priority.

Set STP timers

Enable MST on the switchEnter the MST configuration modeAssign a region configuration name (up to 32 characters)Assign a region configuration revision number (0 to 65,535)Map VLANs to an MST instance

Page 3: Command Switch Ccnp

Command

Switch(config)# vlan access-map map-name [sequence-number]

Switch(config-access-map)# action {drop | forward [capture] | redirect type mod/num}

Switch(config)# vlan filter map-name vlan-list vlan-list

Switch(config-access-map)# match ip address {acl-number | acl-name}Switch(config-access-map)# match ipx address {acl-number | acl-name}Switch(config-access-map)# match mac address acl-name

Page 4: Command Switch Ccnp

Mean

You define the VACL

Configure a matching condition with one of the following access map

Define the action with the following access map configuration command

Apply the VACL to a VLAN

Page 5: Command Switch Ccnp

Command

Page 6: Command Switch Ccnp

Mean

Page 7: Command Switch Ccnp

Command

ip helper-address 192.168.199.4

Switch(config)# ip dhcp excluded-address start-ip end-ipSwitch(config)# ip dhcp pool pool-nameSwitch(config-dhcp)# network ip-address subnet-maskSwitch(config-dhcp)# default-router ip-address [ip-address2] [ip-address3] …Switch(config-dhcp)# lease {infinite | {days [hours [minutes]]}}

Page 8: Command Switch Ccnp

Mean

Configuring an IOS DHCP Server

Configuring a DHCP Relay