路由器与交换机的配置代码.docVIP

  • 8
  • 0
  • 约9.45千字
  • 约 10页
  • 2025-04-25 发布于辽宁
  • 举报

1.配置路由器的主机名和提示信息。

Router(config)#

Router(config)#hostnameR1

R1(config)#bannermotd%

EnterTEXTmessage.Endwiththecharacter%.

2.配置enable密码、配置console和vty密码。

R1(config)#enablesecretclass

R1(config)#lineconsole0

R1(config-line)#passwordcisco

R1(config-line)#login

R1(config-line)#linevty04

R1(config-line)#passwordcisco

R1(config-line)#login

3.配置接口(s0/0和f0/0),并显示接口信息。

R1(config)#interfaceFastEthernet0/0

R1(config-if)#ipaddress

R1(config-if)#noshutdown

保存配置

R1#copyrunning-configstartup-config

Destinationfilename[startup-config]?

Buildingconfiguration...

[O

文档评论(0)

1亿VIP精品文档

相关文档