# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://coffeetohack.gitbook.io/coffeetohack/cpt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
