osi实验基础
接口配置ip
R3>ena
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#exit
R3#show
*Nov 30 09:53:18.350: %SYS-5-CONFIG_I: Configured from console by console
R3#show ip int
Ethernet0/0 is administratively down, line protocol is down
Internet protocol processing disabled
Ethernet0/1 is administratively down, line protocol is down
Internet protocol processing disabled
Ethernet0/2 is administratively down, line protocol is down
Internet protocol processing disabled
Ethernet0/3 is administratively down, line protocol is down
Internet protocol processing disabled
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int e0/1
R3(config-if)#ip add 192.168.1.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#
*Nov 30 09:54:07.134: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up
*Nov 30 09:54:08.143: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up
远程连接
console口密码配置
R1>ena
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#line con
R1(config)#line console 0
R1(config-line)#password 123456
R1(config-line)#exit
R1(config)#
telnet配置
R1(config)#line vty 0 4 #一共有五个终端接口 最多五个同时telnet
R1(config-line)#password 123456 #配置密码
R1(config-line)#transport input telnet #允许telnet登录
R1(config)#enable password 123456#telnet#配置特权模式密码,连接进入特权模式要设置密码
R2远程连接R1
R2#telnet 192.168.1.1
*Nov 30 13:30:21.987: %SYS-5-CONFIG_I: Configured from console by console
R2#telnet 192.168.1.1
Trying 192.168.1.1 ... Open
User Access Verification
Password:#设置的密码% Password: timeout expired!#进入特权模式的密码
Password:
% Password: timeout expired!
Password:
R1>ena
Password:R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#