Commands and more Flashcards

1
Q

Create a vlan

A

vlan ‘number’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Command to place certain vlans are primary and secondary root

A

spanning-tree vlan ‘numbers’ root primary/secondary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name a vlan

A

vlan ‘number you want to name’

name ‘name’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Make an accept port

A

Go into interface

switchport mode access
switchport access vlan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Enable PortFast on interface

A

Go into interface

spanning-tree portfast

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Set up VTP

A

vtp domain ‘domain-name’
vtp mode [client/server/transparent]
vtp password ‘password’ ….for vtpv3

vtp version [1/2/3]
vtp pruning . if you want to prune

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Change spanning tree mode

A

Global config

spanning-tree mode [pvst/rapid-pvst/mst]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Configure an SVI on a certain vlan

A

interface vlan ‘number’
ip address ~.~.~.~ -.-.-.-
no shutdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Set up a trunk and etherchannel. Only allow certain vlans. Layer 2.

A

Must go into interface and piut

no switchport mode access
no switchport access vlan ~
On interface

switchport trunk encapsulation [dot1q/isl]

channel-protocol [lacp/pagp]

channel-group ‘#’ mode [active/auto/desirable/on/passive]
no shutdown

no shutdown

switchport mode trunk

switchport trunk allowed vlan ‘vlans’

switchport trunk native vlan ~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Set up a native vlan

A

switchport trunk native vlan ‘number’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Verify vtp

A

show vtp status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Verify spanning-tree

A

Show spanning-tree summary or show spanning-tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Verify vlan

A

Show vlan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Verify etherchannel

A

show etherchannel summary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Change priority of switch, for root bridge

A

In global config mode

spanning-tree vlan ~ priority ~

The lowest priority gets to be root bridge

Increments of 4096

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you change the priority of a port and what gets to be the priority?

A

In interface

spanning-tree vlan ~ port-priority ~

Increments of 64 and the lowest has traffic go to it

17
Q

What else can you do affect what port traffic will go to? How do you change it?

A

You change the cost

In interface

spanning-tree vlan ~ cost ~

18
Q

Which command gets you default gateways in some scenarios?

A

ipconfig

19
Q

AAA and dropping certain filter certain address-ranges on certain vlans

A

‘aaa new-model’

‘radius-server host ~.~.~.~ key ‘key’’

‘aaa authentication dot1x default group radius’

‘dot1x system-auth-control’ (globally enables 802.1x on switch)

‘interface ~’

‘dot1x port-control {force-authorized/force-unauthorized/auto}’

ip access-list standard boson 
#permit 180.190.20.0 0.0.0.255
#exit

‘(config)#vlan access-map MYMAP 10
(config-access-map)#match ip address boson
(config-access-map)#action forward/drop
(config-access-map)#vlan access-map MYMAP 20
(config-access-map)#action forward/drop’

Config global

Then apply to certain vlan
‘vlan filter MYMAP vlan-list ‘the one you want to apply to ‘

Everything gets dropped after first

vlan access-map [name] [sequence #] : creates a VACL with name [name] and places switch into access map config mode for sequence [seq. #] of the VACL.