二层交换机的两个vlan互相访问.docx
《二层交换机的两个vlan互相访问.docx》由会员分享,可在线阅读,更多相关《二层交换机的两个vlan互相访问.docx(7页珍藏版)》请在冰点文库上搜索。
二层交换机的两个vlan互相访问
二层交换机的两个vlan互相访问
!
interface FastEthernet0/1.1
encapsulation dot1Q 400
ip address 192.168.4.1 255.255.255.0
!
interface FastEthernet0/1.2
encapsulation dot1Q 300
ip address 192.168.3.1 255.255.255.0
ip access-group 1 out
!
access-list 1 deny 192.168.1.0 0.0.0.255
access-list 1 permit any
60BootLoader(C2960-HBOOT-M)Version12.2(25r)FX,RELEASESOFTWARE(fc4)
CiscoWS-C2960-24TT(RC32300)processor(revisionC0)with21039Kbytesofmemory.
2960-24TTstarting...
BaseethernetMACAddress:
0001.42AD.CAAC
Xmodemfilesystemisavailable.
InitializingFlash...
flashfs[0]:
1files,0directories
flashfs[0]:
0orphanedfiles,0orphaneddirectories
flashfs[0]:
Totalbytes:
64016384
flashfs[0]:
Bytesused:
4414921
flashfs[0]:
Bytesavailable:
59601463
flashfs[0]:
flashfsfscktook1seconds.
...doneInitializingFlash.
BootSectorFilesystem(bs:
)installed,fsid:
3
ParameterBlockFilesystem(pb:
)installed,fsid:
4
Loading"flash:
/c2960-lanbase-mz.122-25.FX.bin"...
#########################[OK]
RestrictedRightsLegend
Use,duplication,ordisclosurebytheGovernmentis
subjecttorestrictionsassetforthinsubparagraph
(c)oftheCommercialComputerSoftware-Restricted
RightsclauseatFARsec.52.227-19andsubparagraph
(c)
(1)(ii)oftheRightsinTechnicalDataandComputer
SoftwareclauseatDFARSsec.252.227-7013.
ciscoSystems,Inc.
170WestTasmanDrive
SanJose,California95134-1706
CiscoIOSSoftware,C2960Software(C2960-LANBASE-M),Version12.2(25)FX,RELEASESOFTWARE(fc1)
Copyright(c)1986-2005byCiscoSystems,Inc.
CompiledWed12-Oct-0522:
05bypt_team
Imagetext-base:
0x80008098,data-base:
0x814129C4
CiscoWS-C2960-24TT(RC32300)processor(revisionC0)with21039Kbytesofmemory.
24FastEthernet/IEEE802.3interface(s)
2GigabitEthernet/IEEE802.3interface(s)
63488Kbytesofflash-simulatednon-volatileconfigurationmemory.
BaseethernetMACAddress:
0001.42AD.CAAC
Motherboardassemblynumber:
73-9832-06
Powersupplypartnumber:
341-0097-02
Motherboardserialnumber:
FOC103248MJ
Powersupplyserialnumber:
DCA102133JA
Modelrevisionnumber:
B0
Motherboardrevisionnumber:
C0
Modelnumber:
WS-C2960-24TT
Systemserialnumber:
FOC1033Z1EY
TopAssemblyPartNumber:
800-26671-02
TopAssemblyRevisionNumber:
B0
VersionID:
V02
CLEICodeNumber:
COM3K00BRA
HardwareBoardRevisionNumber:
0x01
SwitchPortsModelSWVersionSWImage
------------------------------------
*126WS-C2960-24TT12.2C2960-LANBASE-M
CiscoIOSSoftware,C2960Software(C2960-LANBASE-M),Version12.2(25)FX,RELEASESOFTWARE(fc1)
Copyright(c)1986-2005byCiscoSystems,Inc.
CompiledWed12-Oct-0522:
05bypt_team
PressRETURNtogetstarted!
%LINK-5-CHANGED:
InterfaceVlan1,changedstatetoup
%LINK-5-CHANGED:
InterfaceVlan1,changedstatetoadministrativelydown
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
%LINK-5-CHANGED:
InterfaceFastEthernet0/1,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/1,changedstatetoup
%LINK-5-CHANGED:
InterfaceFastEthernet0/2,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/2,changedstatetoup
%LINK-5-CHANGED:
InterfaceFastEthernet0/12,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/12,changedstatetoup
%LINK-5-CHANGED:
InterfaceFastEthernet0/13,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/13,changedstatetoup
Switch>enable
Switch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#interfaceFastEthernet0/1
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchportaccessvlan400
Switch(config-if)#ipaddress172.16.4.1
^
%Invalidinputdetectedat'^'marker.
Switch(config-if)#
Switchcon0isnowavailable
PressRETURNtogetstarted.