Setting hostname on a switch
Login into eve-ng UI create a node, choose cisco -> IOL -> L2 switch
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.
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
Hostname can be set with “hostname” command:
en
conf t
hostname SW1
exit
wr mem
Related Articles
Setting hostname on a switch
Lab guide for setting hostname on a Cisco switch in EVE-NG with IOL images.
Configuring console log messages
How to configure and manage console log messages on network devices.
Installing eve-ng on ubuntu 24.04 LTS
Step-by-step guide to installing EVE-NG on Ubuntu 24.04 LTS bare metal server for running network labs.