【正文】
ry.Processor board ID CAT1037RJF724 FastEthernet/IEEE interface(s)2 Gigabit Ethernet/IEEE interface(s)512K bytes of flashsimulated nonvolatile configuration memory.Base ethernet MAC Address : Motherboard assembly number : 73967309Power supply part number : 341002905Motherboard serial number : CAT103758VYPower supply serial number : DTH1036C7UBModel revision number : P0Motherboard revision number : A0Model number : WSC356024PSESystem serial number : CAT1037RJF7Top Assembly Part Number : 8002638004Top Assembly Revision Number : B0Version ID : V06CLEI Code Number : COM1100ARCHardware Board Revision Number : 0x01Switch Ports Model SW Version SW Image * 1 26 WSC356024PS (37)SE1 C3560ADVIPSERVICESKConfiguration register is 0xFSwitchshow runningconfig…………………………(查看路由器正在運(yùn)行的配置信息)Building configuration...Current configuration : 984 bytes!version no service passwordencryption!hostname Switch!!!ip ssh version 1!portchannel loadbalance srcmac!interface FastEthernet0/1!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 no ip address shutdown!ip classless!!!line con 0line vty 0 4 login!!endSwitch (config)hostname MS1………………………………(為三層交換機(jī)更名為MS1)MS1(config)⑵、創(chuàng)建三層計(jì)算機(jī)VLAN10,將0/1和0/3拉入,并配置VLAN10端口IP地址:MS1(config)vlan 10…………………………………………………………(創(chuàng)建vlan 10)MS1(configvlan)name TEST1………………………………(將vlan 10命名為TEST1)MS1(configvlan)exitMS1(config)interface fastEthernet 0/1…………(進(jìn)入快速以太網(wǎng)端口0/1的配置狀態(tài))MS1(configif)switchport access vlan 10……………………………………(拉入vlan 10)MS1(config if)exitMS1(config)interface fastEthernet 0/3…………(進(jìn)入快速以太網(wǎng)端口0/3的配置狀態(tài))MS1(configif)switchport access vlan 10……………………………………(拉入vlan 10)MS1(config if)exitMS1(config)interface vlan 10……………………………(進(jìn)入vlan 10的端口配置狀態(tài))%LINK5CHANGED: Interface Vlan10, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface Vlan10, changed state to upMS1(configif)ip address …………(為該端口配置IP地址)MS1(configif)no shutdown …………………………………………………(打開端口)MS1(configif)exitMS1(config)⑶、創(chuàng)建三層計(jì)算機(jī)VLAN20,將0/5和0/7拉入,并配置VLAN20端口IP地址:MS1(config)vlan 20…………………………………………………………(創(chuàng)建vlan 20)MS1(configvlan)name TEST2………………………………(將vlan 10命名為TEST2)MS1(configvlan)exitMS1(config)interface fastEthernet 0/5…………(進(jìn)入快速以太網(wǎng)端口0/5的配置狀態(tài))MS1(configif)switchport access vlan 20……………………………………(拉入vlan 20)MS1(configvlan)exitMS1(config)interface fastEthernet 0/7…………(進(jìn)入快速以太網(wǎng)端口0/7的配置狀態(tài))MS1(configif)switchport access vlan 20……………………………………(拉入vlan 20)MS1(configvlan)exitMS1(config)interface vlan 20……………………………(進(jìn)入vlan 20的端口配置狀態(tài))%LINK5CHANGED: Interface Vlan20, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface Vlan20, changed state to upMS1(configif)ip address …………(為該端口配置IP地址)MS1(configif)no shutdown……………………………………………………(打開端口)MS1(configif)exitMS1(config)⑷、驗(yàn)證路由并查看路由列表:使用PC1對PCPC3和PC4進(jìn)行ping命令,查看結(jié)果。項(xiàng)目六: 路由協(xié)議、實(shí)習(xí)內(nèi)容: 如下圖所示連接好各個(gè)設(shè)備,并設(shè)置好PCPC2和PC3的IP地址及默認(rèn)網(wǎng)關(guān)。、操作過程: ⑴、設(shè)置R1的0/0和0/1端口RouterenableRouterconfigure terminal Enter configuration mands, one per line. End with CNTL/Z.Router(config)interface fastEthernet 0/0………(進(jìn)入快速以太網(wǎng)端口0/0的配置狀態(tài))Router(configif)ip address ………(為該端口配置IP地址)Router(configif)no shutdown…………………………………………………(打開端口)%LINK5CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(configif)exitRouter(config)interface fastEthernet 0/1………(進(jìn)入快速以太網(wǎng)端口0/1的配置狀態(tài))Router(configif)ip address ………(為該端口配置IP地址)Router(configif)no shutdown ………………………………………………(打開端口)%LINK5CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(configif)exitRouter(config)⑵、設(shè)置R2的0/0和0/1端口RouterenableRouterconfigure terminal Enter configuration mands, one per line. End with CNTL/Z.Router(config)interface fastEthernet 0/0………(進(jìn)入快速以太網(wǎng)端口0/0的配置狀態(tài))Router(configif)ip address ………(為該端口配置IP地址)Router(configif)no shutdown…………………………………………………(打開端口)%LINK5CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(configif)exitRouter(config)interface fastEthernet 0/1………(進(jìn)入快速以太網(wǎng)端口0/1的配置狀態(tài))Router(configif)ip address ………(為該端口配置IP地址)Router(configif)no shutdown ………………………………………………(打開端口)%LINK5CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO5UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upRouter(configif)exitRouter(config)⑶、用PC1對PC2和PC3進(jìn)行ping命令:PC1對PC2能夠ping成功,對PC3則ping失敗。⑷、為R1和R2設(shè)置靜態(tài)路由:①、R1:RouterRouterconfigure terminalRouter(config)ip route Router(config)②、R2:RouterRouterconfigure terminalRouter(config)ip route Router(config)⑸、用PC1對PC2和PC3進(jìn)行ping命令,再查看R1和R2的路由列表:①、用PC1對PC2和PC3進(jìn)行ping命令:PC1對PC2和PC3都能夠ping成