# Cisco Packet Tracer

**Configure Hostname**

```
#In global config mode
hostname <new_name>
```

**Configure User**

```
#In global config mode
username <new_username> password <new_password>
```

**Configure Domain Name**

```
#In global config mode
ip domain-name <DNS_Domain>
```

**Save config to non-volatile memory**

```
#In global config mode
copy running-config startup-config
```

**Configure Banner**

```
#In global config mode
banner motd # <Enter>
<Your message of the day> <Enter>
#
```

**Set password to Privileged mode**

```
#Unencrypted
#In global config mode
enable password <new_password>

#Encrypted
#In global config mode
enable secret <new_password>
```

**Console Authentication**

```
#From global config mode
line con 0
password <new_password>
login
service password-encryption
```

**Synchronous Logging**

```
#From global config mode
line con 0
logging synchronous
```

**Configure Remote Administration**

```
#From global config mode
interface vlan1
ip addr <new_IP> <subnet mask>
no shut
```

**Configure other interfaces**

```
#From global config mode
interface fa1/0
ip add <new_IP> <subnet mask>
no shut
```

**Configure Remote Authentication**

```
#From global config mode
line vty 0 15
password <new_password>
login
```

**Configure Default Gateway**

```
#Feom global config mode
ip default-gateway <default_gateway IP>
```

**Configure SSH Access**

```
#From global config mode
crypto key generate rsa
1024 (in prompt)
ip ssh ver 2
```

**Configure VTY to allow both telnet and ssh**

```
#From global config mode
line vty 0 15
transport input all
password <new_password>
```
