encryption your passwords 只有enable secret是加密的,当你在特权模式下输入sh running-c router#sh run (略) ! enable secret jhdflkdfg$#sdf enable password 123 ! (略)
对密码进行加密:在全局配置模式下使用service password-encrypti
banners banner类似标语,问候语.最常用的是motd(message of the day),分界符用于分隔信息,但是分隔符不能出现在motd信息中,如下: router(c motd # the router is mine # router(c router#exit router c is now available press return to get started the router is mine router>
配置连接器的介质类型,使用media-type命令,不过这个一般是自动检测,如下: router(c fa 0/0 router(c ? 100basex use rj45 for -tx. sc f0 for ╟fx mii use mii c
bring up an interface 打开和关闭1个接口,分别使用shutdown和no shutdown命令,当你关闭某个接口的时候,使用sh interfaces命令可以查看接口状态,并且你将看到以下输出: router#sh int e0 ethernet0 is administratively down,line protocol is down (略) 接口是关闭的,所以你要手动打开它,如下: router#c t router(c e0 router(c shut router(c router#sh int e0 ethernet is up,line protocol is up (略)
c an ip address on an interface 给某个接口配置ip地址,使用ip address [address] [mask]命令,如下: router(c e0 router(c address 172.16.10.2 255.255.255.0 记得把接口打开: router(c shut router(c
如果你需要在1个接口添加第二个子网地址,在末尾使用sec router(c e0 router(c address 172.16.20.2 255.255.255.0 sec router(c 来验证下: router#sh run (略) ! interface ethernet0 ip address 172.16.20.2 255.255.255.0 sec ip address 172.16.10.2 255.255.255.0 !