1 - Nome
1 2 3 4 5 6 7 8 9 10 11 |
Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SW01-CISCO SW01-CISCO(config)#end %SYS-5-CONFIG_I: Configured from console by console SW01-CISCO#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] |
2 - Senhas de acesso
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
SW01-CISCO>enable SW01-CISCO#configure terminal SW01-CISCO(config)#enable secret 123456 SW01-CISCO(config)#line console 0 SW01-CISCO(config-line)#password 123456 SW01-CISCO(config-line)#login SW01-CISCO(config-line)#exit SW01-CISCO(config)#line vty 0 15 SW01-CISCO(config-line)#password 123456 SW01-CISCO(config-line)#end SW01-CISCO#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] |
3 - Definir endereço ip/gw/dns de gerenciamento
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
SW01-CISCO>enable SW01-CISCO#configure terminal SW01-CISCO(config)#interface vlan 1 SW01-CISCO(config-if)#ip address 10.10.10.100 255.255.255.0 SW01-CISCO(config-if)#no shutdown SW01-CISCO(config-if)#exit SW01-CISCO(config)#ip default-gateway 10.10.10.254 SW01-CISCO(config)#ip name-server 10.10.10.254 SW01-CISCO(config)#end SW01-CISCO#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] SW01-CISCO#show running-config | incl default-gateway ip default-gateway 10.10.10.254 SW01-CISCO#show ip interface vlan 1 | incl Inter Internet address is 10.10.10.100/24 SW01-CISCO#show running-config | incl name-server ip name-server 10.10.10.254 |