admin管理员组

文章数量:1576992

这是在近期网络技术培训中,熟悉了网络设备的配置,现将整理的常用配置命令及简要说明陈列于此。

 

路由器 路由器引导方式配置 Router(config)#boot system flash [IOS文件名] //从flash中引导 Router(config)#boot system fttp [tftp地址] [IOS文件名] //从TFTP中引导 Router(config)#boot syste rom //从rom中引导 说明:若有多条加载路径,启动时按顺序加载,若第一条加载失败则试图从随后路径中加载。 用户名与口令 router(config)#username tang password bang 本地登录认证 router(config)#line vty 0 4 router(config)# login //使用enable密码进行登录验证,也可以通过password语句设置密码。 router(config-line)#login local  //使用已建立的用户名和密码进行验证 接口配置 router(config)#interface s0 router(config-if)#ip address 192.168.1.1 255.255.255.0 timeout时间设置 router(config)#line console 0 router(config-line)#exec-timeout [min] [sec] //无动作时超时 router(config-line)#session-timeout [min] //会话超时 router(config-line)#absolute-time //绝对超时 权限设置 router(config)#privilege exec level [0-15] [命令]    //[命令]为当前权限下允许执行的命令,如:show run 静态路由 router(config)#ip route [目的

本文标签: 路由器