The routers are connected Switch
in much the same way as
Five Ways to Connect a Router
The two are physical connection
1. Console
The port is connected with a specific console
line ( commonly used for debugging )
com
Connect to a portusb
on a computer via an adapter
2. AUX
Interface MODEM
( 调制解调
), connect with terminal or emulation terminal through telephone line
Three are network connection
3. Through the TFTP
server;
4. Through the TELNET
program;
5. Through the SNMP
( network protocol ) network management workstation .
The initial setting of the router must be done in the first way
The hardware settings pc
of the terminal at this time are as follows:terminal
parameter | value |
---|---|
baudrate()Bits Per Second |
9600 |
data bitsData Bits |
8 |
Parity parity check (one of the simplest data error detection methods) |
without |
stop bitStop Bits |
1 |
flow controlFlow Control |
without |
Click Enter
If the page is as above, it means successful entry
Switch
Similar to , the router's status display is almost the same
command status
condition | permission |
---|---|
router> User command status |
In this state, you can view the connection status of the router, access other networks and hosts, but cannot view and change the settings of the router. |
router# Privileged Command Status |
Enter at the router> prompt, you enable can execute all user commands in this state, and you can also see and change the settings of the router . |
router(config)# global setting state, |
Type at the router# prompt configure terminal , in this state you can set the global parameters of the router . |
router(config-if)# , router(config-line)# , router(config-router)# … 等等 |
The router is in a local setting state , in which a certain parameter of the router局部 can be set . |
> start boot( RXBOOT ) state |
60 Press it within seconds after booting ctrl-break to enter this state. In this state, the router cannot perform normal functions and can only perform software upgrades and manual guidance . |
设置对话状态 - This is the state automatically entered when a new router (or after clearing the configuration ) is powered on |
SETUP This state can also be entered by using a command in the privileged command state , and the router can be set through dialogue . |
icon
bootstrap status icon
Set the dialog dialog
state icon
Basic settings during dialog
Using the setting dialogue process can avoid the tediousness of manually inputting commands, but it cannot completely replace manual setting , and some special settings must be completed by manual input.
- The general dialogue flow is as follows:
-
Display prompt information
Global parameter setting
Interface parameter setting
Display result
Show prompt information
After entering the setup dialog, the router will first display some prompts:
You can type anywhere in the setting dialog to
?
get the help of the system.
Pressctrl-c
to exit the setting process. The
default setting will be displayed in and[]
prompt that the dialog setting can only meet the basic connection, and other functions must be set in the system.
Global parameter settings:
1. Set the router name:
2. Set the cipher text (secret) to enter the privileged state, the cipher text will not be displayed in plain text after setting:
3. Set the password for entering the privileged state. This password only works when there is no cipher text, and will be displayed in plain text after setting:
4. Set the password for virtual terminal access:
The following are 路由器
exclusive (the switch does not )
5. Ask if you want to set up the router to support network protocols:
SNMP Network Management? [yes]
- Simple Network Management Protocol
DECnet? [no]
AppleTalk? [no]
IPX? [no]
IP? [yes]
IGRP routing? [yes]
RIP routing? [no]
6. If the dial-up , the system will also set the parameters of the asynchronous port: ( Async lines
)
1) Set the maximum speed of the line:
Async line speed [9600]
2) Whether to use hardware flow control:
HW flow control
3) Whether to setmodem
:
modem
4) Whether to use the defaultmodem
command:
default chat s cript? [yes]
5) Whether to set the parameters of the asynchronous portPPP
:
Dial-in IP SLIP/PPP access? [no]
6) Whether to use dynamic IP address:
Dynamic IP addresses? [yes]
7 ) Whether to use the default IP address:
Default IP addresses? [no]
8) Whether to use TCP header compression:
TCP Header Compression? [yes]
9) Whether to update the routing table on the asynchronous port:
routing updates on async links? [no]
10) Whether to set other protocols on the asynchronous port.
Interface parameter settings
specified interface
1) Set the IP address of the interface:
2) Set the IP subnet mask of the interface:
After setting the parameters of all interfaces, the system will display the results of the entire setting dialog process:
Note:
The result enable secret
is displayed in the back and the content of the setting is displayed in the back.MD5
enable password
After the display is over, you will be asked whether to save:
If saved, the system will store the result of the setting in the router NVRAM
and
then end the setting dialogue process, so that the router starts to work normally.