<P ><FONT face="Times New Roman">erase </FONT>擦除路由器里面的所有内容</P>" A4 u, S3 X6 _6 o% @% }) d
<P ><FONT face="Times New Roman">flash (</FONT>一般不用,会删掉路由器的整个系统<FONT face="Times New Roman">)</FONT></P>
, x8 x- s6 Y$ E<P ><FONT face="Times New Roman">erase startup-config </FONT>清除<FONT face="Times New Roman">NVRAM</FONT>中的配置文件</P>
2 H, c0 `8 E! U, q9 r$ x/ G C<P ><FONT face="Times New Roman">configure terminal </FONT>进入全局配置模式</P>
! {8 |; B/ [3 Z+ r5 v1 N* _<P ><FONT face="Times New Roman">hostname star1 </FONT>设置名称</P>- c B2 @ u5 f; D) }) j) v! s
<P ><FONT face="Times New Roman">exit </FONT>逐层退出</P>. |4 ~' F" o4 N& E
<P ><FONT face="Times New Roman">end </FONT>直接退出</P>
: b. K- X+ ]( S- D& o$ F<P >以太端口的设置:</P>
- J: K4 r' Z6 h7 Q<P ><FONT face="Times New Roman">interface </FONT>进入端口配置模式</P>5 t F5 M9 Y3 ]& \ e' h8 N' C$ E
<P ><FONT face="Times New Roman">interface eo </FONT>配置端口<FONT face="Times New Roman">e0</FONT></P>
! r5 N. U: x( S; z3 l1 n" p% z<P ><FONT face="Times New Roman">ip add ip</FONT>地址<FONT face="Times New Roman"> </FONT>网关</P>; w( r% X; v; y- z, ?$ W
<P ><FONT face="Times New Roman">no sh </FONT>端口启用</P>
D: h6 V7 a; X+ w& |<P >广域网端口的设置:</P>
( x2 j! M3 N* p: f/ G; \1 P<P ><FONT face="Times New Roman">interface </FONT>进入端口配置模式</P>
- a7 L- g( s [1 E' B$ ~+ F8 O<P ><FONT face="Times New Roman">interface s0 </FONT>配置端口<FONT face="Times New Roman">e0</FONT></P>3 P4 ?: q- u8 |; N$ y: @
<P ><FONT face="Times New Roman">ip add ip</FONT>地址<FONT face="Times New Roman"> </FONT>网关</P>9 t+ e& F0 J: s
<P ><FONT face="Times New Roman">encap ppp </FONT>用<FONT face="Times New Roman">ppp</FONT>协议</P>
6 w) W7 R) z5 ^" f) B8 m/ T% J) q<P ><FONT face="Times New Roman">clock rate 200000 </FONT>启用时用频率</P>
# R* y: ^7 ~9 r7 [<P ><FONT face="Times New Roman">no sh </FONT>端口启用</P> |
|