Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname routerA
routerA(config)#int fa0/0
routerA(config-if)#ip address 192.168.1.1 255.255.255.0
routerA(config-if)#no shutdown
routerA(config-if)#line vty 0 4
routerA(config-line)#password cisco //telnet的密碼
routerA(config-line)#login
routerA(config-line)#enable secret 123456 //enable的密碼