Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cisco switch

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

User mode, privileged mode, global mode

Switch > user mode enable

Switch# privileged mode configure terminal

Switch (config) #

Switch (config) # no ip domain-lookup # turns off domain name lookup

Switch (config-line) # logging synchronous # configure mouse options

Switch (config) # hostname ccna # configure hostname

Ccna (config) # no hostname ccna # cancel hostname

Line console 0

Exec-timeout 0 0 # console port configuration exec-timeout 5 30 5 minutes 30 s 0 0 does not configure timeout

Go back to the upper level, exit.

Back to the original use of end

# user password login in security configuration user mode

Global mode:

Line console 0

Password 123456

Login

Launch and save the password for the next login. This password is the password for entering user mode.

Configure the password for privileged mode:

Configure enable secret 123456 # encrypted passwords in global mode

# configure telnet password

Switch (config) # line vty 0 3 # can log in by up to four people

Switch (config-line) # pas

Switch (config-line) # password 123456

Switch (config-line) # login

Switch (config-line) #

# Save the configuration that has been booted

Switch#copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

Switch#

Switch#w # wr or w can try

Building configuration...

[OK]

Switch#

# reload means to restart the system in privileged mode

Switch#erase startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

% SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

Switch#

# configure the management port of the switch

Interface vlan 1

Switch (config-if) # ip address 192.168.1.1 255.255.255.0

Switch (config-if) # no shu

Switch (config-if) # no shutdown

Switch (config-if) #

% LINK-5-CHANGED: Interface Vlan1, changed state to up

Switch (config-if) #

# # configuring default Gateway of switch

Switch (config) # ip default-gateway 192.168.1.254

Switch (config) #

No ip domain-lookup # disables domain name lookup

Line console 0

Switch (config-line) # logging synchronous

Switch (config-line) # exec-timeout 0 0

Plus security settings

# check the status of the port

Switch#show ip interface brief

Interface IP-Address OK? Method Status Protocol

FastEthernet0/1 unassigned YES manual down down

FastEthernet0/2 unassigned YES manual down down

FastEthernet0/3 unassigned YES manual down down

FastEthernet0/4 unassigned YES manual down down

# sorting out ideas

1. Configure Hostnam

Hostname

two。 Clock synchronization

Clock timezone GMT 8

3. Configure the motd of the router

Banner motd # Hello, This is a LAB of ccietea.com#

4. Configure console port

R1 (config) # line console 0! Enter the console port

R1 (config-line) # no exec-time! Configure console to never time out, or you can use the command exec-time 0 0

R1 (config-line) # logging synchronous! Configure the log synchronization function of console so that the log information that pops up in the command line interface does not interrupt the configuration command that the user is entering

R1 (config-line) # exit

R1 (config) # no ip domain lookup! Turn off domain name resolution to prevent you from falling into the process of domain name resolution by typing the wrong command in privileged mode

5. Password configuration first console port password privileged password

Global mode:

Line console 0

Password 123456

Login

Launch and save the password for the next login. This password is the password for entering user mode.

Configure the password for privileged mode:

Configure enable secret 123456 # encrypted passwords in global mode

6. Configure telnet password

R1 (config) # line vty 0 4! Enter VTY 0-4 line

R1 (config-line) # password ccietea! Set the VTY line password, that is, the password that the user enters when logging in to the router through telnet

R1 (config-line) # login! Password authentication is required for Telnet to log in to this device

R1 (config-line) # exit

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report