|
发表于 2003-2-11 10:17:51
|
显示全部楼层
华为路由器基本配置
2、setup配置方式:
1)建立本地配置环境。
2)进入Setup配置方式.如果路由器第一次上电,自动执行Setup命令,以交互方式提示用户配置路由器最初启动所必需的参数,终端屏幕上将显示如下信息:
--- System Configuration Dialog ---
At any point you may enter a question mark '?' for help.
Default settings are in square brackets '[]', if you do
not change the default settings, you may input enter.
Continue with configuration dialog? [yes]:y
若路由器自检结束后,进入了普通用户模式,可在特权用户模式下直接键入setup命令进入到setup配置方式.
3)选择使用此交互方式配置路由器. “[]”里面为系统缺省配置,如果不想改变,直接按“Enter”,如果按“N”将退出Setup方式。
4) 显示接口状态
Firstly, would you like to see the current interface summary? [yes]:y
Interface IP-Address OK? Status Protocol
Ethernet1/0/0 129.102.100.141 yes down up
Serial0/0/0 yes up down
Serial0/0/1 yes up down
Serial0/0/2 yes up down
5) 配置全局参数
Configuring global parameters:
Enter host name [Quidway]: ←配置路由器域名
Enter enable password []: ←配置特权用户口令
Configure SNMP Network Management? [YES]: ←配置网管
Community string []:public
Configure IP? [yes]: ←配置IP
6) 接口配置
Configuring interface Ethernet1/0/0: ←配置以太网口
Is this interface in use? [YES]:
Configure IP on this interface? [YES]: ←配置IP地址和掩码
IP address for this interface [129.102.100.141]:
Netmask [255.255.0.0]:
Class B network is 129.102.0.0.
IP address is 129.102.100.141, netmask is 255.255.0.0.
Configuring interface Serial0/0/0: ←配置串口0
Is this interface in use? [YES]:
Configure IP on this interface? [NO]:
Configuring interface Serial0/0/1: ←配置串口1
Is this interface in use? [YES]:
Configure IP on this interface? [NO]:
Configuring interface Serial0/0/2: ←配置串口2
Is this interface in use? [YES]:
Configure IP on this interface? [NO]:
7) 显示配置结果
The following configuration was created:
hostname Quidway
enable password
snmp-server community ro
interface Ethernet1/0/0
no shutdown
1ip address 129.102.100.141 255.255.0.0
interface Serial0/0/0
no shutdown
no ip address
interface Serial0/0/1
no shutdown
no ip address
interface Serial0/0/2
no shutdown
no ip address
End
8) 确认配置
Use this configuration? [yes/no]: ←确认配置
Now writing the configuration to flash memory. ←保存配置
Write the running config to flash memory successfully.
Please reboot the router.
3、命令配置方式:
1)建立本地配置环境并启动路由器。
2)配置全局参数:
在全局配置模式用hostname命令配置路由器域名;
在全局配置模式用Enable password命令配置特权用户口令。
3) 在接口配置模式用Ip address命令配置接中的IP地址和掩码。
4) 在接口配置模式用Ip address命令配置接中的在特权配置模式用show running-config命令显示当前运行配置。
5) 在特权用户模式用write命令保存当前运行配置。 |
|