Cisco Switch Grundkonfiguration: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 44: | Zeile 44: | ||
*c3750#configure terminal | *c3750#configure terminal | ||
*c3750(config)#no ip domain-lookup | *c3750(config)#no ip domain-lookup | ||
| + | =Domainname festlegen= | ||
| + | *c3750(config)#ip domain name xinux.org | ||
| + | *c3750(config)#do ping cardassia | ||
| + | <pre> | ||
| + | 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 | ||
| + | </pre> | ||
=NTP-Server festlegen= | =NTP-Server festlegen= | ||
Version vom 28. Januar 2016, 12:42 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 suxer
- c3750(config)#username admin privilege 15 secret sysadm
- c750(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