Configuration file content and format
The configuration file is a text file in the following format:
Save in command format.
To save space, only the default values of non-default constants and configuration parameters are saved. For details, see the subsequent sections ).
Commands are organized in the command mode as the basic framework. commands in the same command mode are organized together to form a section. The sections and sections are usually separated by blank lines or comment lines! Starts with a comment line ).
The sequence of the section is generally global configuration, physical interface configuration, logical interface configuration, and Route Protocol configuration.
End with end.
The configuration file of the Quidway (R) R2501 router is as follows:
!
loghost 129.9.191.240
firewall enable
snmp-server contact Mr.Wang-Tel:3306
snmp-server traps enable
snmp-server host 129.102.149.23
snmp-server location telephone-closet,3rd-flood
host liuzhenhua 129.102.157.55
host server 129.102.157.55
!
interface Ethernet0
ip address 129.102.100.141 255.255.0.0
!
interface Serial0
baudrate 9600
encapsulation ppp
ppp chap host quidway
ppp pap sent-username quidway password quidway
!
interface Serial1
encapsulation ppp
ppp chap host quidway
ppp pap sent-username quidway password quidway
!
interface Serial2
flowcontrol normal
encapsulation ppp
ppp chap host quidway
ppp pap sent-username quidway password quidway
!
end |
2. Load the configuration file
The configuration file can be edited offline according to the specified format, and then loaded to the router using the download config command. This command can only be executed in the terminal simulation program. If it is executed in Telnet, the following message is displayed: