<P ><FONT face="Times New Roman">erase </FONT>擦除路由器里面的所有内容</P>
$ o" K0 f# |- Q1 Q$ U<P ><FONT face="Times New Roman">flash (</FONT>一般不用,会删掉路由器的整个系统<FONT face="Times New Roman">)</FONT></P>
* r+ y) x0 c3 ^3 O2 r0 c( \<P ><FONT face="Times New Roman">erase startup-config </FONT>清除<FONT face="Times New Roman">NVRAM</FONT>中的配置文件</P>
' G# ]6 u w! a5 x- f<P ><FONT face="Times New Roman">configure terminal </FONT>进入全局配置模式</P>' i1 F" ?' ^+ u/ k/ T3 w* V
<P ><FONT face="Times New Roman">hostname star1 </FONT>设置名称</P>
$ C+ Z p, `; t<P ><FONT face="Times New Roman">exit </FONT>逐层退出</P>
8 A# ^3 u7 ^) s<P ><FONT face="Times New Roman">end </FONT>直接退出</P>
1 i& u' S& N, z* K6 s/ F<P >以太端口的设置:</P>' U: J- d% t2 z* B6 v: L
<P ><FONT face="Times New Roman">interface </FONT>进入端口配置模式</P>5 M3 a- [9 v& y" i- c% n& e# i
<P ><FONT face="Times New Roman">interface eo </FONT>配置端口<FONT face="Times New Roman">e0</FONT></P>8 r5 N w1 g% }8 q& g, z' b
<P ><FONT face="Times New Roman">ip add ip</FONT>地址<FONT face="Times New Roman"> </FONT>网关</P>+ @4 O& i7 G7 R0 p& o, c
<P ><FONT face="Times New Roman">no sh </FONT>端口启用</P>
" Y1 Y2 O9 T2 q6 i<P >广域网端口的设置:</P>( F; E6 t7 D q$ H2 N4 j" y
<P ><FONT face="Times New Roman">interface </FONT>进入端口配置模式</P>! l( v0 A" P' I/ a
<P ><FONT face="Times New Roman">interface s0 </FONT>配置端口<FONT face="Times New Roman">e0</FONT></P>
: a2 _; _9 t# {7 F v- w<P ><FONT face="Times New Roman">ip add ip</FONT>地址<FONT face="Times New Roman"> </FONT>网关</P>
- R% J7 H: r# w! [<P ><FONT face="Times New Roman">encap ppp </FONT>用<FONT face="Times New Roman">ppp</FONT>协议</P>4 }& M" D: ^2 ]4 G# a! V p7 i
<P ><FONT face="Times New Roman">clock rate 200000 </FONT>启用时用频率</P>
; l4 h: [) ?* R( G* U<P ><FONT face="Times New Roman">no sh </FONT>端口启用</P> |
|