boson netsim命令解答!请问如下命令是什么意思?满意还加分!

来源:百度知道 编辑:UC知道 时间:2024/05/26 06:30:30
Press Enter to Start

Router>
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host r2
r2(config)#ena se c1
r2(config)#line vty 0 4
r2(config-line)#pass c2
r2(config-line)#int eth 0
r2(config-if)#ip add 192.168.2.1 255.255.255.0
r2(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
r2(config-if)#int se 0
r2(config-if)#ip add 10.0.0.2 255.0.0.0
r2(config-if)#clock rate 64000
r2(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
r2(config-if)#end
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
r2#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
CNTL/Z.这个是啥意思?

Router>
Router>enable (进入特权模式,有将权限提升到root的意思)
Router#conf t (进入全局配置模式,这是要更改或配置路由器时,必须进入的模式.完整的命令是config terminal)
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host r2 (命名路由器名称为R2,完整命令是hostname R2)
r2(config)#ena se c1 (设置进入特权模式的密文为C1,注意密文和密码不是一个意思,一般密文是加密存放的,密码是明文保存的.完整命令是enable secret c1)

r2(config)#line vty 0 4 (进入配置telnet线路的模式,并且针对的线路是0号线到4号线)
r2(config-line)#pass c2 (在此线路配置模式下,设置密码为C2.完整命令是password c2)
r2(config-line)#int eth 0 (进入0号以太端口的端口配置模式,完整命令是interface ethernet 0)
r2(config-if)#ip add 192.168.2.1 255.255.255.0 (为端口配置IP地址和掩码.完整命令是ip address)

r2(config-if)#no shut (开启端口,完整命令是no shutdown)
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
r2(config-if)#int se 0 (进入0号串行口的端口配置模式.完整命令interface serial 0)
r2(config-if)#ip add 10.0.0.2 255.0.0.0 (同之前一样,为此端口配置IP和掩码)
r2(config-if)#clock rate 64000 (设置链路时钟频率为64000)
r2(config-if)#no shut (开启端口,也就是n