查看当前的配置
' P7 l/ |/ x4 _, Z* y3 b! c5 A display current-configuration
+ p3 p, F/ Y! R/ q6 |0 l; | 进入到系统配置状态(相当于CISCO设备的EN命令)
% V9 L* H1 _: Z) R( Z sys
, f$ V6 I3 r7 {$ k, U- W8 ^ System View: return to User View with Ctrl+Z.
, m( E! e( [) }6 g# M% ?6 H [huawei]
( m* \$ a! N' r8 L& A9 F' I [quidway]sysname huawei9 v: H5 Y1 T' _" ~9 ?- p' s1 D
[huawei]
# C9 u4 Q" ^' Y; w9 a 保存配置
5 n2 U( ^! j' ?8 o [huawei]sxdye
+ T9 b* {: i' A* ~( Z& v. N The configuration will be written to the device. Are you sure?[Y/N]y Please input the file name(*.cfg)[flash:/config.cfg]:config0821.cfg Now sxdying current configuration to the device. Sxdying configuration flash:/config0821.cfg. Please wait... ...... Current configuration has been sxdyed to the device successfully.再次保存,就直接保存到之前起的文件名中。
: l- y. ?( X# u, N' z$ M sxdye5 ~' h- u, `7 L; i
The configuration will be written to the device. Are you sure?[Y/N]y Now sxdying current configuration to the device. Sxdying configuration flash:/config0821.cfg. Please wait... ....... Current configuration has been sxdyed to the device successfully.
# C# E# b1 f$ `0 N) R 配置以太网网口
) u# H- }( Y7 G2 u v5 m [huawei]interface Ethernet 0/0# {* Q; G* R) G( |
[huawei-Ethernet0/0]ip addre
2 l* I& Z8 T+ ~ [huawei-Ethernet0/0]ip address 172.16.5.249 255.255.255.0
6 v% Z% A# j) t. k. V" S: u8 { [huawei-Ethernet0/0]quit, d$ o6 b8 ?& y* B
* m' G' T: E# T$ {: L( I9 b [huawei] (如用ctrl+z 就退回到 状态下了。) |