In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Privileged mode: enable (en)
Global configuration mode: config terminal (conf t)
Interface mode: interface fastethernet module number / port number (int f0and1)
Enter multiple interfaces at the same time, int range f0Comp0-4.
Terminating domain name resolution: ctrl+shift+6
Exit to privileged mode: crtl+z end
Exit to the upper level: exit
Ctrl+A cursor to the command line start position
Ctrl+E cursor to end of command line
Command in privileged mode
Show version displays system ios name and version information
View current configuration information: show running-config (sh run)
Configuration information viewed to save: show startup-config (shstar)
Save current configuration information: copy running-config startup-config (copy run star) = write
Delete saved configuration information: erase nvram erasestartup-config
Tracert 192.168.1.1 View the process to 192.168.1.1
Restart: reload
View vlan:show vlan brief
Commands in global mode:
Host xx modified the hostname to xx
Restore interface to the default configuration: default interface f0lap1
Configure duplex mode: deplex [full | half | auto]
Configure the interface rate: speed [10 | 100 | 100]
Never time out:
Line con 0
Exec-timeout 0 0
Information synchronization:
Line con 0
Logging synchronous (logg syn)
Disable DNS query: no ip domain-lookup
Switch:
View the mac address table: show mac-address-table
View f0can1 information (including duplex mode and rate): show int f0pic1
Enable routing on layer 3 switches: ip routing
View interface mode status: show interface interface-id switchport
Create a vlan:
1.vlan database
Vlan vlan-id [name vlan-name]
Exit
2.conf t
Vlan vlan-id
Name vlan-name
Exit
Assign port f0amp1 to vlan 2:
Conf t
Int f0/1
Switchport mode access
Switchport access vlan 2
Exit
Configure the switch virtual interface with ip:
Int vlan 1
Ip add 192.168.1.1 255.255.255.0
No sh
Configure the default gateway: ip default-gateway 192.168.1.254
Configure the switch console port password:
Global mode:
Line console 0
Password cisco
Login
Configure the privileged mode password:
In global mode:
Enable password cisco (plaintext) / enablesecret cisco (ciphertext)
Encrypted plaintext password: service password-encryption
Configure vty password
Line vty 0 4
Password cisco
Login
With the vty password and enable password set, the switch can be managed remotely through telnet. When remotely managing switches with different network segments, the switch needs to be configured with a default gateway
Trunk configuration:
Int f0/1
Switchport trunk encapsulation dot1q
Switchport mode trunk
Prohibit trunk from transmitting data from a certain vlan. Delete this vlan: switchport trunk allowed vlan remove vlan-id
To allow trunk to transfer data from a vlan, add this vlan: switchport trunk allowed vlan add vlan-id
Configure the Ethernet channel:
Interface range f0ax 1-2
Channel-group 1 mode on
View Ethernet channel configuration: show etherchannel 1 summary
VTP configuration:
Create a VTP domain: Switch (config) # vtp domain domain-name
Configure the vtp mode of the switch: Switch (config) # vtp mode {server | client | transparent}
Configure vtp password: Switch (config) # vtp password password
Configure vtp pruning: Switch (config) # vtp pruning
Configure vtp version: Switch (config) # vtp version 2 (running version 1 by default)
View vtp configuration information: Switch# show vtp status
View the vtp password: Switch# show vtp password
Switch password recovery:
1. Turn on the computer and press the mode key
two。 Initialize flash: flash_init
3. Change config.text to config.old
Rename flash:config.text flash:config.old
4. Restart: boot
5. Change the configuration file name back to
Rename flash:config.old flash:config.text
6. Load the configuration file manually
Copy flash:config.text system:running-config
7. View configuration and modify
8. Aving: wr
Router:
View the arp cache table: show arp
Clear arp cache table: clear arp-cache
View all interfaces ip: sh ip int brief
View the routing table: show ip route (c-directly connected routes, s-static routes, slots-default routes)
Configure static route: ip route destination segment subnet mask address (interface address of the next-hop router through which the destination network is reached)
Configure the default route: ip route 0.0.0.0 0.0.0.0 address (next hop address)
No ip routing: turn off the router routing function and simulate the switch
Configure ip:
Int f0/0
Ip add 10.0.0.10 255.255.255.0
No shut down
Configure router-on-a-stick: you need to configure the encapsulation structure of the subinterface, vlan and ip
Int f0/0.1
Encapsulatation dot1q 10 (vlan-id)
Ip add 10.0.0.1 255.255.255.0
Int f0/0.2
...
Configure DHCP:
Define ip address pool: Router (config) # ip dhcp pool pool-name
Dynamically assign ip address range: Router (dhcp-config) # network segment mask
Set the gateway address: Router (dhcp-config) # default-router gateway address
Configure the DNS address for the client: Router (dhcp-config) # dns-server dns-ip
Set address lease: Router (dhcp-config) # lease days
Reserved statically assigned ip address: Router (dhcp-config) # ip dhcp excluded-address low-address [high-address]
Router password recovery:
1. Interrupt boot: ctrl+break
two。 Modify the value of the register: confreg0x2142
3. Restart: reset
4. Manually load the configuration file: copy startup-confg running-config
5. View configuration and modify
6. Value of the recovery register: config-register 0x2102
7. Save configuration: copy run star
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.