# 拓撲圖

# 基礎配置
## S1:
~~~
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z
Switch(config)#hostname S1
S1(config)#enable password 123
S1(config)#line vty 0 4
S1(config-line)#password 456
S1(config-line)#login
S1(config)#interface vlan 1
S1(config-if)#ip address 192.168.1.1 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
~~~
## PC1:

# 實驗測試
PC 1
telnet 192.168.1.1
輸入密碼 456
enable
輸入密碼 123