ssh 交換機配置
ssh配置
public-key local create rsa
public-key local create dsa
ssh server enable
user-interface vty 1
authentication-mode scheme
protocol inbound ssh
quit
#screen-length 30
#history-command max-size 20
#idle-timeout 6
local-user wang
password cipher jingchao
service-type ssh
authorization-attribute level 3
ssh user wang authentication-type password
交換機配置
vlan 2
port g1/0/1 to g1/0/5
quit
interface vlan 2
ip address 192.168.2.1 255.255.255.0
quit
int g1/0/3
port link-type trunk
port access vlan 3
port trunk permit vlan 2
port trunk pvid vlan 3
undo shutdown
主機ip 192.168.2.2
vlan 6
quit
int vlan 6
ip address 59.67.152.240 24
int g1/0/1
port acc vlan 6
quit
int g1/0/3
port acc vlan 6
quit
vlan地址與網關地址分配到同一段內
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.