# Configuring Hostname

You can set the hostname using the below command:

```
pbnoscli# configure terminal 
pbnoscli(config)# hostname Switch-1
Switch-1(config)#
```

{% hint style="info" %}
save config after changing hostname using 'save' command
{% endhint %}

```
Switch-1# show running-config 
configure terminal
hostname Switch-1
!
Switch-1# 
```
