在Cisco Packet Tracer中,两台路由器配置分别如下:
第一台的配置:
route>en
route#conf t
route(config)#hostname route1
route1(config)#enable password ccna
route1(config)#enable secert ccnp
route1(config)#interface ?
route1(config)#inter f0/0
route1(config-if)#ip address 192.168.1.1 255.255.255.0
route1(config-if)#no shutdown
ctrl+z
route1#show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
FastEthernet0/1 unassigned YES NVRAM administratively down down
Vlan1 unassigned YES NVRAM administratively down down
配置telnet如下:
route1(config)#line vty ?
<0-15> First Line number
route1(config)#line vty 0 15
route1(config-line)#password 123456
route1(config-line)#login
ctrl+z
route1#write
第二台也做这样的配置。