telnet服务配置

telnet实验配置

test1.png

在交换机上配置switch0:

由于交换机不能直接配置IP,但交换机的默认创建有VLAN 1所以我们在VLAN 1上创建一个ip

Switch(config)#int vlan 1

Switch(config-if)#ip add 192.168.10.1 255.255.255.0

Switch(config-if)#no shut

Switch(config)#line vty 0 4

Switch(config-line)#password aaa

Switch(config)#enable password aaa

在pc机上配置:

配置和交换机同一网段的IP即可。

测试:

在PC机上输入

telnet 192.168.10.1

test2.png

猜你喜欢

转载自blog.csdn.net/qq_37250297/article/details/81488564