Tue, December 16, 2025 · 1 min read

Setting hostname on a switch

Setting hostname on a switch

1. Adding IOL image in eve-ng

Login into eve-ng UI create a node, choose cisco -> IOL -> L2 switch

2. Connection options: console, html5

You have option to connect from telnet or html5 console. On the login page if you have chosen “native console” you can access devices using telnet, for which you also need to install eve-ng client package.

3. Access Device

When working from a non-personal device due to restrictions we cannot install eve-ng client addons, for which html5 method of accessing devices from browser is convenient.

When we access the devices from html5 console there is a lot of console messages that clutter the screen. Apply these settings to remove them:

- Remove banners
no banner login
no banner exec
no banner motd

- Disable dns lookup when we type unknown commands
no ip domain-lookup
ip domain-list rootlog.in

- save the changes
write mem

4. Setting hostname

Hostname can be set with “hostname” command:

en
conf t
hostname SW1
exit
wr mem