第1页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第1页共17页SWITCH1:Switch>enSwitch#conftSwitch(config)#vlan10Switch(config-vlan)#nametestSwitch(config-vlan)#intf0/15Switch(config-if)#switchportaccessvlan10Switch(config-if)#exitSwitch(config)#vlan20Switch(config-vlan)#intf0/17Switch(config-if)#switchportaccessvlan20Switch(config-if)#exitSwitch(config)#intf0/1Switch(config-if)#switchportmodetrunkSwitch(config-if)#endSwitch#conftSwitch(config)#interfacevlan2Switch(config-if)#ipadd192.168.1.10255.255.255.0Switch(config-if)#noshutdown第2页共17页第1页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第2页共17页第3页共17页第2页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第3页共17页Switch#shvlan;第4页共17页第3页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第4页共17页Switch#shintf0/1;Switch#shipinterface;第5页共17页第4页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第5页共17页Switch#ping192.168.1.1;Switch#ping192.168.1.2;Switch#shrun;第6页共17页第5页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第6页共17页Switch#telnet192.168.1.12;第7页共17页第6页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第7页共17页SWITCH2:Switch>enSwitch#conftSwitch(config)#vlan10第8页共17页第7页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第8页共17页Switch(config-vlan)#nametestSwitch(config-vlan)#intf0/15Switch(config-if)#switchportaccessvlan10Switch(config-if)#exitSwitch(config)#intf0/10Switch(config-if)#switchportmodetrunkSwitch(config-if)#endSwitch#conftSwitch(config)#interfacevlan2Switch(config-if)#ipadd192.168.1.12255.255.255.0Switch(config-if)#noshutdownSwitch(config-if)#exitSwitch(config)#linevty04Switch(config-line)#passwordstarSwitch(config-line)#loginSwitch(config-line)#exitSwitch(config)#enablepasswordstar第9页共17页第8页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第9页共17页第10页共17页第9页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第10页共17页Switch#shvlan;第11页共17页第10页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第11页共17页Switch#shintf0/1;第12页共17页第11页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第12页共17页Switch#shipinterface;第13页共17页第12页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第13页共17页Switch#ping192.168.1.1;Switch#ping192.168.1.2;第14页共17页第13页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第14页共17页Switch#shrun;第15页共17页第14页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第15页共17页Switch#telnet192.168.1.10;第16页共17页第15页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第16页共17页第17页共17页第16页共17页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第17页共17页