Config 3024

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 15

console>

console>enable

(Verifica qual ip esta configurado)

console#show ip interface

Default Gateway................................ 0.0.0.0


L3 MAC Address................................. F8B1.5672.3D69

Routing Interfaces:

Interface State IP Address IP Mask Method


---------- ----- --------------- --------------- -------
Vl1 Up 192.168.200.1 255.255.255.0 Manual
Vl90 Down 192.168.90.1 255.255.255.0 Manual

console#show vlan

VLAN Name Ports Type


----- --------------- ------------- --------------
1 default Po1-128, Default
Gi1/0/2-24,
Te1/0/1-2
90 VLAN90 Gi1/0/1 Static

RSPAN Vlan
---------------------------------------------------------------------
None

console#
console>
console>
console>
console>
console>
console>
console>
console>enable

console#confi

console(config)#vlan 2

console(config-vlan2)#vlan 3

console(config-vlan3)#vlan 4

console(config-vlan4)#vlan 5

console(config-vlan5)#vlan 6

console(config-vlan6)#vlan 7

console(config-vlan7)#vlan 8

console(config-vlan8)#vlan 9
console(config-vlan9)#vlan 10

console(config-vlan10)#vlan 11

console(config-vlan11)#vlan 12

console(config-vlan12)#vlan 13

console(config-vlan13)#vlan 14

console(config-vlan14)#vlan 15

console(config-vlan15)#vlan 16

console(config-vlan16)#vlan 17

console(config-vlan17)#vlan 18

console(config-vlan18)#vlan 19

console(config-vlan19)#vlan 20

console(config-vlan20)#vlan 21

console(config-vlan21)#vlan 22

console(config-vlan22)#vlan 23

console(config-vlan23)#vlan 24

console(config-vlan24)#vlan 25

console(config-vlan25)#vlan 26

console(config-vlan26)#vlan 27

console(config-vlan27)#vlan 28

console(config-vlan28)#vlan 29

console(config-vlan29)#vlan 30

console(config-vlan30)#vlan 31

console(config-vlan31)#vlan 32

console(config-vlan32)#vlan 33

console(config-vlan33)#vlan 34

console(config-vlan34)#vlan 35

console(config-vlan35)#vlan 36

console(config-vlan36)#vlan 37

console(config-vlan37)#vlan 38

console(config-vlan38)#vlan 39
console(config-vlan39)#vlan 40

console(config-vlan40)#vlan 90

console(config-vlan90)#vlan 99

console(config-vlan99)#vlan 100

console(config-vlan100)#vlan 199

console(config-vlan199)#vlan 250

console(config-vlan250)#exit

console(config)#exit

console#show vlan

VLAN Name Ports Type


----- --------------- ------------- --------------
1 default Po1-128, Default
Gi1/0/1-19,
Gi1/0/22-24,
Te1/0/1-2
2 VLAN0002 Static
3 VLAN0003 Static
4 VLAN0004 Static
5 VLAN0005 Static
6 VLAN0006 Static
7 VLAN0007 Static
8 VLAN0008 Static
9 VLAN0009 Static
10 VLAN0010 Static
11 VLAN0011 Static
12 VLAN0012 Static
13 VLAN0013 Static
14 VLAN0014 Static
15 VLAN0015 Static
16 VLAN0016 Static
17 VLAN0017 Static
18 VLAN0018 Static
19 VLAN0019 Static
20 VLAN0020 Static
21 VLAN0021 Static
22 VLAN0022 Static
23 VLAN0023 Static
24 VLAN0024 Static
25 VLAN0025 Static
26 VLAN0026 Static
27 VLAN0027 Static
28 VLAN0028 Static
29 VLAN0029 Static
30 VLAN0030 Static
31 VLAN0031 Static
32 VLAN0032 Static
33 VLAN0033 Static
34 VLAN0034 Static
35 VLAN0035 Static
36 VLAN0036 Static
37 VLAN0037 Static
38 VLAN0038 Static
39 VLAN0039 Static
40 VLAN0040 Static
90 VLAN90 Gi1/0/20-21 Static
99 VLAN0099 Static
100 VLAN0100 Static
199 VLAN0199 Static
250 VLAN0250 Static

RSPAN Vlan
---------------------------------------------------------------------
None

console#
console#conf

console(config)#vlan 2

console(config-vlan2)#vlan association subnet 192.168.2.0 255.255.255.0

console(config-vlan2)#exit

console(config)#vlan 3

console(config-vlan3)#vlan association subnet 192.168.3.0 255.255.255.0

console(config-vlan3)#exit

console(config)#vlan 4

console(config-vlan4)#vlan association subnet 192.168.4.0 255.255.255.0

console(config-vlan4)#exit

console(config)#vlan 5

console(config-vlan5)#vlan association subnet 192.168.5.0 255.255.255.0

console(config-vlan5)#exit

console(config)#vlan 6

console(config-vlan6)#vlan association subnet 192.168.6.0 255.255.255.0

console(config-vlan6)#exit

console(config)#vlan 7

console(config-vlan7)#vlan association subnet 192.168.7.0 255.255.255.0

console(config-vlan7)#exit

console(config)#vlan 8

console(config-vlan8)#vlan association subnet 192.168.8.0 255.255.255.0

console(config-vlan8)#exit
console(config)#vlan 9

console(config-vlan9)#vlan association subnet 192.168.9.0 255.255.255.0

console(config-vlan9)#exit

console(config)#vlan 10

console(config-vlan10)#vlan association subnet 192.168.10.0 255.255.255.0

console(config-vlan10)#vlan 11

console(config-vlan11)#vlan association subnet 192.168.11.0 255.255.255.0

console(config-vlan11)#vlan 12

console(config-vlan12)#vlan association subnet 192.168.12.0 255.255.255.0

console(config-vlan12)#vlan 13

console(config-vlan13)#vlan association subnet 192.168.13.0.255.255.255.0


^
Invalid IP address. IP address should be in a.b.c.d format where range for a, b, c,
and d is 1-255.

console(config-vlan13)#vlan association subnet 192.168.13.0 255.255.255.0

console(config-vlan13)#vlan 14

console(config-vlan14)#vlan association subnet 192.168.14.0 255.255.255.0

console(config-vlan14)#vlan 15

console(config-vlan15)#vlan association subnet 192.168.15.0 255.255.255.0

console(config-vlan15)#vlan 16

console(config-vlan16)#vlan association subnet 192.168.16.0 255.255.255.0

console(config-vlan16)#vlan 17

console(config-vlan17)#vlan association subnet 192.168.17.0 255.255.255.0

console(config-vlan17)#vlan 18

console(config-vlan18)#vlan association subnet 192.168.18.0 255.255.255.0

console(config-vlan18)#vlan 19

console(config-vlan19)#vlan association subnet 192.168.19.0 255.255.255.0

console(config-vlan19)#vlan 20

console(config-vlan20)#vlan association subnet 192.168.20.0 255.255.255.0

console(config-vlan20)#exit

console(config)#exit
console#copy running-config startup-config

This operation may take few minutes.


Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Configuration Saved!
console#
console>enable

console#configure

console(config)#vlan 21

console(config-vlan21)#vlan association subnet 192.168.21.0 255.255.255.0

console(config-vlan21)#vlan 22

console(config-vlan22)#vlan association subnet 192.168.22.0 255.255.255.0

console(config-vlan22)#vlan 23

console(config-vlan23)#vlan association subnet 192.168.23.0 255.255.255.0

console(config-vlan23)#vlan 24

console(config-vlan24)#vlan association subnet 192.168.24.0 255.255.255.0

console(config-vlan24)#vlan 25

console(config-vlan25)#vlan association subnet 192.168.25.0

Command not found / Incomplete command. Use ? to list commands.

console(config-vlan25)#vlan association subnet 192.168.25.0 255.255.255.0

console(config-vlan25)#vlan 26

console(config-vlan26)#vlan association subnet 192.168.26.0 255.255.255.0

console(config-vlan26)#vlan 27

console(config-vlan27)#vlan association subnet 192.168.27.0 255.255.255.0

console(config-vlan27)#vlan 28

console(config-vlan28)#vlan association subnet 192.168.28.0 255.255.255.0

console(config-vlan28)#vlan 29

console(config-vlan29)#vlan association subnet 192.168.29.0 255.255.255.0

console(config-vlan29)#vln 30
^
% Invalid input detected at '^' marker.

console(config-vlan29)#vlan 30
console(config-vlan30)#vlan association subnet 192.168.30.0 255.255.255.0

console(config-vlan30)#vlan 31

console(config-vlan31)#vlan association subnet 192.168.31.0 255.255.255.0

console(config-vlan31)#vlan 32

console(config-vlan32)#vlan association subnet 192.168.32.0 255.255.255.0

console(config-vlan32)#vlan 33

console(config-vlan33)#vlan association subnet 192.168.33.0 255.255.255.0

console(config-vlan33)#vlan 34

console(config-vlan34)#vlan association subnet 192.168.34.0 255.255.255.0

console(config-vlan34)#vlan 36

console(config-vlan36)#vlan association subnet 192.168.35.0 255.255.255.0

console(config-vlan36)#vlan 37

console(config-vlan37)#vlan association subnet 192.168.37.0 255.255.255.0

console(config-vlan37)#vlan 38

console(config-vlan38)#vlan association subnet 192.168.38.0 255.255.255.0

console(config-vlan38)#vlan 39

console(config-vlan39)#vlan association subnet 192.168.39.0 255.255.255.0

console(config-vlan39)#vlan 40

console(config-vlan40)#vlan association subnet 192.168.40.0 255.255.255.0

console(config-vlan40)#vlan 90

console(config-vlan90)#vlan association subnet 192.168.90.0 255.255.255.0

console(config-vlan90)#vlan 99

console(config-vlan99)#vlan association subnet 192.168.99.0 255.255.255.0

console(config-vlan99)#vlan 100

console(config-vlan100)#vlan association subnet 192.168.100.0 255.255.255.0

console(config-vlan100)#vlan 199

console(config-vlan199)#vlan association subnet 192.168.199.0 255.255.255.0

console(config-vlan199)#vlan 250

console(config-vlan250)#vlan association subnet 192.168.250.0 255.255.255.0


console(config-vlan250)#exit

console(config)#exit

console#copy ?

<url> Downloads code/config/key/certificate using


tftp://<ipaddress|hostname>/<filepath>/<filename> |
ftp://<user>@<ipaddr|hostname>/<path>/<filename> |
scp://<user>@<ipaddr|hostname>/<path>/<filename> |
sftp://<user>@<ipaddr|hostname>/<path>/<filename> |
usb://<filepath>/<filename> | flash://<filename>}.
active Upload an active image file.
backup Upload a backup image file.
backup-config Uploads Backup Config file.
log-files Upload all startup and operational logs at once.
operational-log Upload operational log file.
running-config Copies system config file.
script Uploads configuration script file.
startup-config Uploads Startup Config file.
startup-log Upload startup log file.

console#copy running-config startup-config

This operation may take few minutes.


Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Configuration Saved!
console#
console#show vlan association subnet

IP Subnet IP Mask VLAN ID


---------------- ---------------- -------
192.168.2.0 255.255.255.0 2
192.168.3.0 255.255.255.0 3
192.168.4.0 255.255.255.0 4
192.168.5.0 255.255.255.0 5
192.168.6.0 255.255.255.0 6
192.168.7.0 255.255.255.0 7
192.168.8.0 255.255.255.0 8
192.168.9.0 255.255.255.0 9
192.168.10.0 255.255.255.0 10
192.168.11.0 255.255.255.0 11
192.168.12.0 255.255.255.0 12
192.168.13.0 255.255.255.0 13
192.168.14.0 255.255.255.0 14
192.168.15.0 255.255.255.0 15
192.168.16.0 255.255.255.0 16
192.168.17.0 255.255.255.0 17
192.168.18.0 255.255.255.0 18
192.168.19.0 255.255.255.0 19
192.168.20.0 255.255.255.0 20
192.168.21.0 255.255.255.0 21
192.168.22.0 255.255.255.0 22
192.168.23.0 255.255.255.0 23
192.168.24.0 255.255.255.0 24
192.168.25.0 255.255.255.0 25
192.168.26.0 255.255.255.0 26
192.168.27.0 255.255.255.0 27
192.168.28.0 255.255.255.0 28
192.168.29.0 255.255.255.0 29
192.168.30.0 255.255.255.0 30
192.168.31.0 255.255.255.0 31
192.168.32.0 255.255.255.0 32
192.168.33.0 255.255.255.0 33
192.168.34.0 255.255.255.0 34
192.168.35.0 255.255.255.0 36
192.168.37.0 255.255.255.0 37
192.168.38.0 255.255.255.0 38
192.168.39.0 255.255.255.0 39
192.168.40.0 255.255.255.0 40
192.168.90.0 255.255.255.0 90
192.168.99.0 255.255.255.0 99
192.168.100.0 255.255.255.0 100
192.168.199.0 255.255.255.0 199
192.168.250.0 255.255.255.0 250

console#
console#
console#
console#
console#conf

console(config)#?

aaa Perform RADIUS and IAS user administration.


admin-profile Create a new administrative profile.
arp Configure ARP cache controls and static entries.
asset-tag Specify an asset-tag for the device.
authentication Configure authentication manager parameters.
banner Define a login, exec, or MOTD banner.
boot Configure auto-install and image downgrade settings.
bootpdhcprelay Configure BOOTP/DHCP global settings.
captive-portal Enter Captive Portal mode.
class-map Enter class map mode or manage DiffServ class maps.
classofservice Configure Dot1p or DSCP class of service settings.
clock Manage the system clock and time zone settings.
cos-queue Configure CoS queue weights and drop precedence.
crypto Manage crypto certificates and keys.
dhcp Configure DHCP layer 2 relay parameters.
diffserv Enable DiffServ policy application.
do Run Privileged Exec mode commands.
dos-control Configure denial of service (DoS) settings.
dot1x Enable 802.1x, monitor mode or dynamic vlan
assignment.
enable Set the enable access method password.
exception Configure coredump functionality.
exit Exit from global config mode.
feature Enables VPC feature globally.
flowcontrol Configure 802.3x flow control.
gmrp Enable GMRP operation.
green-mode Configure EEE LPI history settings
gvrp Enable GVRP operation.
hostname Set the system host name.
interface Enter interface config mode.
ip Configure IP routing and host protocols.
ipv6 Configure IPv6 routing and host protocols.
iscsi Configure iSCSI settings or enable iSCSI monitoring.
isdp Enable or configure ISDP neighbor discovery settings.
lacp Configure IEEE 802.3 link aggregation settings.
line Configure CLI access methods.
link-dependency Configure a link dependency group.
lldp Configure LLDP global settings.
logging Manage on-system logging or configure syslog servers.
mac Configure MAC address-table behavior and entries.
macro Create a new global macro or execute an existing
macro.
mail-server Configure a mail server for email notifications.
management Configure Management Access Control Lists (MACLs).
monitor Configure packet monitoring parameters.
mvr Enable and configure multicast VLAN registration.
passwords Configure password management policies.
policy-map Create and manage DiffServ policies.
power-usage-history Configure power usage history settings.
protocol Configure the protocol based VLAN settings.
radius-server Configure RADIUS servers for 802.1x authentication.
random-detect Configure random early drop (WRED) settings.
rate-limit Configures CPU COS queue rate-limt.
rmon Configure RMON alarms and events.
route-map Configure a route map.
router Configure an OSPF or RIP router.
sdm Select an SDM policy. Requires reboot.
service Enable the DHCP or DHCPv6 service.
service-policy Configure DiffServ service.
sflow Configure sFlow pollers, samplers and destinations.
show Show configured settings and operational status.
slot Pre-configure slots with the expected card type.
snmp-server Configure or enable the SNMP service.
sntp Configure the simple network time protocol client.
spanning-tree Configure spanning tree mode and settings.
stack Perform stack management operations.
switch Renumber a stack unit.
switchport Configure auto-VoIP or protected mode parameters.
system To globally configure the maximum transmission unit
(MTU) for forwarded and system generated frames.
tacacs-server Configure TACACS+ servers.
time-range Configure time range parameters.
traffic-shape Configure the maximum transmission bandwidth limit.
udld Configure UDLD parameters.
username Add a new switch administrator.
vlan Add a VLAN or configure VLAN parameters.
voice Enable voice VLAN mode.
vpc Configures VPC parameters.

console(config)#
console(config)#
console(config)#
console(config)#
console(config)#
console(config)#interface ?

Gigabitethernet Enter a GigabitEthernet port.


Tengigabitethernet Enter a TenGigabitEthernet port.
Twentygigabitethernet Enter a TwentyOneGigabit fixed stacking port.
loopback Configuration of loopback interface.
out-of-band Specify the serviceport parameters / protocol.
port-channel Configure port-channel parameters.
range Range of interfaces.
tunnel Configure IPv6 tunnel.
vlan Configure an IEEE 802.1 VLAN.

console(config)#interface range 1/0/1-19


^
% Invalid input detected at '^' marker.

console(config)#interface range ?

Gigabitethernet Configure a range of GigabitEthernet interfaces.


Tengigabitethernet Configure a range of TenGigabitEthernet interfaces.
port-channel Port-channel range mode.
vlan Interface vlan range mode.

console(config)#interface range gigabitethernet 1/0/1-19

console(config-if)#switchport mode trunk

console(config-if)#switchport trunk allowed vlan


1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
,32,33,34,35,36,37,38,39,40,90,99,100,199,250

console(config-if)#exit

console(config)#exit

console#copy ?

<url> Downloads code/config/key/certificate using


tftp://<ipaddress|hostname>/<filepath>/<filename> |
ftp://<user>@<ipaddr|hostname>/<path>/<filename> |
scp://<user>@<ipaddr|hostname>/<path>/<filename> |
sftp://<user>@<ipaddr|hostname>/<path>/<filename> |
usb://<filepath>/<filename> | flash://<filename>}.
active Upload an active image file.
backup Upload a backup image file.
backup-config Uploads Backup Config file.
log-files Upload all startup and operational logs at once.
operational-log Upload operational log file.
running-config Copies system config file.
script Uploads configuration script file.
startup-config Uploads Startup Config file.
startup-log Upload startup log file.

console#copy running-config startup-config

This operation may take few minutes.


Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Configuration Saved!
console#conf

console(config)#?
aaa Perform RADIUS and IAS user administration.
admin-profile Create a new administrative profile.
arp Configure ARP cache controls and static entries.
asset-tag Specify an asset-tag for the device.
authentication Configure authentication manager parameters.
banner Define a login, exec, or MOTD banner.
boot Configure auto-install and image downgrade settings.
bootpdhcprelay Configure BOOTP/DHCP global settings.
captive-portal Enter Captive Portal mode.
class-map Enter class map mode or manage DiffServ class maps.
classofservice Configure Dot1p or DSCP class of service settings.
clock Manage the system clock and time zone settings.
cos-queue Configure CoS queue weights and drop precedence.
crypto Manage crypto certificates and keys.
dhcp Configure DHCP layer 2 relay parameters.
diffserv Enable DiffServ policy application.
do Run Privileged Exec mode commands.
dos-control Configure denial of service (DoS) settings.
dot1x Enable 802.1x, monitor mode or dynamic vlan
assignment.
enable Set the enable access method password.
exception Configure coredump functionality.
exit Exit from global config mode.
feature Enables VPC feature globally.
flowcontrol Configure 802.3x flow control.
gmrp Enable GMRP operation.
green-mode Configure EEE LPI history settings
gvrp Enable GVRP operation.
hostname Set the system host name.
interface Enter interface config mode.
ip Configure IP routing and host protocols.
ipv6 Configure IPv6 routing and host protocols.
iscsi Configure iSCSI settings or enable iSCSI monitoring.
isdp Enable or configure ISDP neighbor discovery settings.
lacp Configure IEEE 802.3 link aggregation settings.
line Configure CLI access methods.
link-dependency Configure a link dependency group.
lldp Configure LLDP global settings.
logging Manage on-system logging or configure syslog servers.
mac Configure MAC address-table behavior and entries.
macro Create a new global macro or execute an existing
macro.
mail-server Configure a mail server for email notifications.
management Configure Management Access Control Lists (MACLs).
monitor Configure packet monitoring parameters.
mvr Enable and configure multicast VLAN registration.
passwords Configure password management policies.
policy-map Create and manage DiffServ policies.
power-usage-history Configure power usage history settings.
protocol Configure the protocol based VLAN settings.
radius-server Configure RADIUS servers for 802.1x authentication.
random-detect Configure random early drop (WRED) settings.
rate-limit Configures CPU COS queue rate-limt.
rmon Configure RMON alarms and events.
route-map Configure a route map.
router Configure an OSPF or RIP router.
sdm Select an SDM policy. Requires reboot.
service Enable the DHCP or DHCPv6 service.
service-policy Configure DiffServ service.
sflow Configure sFlow pollers, samplers and destinations.
show Show configured settings and operational status.
slot Pre-configure slots with the expected card type.
snmp-server Configure or enable the SNMP service.
sntp Configure the simple network time protocol client.
spanning-tree Configure spanning tree mode and settings.
stack Perform stack management operations.
switch Renumber a stack unit.
switchport Configure auto-VoIP or protected mode parameters.
system To globally configure the maximum transmission unit
(MTU) for forwarded and system generated frames.
tacacs-server Configure TACACS+ servers.
time-range Configure time range parameters.
traffic-shape Configure the maximum transmission bandwidth limit.
udld Configure UDLD parameters.
username Add a new switch administrator.
vlan Add a VLAN or configure VLAN parameters.
voice Enable voice VLAN mode.
vpc Configures VPC parameters.

console(config)#
console(config)#
console(config)#
console(config)#
console(config)#
console(config)#
console(config)#switchport ?

dot1q Define QinQ tunneling TPIDs.


protected Configure switchport to protected mode.
voice Configure the Auto VoIP parameters.

console(config)#switchport voice ?

Detect Configure the Auto VoIP parameters for all ports.

console(config)#switchport voice

Command not found / Incomplete command. Use ? to list commands.

console(config)#switchport voice ?

Detect Configure the Auto VoIP parameters for all ports.

console(config)#switchport voice detect ?

auto Configure the Auto VoIP parameters for all ports.

console(config)#switchport voice detect

Command not found / Incomplete command. Use ? to list commands.

console(config)#
console>show ?

aaa Display IAS user and RADIUS server status.


arp Display Address Resolution Protocol (ARP) cache.
bootvar Display the active and standby firmware versions.
dot1x Display dot1x configuration and status.
gvrp Display GARP VLAN registration protocol status.
hosts Display default domain, name server and address cache.
interfaces Display interface information.
ip Display IP routing and host configuration and status.
ipv6 Display IPv6 routing and host configuration and
status.
line Display CLI access methods configuration and status.
mac Display MAC address table and access-list information.
monitor Display packet monitoring configuration and status.
radius Display RADIUS configuration information.
rmon Display RMON alarms, events, history or statistics.
slot Display slot pre-configuration and installed cards.
statistics Display RMON port or switch statistics.
supported Display supported switch and card types.
switch Display switch and stack management information.
system Display system environmental status.
udld Display UDLD parameters.
version Display system hardware and software status.
vrrp Display virtual router redundancy protocol status.

console>show

Command not found / Incomplete command. Use ? to list commands.

console>
console>enable

console#show voice

Command not found / Incomplete command. Use ? to list commands.

console#show voice ?

vlan Display the voice VLAN configuration.

console#show voice vlan

Administrative Mode............... Disable

console#con

Ambiguous command:con

console#configure

console(config)#voice ?

vlan Enable voice VLAN mode.

console(config)#voice

Command not found / Incomplete command. Use ? to list commands.

console(config)#voice vlan

console(config)#exit

console#show voice vlan


Administrative Mode............... Enable

console#copy running-config startup-config

This operation may take few minutes.


Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Configuration Saved!
console#
console#copy running-config startup-config

This operation may take few minutes.


Management interfaces will not be available during this time.

Are you sure you want to save? (y/n) y

Configuration Saved!
console#
console#

You might also like