Cisco Switch Grundkonfiguration: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| (9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 5: | Zeile 5: | ||
*c3750(config)# | *c3750(config)# | ||
=Enable Secret setzen= | =Enable Secret setzen= | ||
| − | *c3750(config)#enable secret | + | *c3750(config)#enable secret sysadm |
| + | ==Localer Admin einrichten== | ||
*c3750(config)#username admin privilege 15 secret sysadm | *c3750(config)#username admin privilege 15 secret sysadm | ||
| − | * | + | *c3750(config)#username xinux privilege 1 secret oimel |
| + | |||
=Passwort verschlüsselung unnötig wenn Funktion secret verfügbar ist= | =Passwort verschlüsselung unnötig wenn Funktion secret verfügbar ist= | ||
*c3750(config)#service password-encryption | *c3750(config)#service password-encryption | ||
| Zeile 64: | Zeile 66: | ||
12:38:52.137 UTC Thu Jan 28 2016 | 12:38:52.137 UTC Thu Jan 28 2016 | ||
| − | |||
| − | + | ||
=Line con 0 konfigurieren= | =Line con 0 konfigurieren= | ||
| + | *c3750(config)#line console 0 | ||
| + | *c3750(config-line)#password suxer | ||
| + | *c3750(config-line)#login | ||
| + | ==Synchrones Logging aktivieren== | ||
| + | *c3750(config-line)#logging synchronous | ||
| + | *c3750(config-line)#end | ||
==Passwort oder Username/Passwort-Abfrage== | ==Passwort oder Username/Passwort-Abfrage== | ||
| − | == | + | |
| + | =Lines VTY 0 15= | ||
| + | *c3750(config)#line vty 0 15 | ||
| + | *c3750(config-line)#login local | ||
| + | *c3750(config-line)#logging synchronous | ||
==Timeout-Werte anpassen== | ==Timeout-Werte anpassen== | ||
| − | = | + | *c3750(config-line)#exec-timeout 30 |
| + | *c3750(config-line)#end | ||
| + | =Konfiguration sichern= | ||
| + | ==Neu== | ||
| + | *c3750#copy running-config startup-config | ||
| + | Destination filename [startup-config]? | ||
| + | Building configuration... | ||
| + | [OK] | ||
| + | ==Alt== | ||
| + | *c3750#write memory | ||
| + | Building configuration... | ||
| + | [OK] | ||
| + | |||
| + | =Telnet Tests= | ||
| + | *thomas.will@cardassia ~ $ telnet 192.168.240.154 | ||
| + | Trying 192.168.240.154... | ||
| + | Connected to 192.168.240.154. | ||
| + | Escape character is '^]'. | ||
| + | |||
| + | User Access Verification | ||
| + | |||
| + | Username: admin | ||
| + | Password: | ||
| + | c3750# | ||
| + | c3750#exit | ||
| + | |||
| + | *thomas.will@cardassia ~ $ telnet 192.168.240.154 | ||
| + | Trying 192.168.240.154... | ||
| + | Connected to 192.168.240.154. | ||
| + | Escape character is '^]'. | ||
| + | |||
| + | User Access Verification | ||
| + | |||
| + | Username: xinux | ||
| + | Password: | ||
| + | c3750> | ||
| + | c3750>exit | ||
Aktuelle Version vom 28. Januar 2016, 13:01 Uhr
Gerätenamen festlegen
- Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
- Switch(config)#hostname c3750
- c3750(config)#
Enable Secret setzen
- c3750(config)#enable secret sysadm
Localer Admin einrichten
- c3750(config)#username admin privilege 15 secret sysadm
- c3750(config)#username xinux privilege 1 secret oimel
Passwort verschlüsselung unnötig wenn Funktion secret verfügbar ist
- c3750(config)#service password-encryption
Interface VLAN1 konfigurieren
- c3750(config)#interface vlan 1
- c3750(config-if)#ip address 192.168.240.154 255.255.248.0
- c3750(config-if)#no shutdown
- c3750(config-if)#do show ip int vlan1
Vlan1 is up, line protocol is up Internet address is 192.168.240.154/21 Broadcast address is 255.255.255.255 Address determined by setup command from host 192.168.240.200 MTU is 1500 bytes
Default Gateway einstellen
- c3750(config)#ip default-gateway 192.168.240.100
Konnectivitäts Test
- c3750#ping 8.8.8.8
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 17/20/25 ms
DNS-Lookup festlegen
- c3750#configure terminal
- c3750(config)#ip name-server 192.168.240.200
- c3750(config)#end
- c3750#ping www.heise.de
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 193.99.144.85, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 25/28/33 ms
oder DNS-Lookup abschalten
- c3750#configure terminal
- c3750(config)#no ip domain-lookup
Domainname festlegen
- c3750(config)#ip domain name xinux.org
- c3750(config)#do ping cardassia
Translating "cardassia"...domain server (192.168.240.200) [OK] Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.244.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/203/1007 ms
NTP-Server festlegen
- c3750#show clock
*00:22:38.744 UTC Mon Mar 1 199
- c3750(config)#ntp server pool.ntp.org
Translating "pool.ntp.org"...domain server (192.168.240.200) [OK]
- c3750#show clock
12:38:52.137 UTC Thu Jan 28 2016
Line con 0 konfigurieren
- c3750(config)#line console 0
- c3750(config-line)#password suxer
- c3750(config-line)#login
Synchrones Logging aktivieren
- c3750(config-line)#logging synchronous
- c3750(config-line)#end
Passwort oder Username/Passwort-Abfrage
Lines VTY 0 15
- c3750(config)#line vty 0 15
- c3750(config-line)#login local
- c3750(config-line)#logging synchronous
Timeout-Werte anpassen
- c3750(config-line)#exec-timeout 30
- c3750(config-line)#end
Konfiguration sichern
Neu
- c3750#copy running-config startup-config
Destination filename [startup-config]? Building configuration... [OK]
Alt
- c3750#write memory
Building configuration... [OK]
Telnet Tests
- thomas.will@cardassia ~ $ telnet 192.168.240.154
Trying 192.168.240.154... Connected to 192.168.240.154. Escape character is '^]'. User Access Verification Username: admin Password: c3750# c3750#exit
- thomas.will@cardassia ~ $ telnet 192.168.240.154
Trying 192.168.240.154... Connected to 192.168.240.154. Escape character is '^]'. User Access Verification Username: xinux Password: c3750> c3750>exit