Switch>enable
Switch#configure terminal
Switch(config)#hostname switchPedrito
switchPedrito(config)#
switchPedrito(config)#interface vlan 1
switchPedrito(config-if)#ip address 192.168.1.253 255.255.255.0 ?
secondary Make this IP address a secondary addres
<cr>
switchPedrito(config-if)#ip address 192.168.1.253 255.255.255.0
switchPedrito(config-if)#end
switchPedrito(config)#
switchPedrito#show interfaces vlan 1
Vlan1 is administratively down, line protocol is down
Hardware is EtherSVI, address is 001d.e6e1.8e40 (bia 001d.e6e1.8e40)
Internet address is 192.168.1.253/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:30, output hang never
Last clearing of «show interface» counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
304702 packets input, 25120045 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
139614 packets output, 138045113 bytes, 0 underruns
0 output errors, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
By default all interfaces are administratively down
its means that the interface is shutdown, so you have to negate
switchPedrito#conf t
switchPedrito(config)#int vlan 1
switchPedrito(config-if)#no shutdown
00:20:56: %LINK-3–UPDOWN: Interface Vlan1, changed state to up
switchPedrito(config-if)#exit
Default Gateway ( It has to be Global Configuration )
switchPedrito(config)#ip default-gateway 192.168.1.254
Everything is in RAM so you have to save it. Its in running-config
switchPedrito#show running-config
#show running-config
Building configuration…
Current configuration : 2838 bytes
!
File Attachment: show running-config (2 KB)
!!!!!!!IMPORTANT TO SAVE CONFIGURATION TO SOMETHING MORE STABLE TO START-CONFIG!!!!!!!!
switchPedrito#copy running-config startup-config