In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
There are three main ways to configure a router: one is to connect the computer directly through the control line to the control port.
One way is to configure the router remotely via a network cable.
The other is to log on to the server.
Hyperterminal mode: This mode is mainly used for the initial configuration of routers, routers do not need IP addresses. The basic method is: the computer is connected to the Console port of the router through COM1/COM2 port, and the "super terminal" program is enabled on the computer. Set "baud rate: 9600, data bit: 8, stop bit: 1, parity check: none, check: none".
Telnet: This configuration requires that the router must be configured with an IP address. The basic method is that the computer is connected to the Ethernet interface of the router through the network card, and the IP address of the Ethernet interface of the computer and the router must be on the same network segment. commonly used
Other ways: AUX port connected to MODEM, through telephone line and remote computer running terminal simulation software; through Ethernet TFTP server; through Ethernet SNMP network management workstation.
2. Working mode of router
In the command line state, there are mainly the following working modes:
1 General user mode. Mainly used to view the basic information of the router, can only execute a few commands, can not configure the router. The prompt is Router>; the entry method is Telnet or Console
Enable (privileged) mode. It is mainly used to view, test and check routers or networks. It cannot configure interfaces and routing protocols. The prompt is Router# ; the entry method is Router>enable.
③ Global configuration mode. It is mainly used to configure global parameters of routers. The prompt is Router(config)# ; the entry is Router#config ter.
4. Sub-modes under global mode. Including: interfaces, routing protocols, lines, etc. The entry method and prompt are as follows:
Router(config)#ineterface e0 //Enter interface mode
Router(config-if)# //interface mode prompt
Router(config)#rip //Enter routing protocol mode
Router(config-router)# //Routing protocol mode
Router(config)#line con 0 //Enter line mode
Router(config-line)# //line mode prompt
3. Common commands
①"?Use of "Tab"
Type "? "Get help from the system;"Tab"supplement command.
② Change command status
Mission orders
Enter privileged command state enable
Enter global settings status config terminal
Exit (Ctrl+C to root)
Enter port setting status interface type slot/number
Enter the line setting status line type slot/number
③ Network command
task command
Log in to the remote host telnet hostname| IP address
Network detection ping hostname| IP address
Traceroute hostname| IP address
④ Basic setting commands
task command
global settings config terminal
Set access user and password username password
Set privileged password enable secret password
Set router name hostname
ip route destination subnet-mask next-hop
Start IP routing
port settings interface type slot/number
Set IP address ip address subnet-mask
activate/close port no shutdown/shutdown
physical line setting line type number
Start login process login [local| tacacs server]
Set login password password password
Router # config ter //Enter global configuration mode
Router(config)# hostname cisco2621//named "cisco2621"
(1) Enable password (privileged user)
Router(config)#enable password xlx1618 //Configure enable password as "xlx1618", displayed in plain text
Router(config)#enable secret xu1618 //Configure enable encryption password is "xu1618", cipher text display
(2) Console mouth password
Router(config)#line console 0 //Enter console port
Router (config-line)# password cisco //configure the console port password as "cisco"
Router(config-line) # login //password check
(4) Telnet password
If you want to use Telnet to log on to routers in your network for administrative and configuration purposes, you must configure the Telnet password. Routers typically support up to 16 (5) Telnet users. Line vty 0 15 (0 4) Password protection used when establishing telnet session access.
1) 16 Telnet users have the same password.
Router (config)#line vty 0 15 //Enter vty 0 15
Router(config-line) # password cisco //Password is "cisco"
Router(config-line) # login //password check
(1) Basic configuration of Ethernet
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add 20.0.0.1 255.0.0.0
Closing and opening of interfaces
Router (config-if)#shutdown //shutdown interface
Router (config-if)#no shutdown //open interface
Remote login instance:
Router>enable
Router # config ter //Enter global configuration mode
Router(config)# hostname cisco1721 //Name it "cisco1721"
cisco1721 (config)#enable password cisco //configure enable password to be "cisco," plain text
cisco1721 (config)#enable secret cisco //configure enable encryption password is "cisco", cipher text display
cisco1721r(config)#line console 0 //Enter console port
cisco1721 (config-line)# password cisco //configure the console port password as "cisco"
Router(config-line) # login //password check
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add 2192.168.01 255.255.255.0 IP address
Router (config-if)#shutdown //shutdown interface
Router (config-if)#no shutdown //open interface
//Telnet password: If you want to use Telnet to log on to routers in your network for administrative and configuration purposes, you must configure the Telnet password. Routers typically support up to 16 (5) Telnet users. Line vty 0 15 (0 4) Password protection used when establishing telnet session access.
Router (config)#line vty 0 15 //Enter vty 0 15
Router(config-line) # password cisco //Password is "cisco"
Router(config-line) # login //password check
Remote login operation 2:
Through TFTP servers over Ethernet; through SNMP network management workstations over Ethernet. Board the router and configure it.
Router>enable
Router # config ter //Enter global configuration mode
Router(config)# hostname ruijie
ruijie (config)#enable secret ruijie //configure enable encryption password as "ruijie", cipher text display
ruijie(config)#interface fastEthernet 0/0
ruijie(config-if)#ip add 192.168.0.1 255.255.255.0
ruijie (config-if)#no shutdown //open interface
ruijie(config)#line vty 0 15 //Enter vty 0 15
ruijie(config-line) # password ruijie
ruijie(config-line) # login //password check
exit router
Telnet mode. This configuration requires that the router be configured with an IP address. The basic method is that the computer is connected to the Ethernet interface of the router through the network card, and the IP address of the Ethernet interface of the computer and the router must be on the same network segment. commonly used
Router>telnet 192.168.0.1 255.255.255.0
Router>password
Router>
Then it is to carry out routing configuration as above.
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.