Você está na página 1de 5

1/20/2015

CopyPasteDocument's:BasicCommandofExtremeswitch

CopyPasteDocument's
CatatanKecil|BerbagiCerita

BasicCommandofExtremeswitch
BasicCommandofExtremeswitch

BasicsoftheCLI
SYNTAXHELPER
TheCLIhasabuiltinsyntaxhelper.Ifyouareunsureofthecompletesyntaxforaparticular
command,enterasmuchofthecommandaspossibleandpress[Return].Thesyntaxhelper
providesalistofoptionsfortheremainderofthecommand.Thesyntaxhelperalsoprovides
assistanceifyouhaveenteredanincorrectcommand.
COMMANDCOMPLETIONWITHSYNTAXHELPER
ExtremeWareprovidescommandcompletionbywayofthe[Tab]key.Ifyouenterapartial
command,pressingthe[Tab]keypostsalistofavailableoptions,andplacesthecursoratthe
endofthecommand.
ABBREVIATEDSYNTAX
Abbreviatedsyntaxisthemostunambiguous,shortestallowableabbreviationofacommandor
parameter.Typically,thisisthefirstthreelettersofthecommand.
Whenusingabbreviatedsyntax,youmustenterenoughcharacterstomakethecommand
unambiguousanddistinguishabletotheswitch.
COMMANDSHORTCUTS
Allnamedcomponentsoftheswitchconfigurationmusthaveauniquename.
Componentsarenamedusingthecreatecommand.Whenyouenteracommandtoconfigurea
namedcomponent,youdonotneedtousethewholekeywordofthecomponent.Forexample,
tocreateaVLAN,youmustenterauniqueVLANname:
createvlanengineering
OnceyouhavecreatedtheVLANwithauniquename,youcantheneliminatethekeywordvlan
fromallothercommandsthatrequirethenametobeentered.Forexample,insteadofentering
theswitchcommand
configvlanengineeringdeleteport1:3,4:6
youcouldenterthefollowingshortcut:
configengineeringdeleteport1:3,4:6
Similarly,ontheSummitswitch,insteadofenteringthecommand
configvlanengineeringdeleteport13,6
youcouldenterthefollowingshortcut:
configengineeringdeleteport13,6
SUMMITSWITCHNUMERICALRANGES
CommandsthatrequireyoutoenteroneormoreportnumbersonaSummitswitchusethe
parameterinthesyntax.Aportlistcanbearangeofnumbers,forexample:
port13
Youcanaddadditionalportnumberstothelist,separatedbyacomma:
http://oriedza.blogspot.in/2011/12/basiccommandofextremeswitch.html?m=1

1/5

1/20/2015

CopyPasteDocument's:BasicCommandofExtremeswitch

port13,6,8
NAMES
Allnamedcomponentsoftheswitchconfigurationmusthaveauniquename.Namesmust
beginwithanalphabeticalcharacterandaredelimitedbywhitespace,unlessenclosedin
quotationmarks.
BasicsoftheWebBrowserinterface
EachswitchhasabuiltinHTTPserverthatdrivesthewebbasedGUIinterface.Toaccessthe
GUIinterfacesimplyopenawebbrowserandpointtotheIPAddressoftheswitch.Nowthe
switchhasaneasypointandclickmeansofconfiguration.
ThingstodowithportsonanExtremeswitch
ResettingBacktoFactoryConfigs.
Toresettheswitchbacktofactoryconfigs,andkeeptheuseraccountinformantiontypethe
command:
Unconfswitch
Toresttheswitchbacktofactoryconfigsandremovetheusersaccountinformationtypethe
command:
Unconfswitchall
MirroringPorts
Portmirroringconfigurestotheswitchtocopyalltrafficassociatedwithoneormoreports.The
monitorportcanthenbeconnectedtoaSnifferorRMONprobeforanalysis.Thetrafficfiltercan
bedefinedbasedononeofthefollowingcriteria:
PhysicalportAlldatathattraversesthatport,regardlessoftheVLAN,iscopiedtothemirror
port
VLANAlldatathattraversestheVLAN,regardlessofthephysicalport,iscopiedtothemirror
port.
VirtualPostAlldataspecifictoaVLANonaspecificportiscopiedtothemirrorport.
Note:Theportyouconfiguretobethemirrorportmustbeactivepriortoenablingitformirroring.
Thefollowingexampleselectsport3asthemirrorportandsendsalltrafficcomingintooutof
port1tothemirrorport
enablemirroringtoport3
configmirroringaddport1
ThefollowingexamplesendsalltrafficfortheDefaultVLANtothemirrorport
configmirroringaddvlandefault
Thefollowingexamplesendsalltrafficcomingintoandoutofport1andtheDefaultVLANto
themirrorport.
configmirroringaddport1vlandefault
Todisablemirroring:
Disablemirroring
NamingPorts
Youcannameswitchportsinordertokeeptrackofwhatispluggedintothem,orforpersonal
records.
Tonameaporttypethecommand:
Configportdisplaystring
Toresetportnametype:
unconfigportdisplaystring
http://oriedza.blogspot.in/2011/12/basiccommandofextremeswitch.html?m=1

2/5

1/20/2015

CopyPasteDocument's:BasicCommandofExtremeswitch

SettingSpeedandDuplexonaport
Tosetaportfor100Megfullduplextypethecommand:
Configportautooffduplexfullspeed100
Tosetaportfor10MegHalfduplextypethecommand:
Configportautooffduplexhalfspeed10
Toresettheportabletoautonegotiationtypethecommand:
Configportautoon
LookingatPortErrors
Note:Ifyouwanttolookatallports,simplyleaveouttheportnumberandtheswitchwilldisplay
allports.Alsoyoucanspecifyportgroups.(i.e.port119,20,34,46,etc)
Showportcollision
Showportconfiguration
Showportinfodetail
Showportpacket
Showportrxerror
Showportstat
Showporttxerror
Showportutil(usethespacebartoscrollthroughdifferentutilizationscreens)
ConfiguringVLANSonanExtremeSwitch
WithallswitchesfromExtremeNetworksthereisnoneedtocreatearouterinterfaceinorder
touseVLANS.Sinceeveryportcanbearouterandtheroutingmechanismisbuiltintothe
switchfabric,VLANconfigurationhasbecomeincrediblyeasy.Whentheswitchisfirststarted
upourofthebox,thereisasingleVLANcalledDefault(VLAN1)andcontainsallportsonthe
switch.IfyoudesiretoaddportstootherVLANS,youmustfirstdeletetheportoutoftheVLAN
theyarein.(forsecuritypurposes).
VLANBasics
CreatingaVLAN
Typethecommand:
CreatevlanNote:thenamecanbeanyuniquenametheuserdesires.
GivingtheVLANanIPAddress
Typethecommand:
Configvlanipx.x.x.x/xxNote:Thenetworkmaskcanbeeitherslashnotationordotted
decimel,(i.e./24or255.255.255.0)
AddingportstothatVLAN
Typethecommand:
ConfigvlanaddportnNote:Youcanalsoaddmultipleportsbyusingcommasordashes.(i.e.
port148or1,2,8,10or110,520)
DeletingportsoutofaVLAN
Typethecommand:
Configvlandeleteportn
AssigningtagsanddesignatingTrunk(uplink)ports
BedefaultwhenyouaddportstoaVLAN,theyareaddeduntagged.Mostuserportswillbe
untagged.ThereasonforaddingtagstoportsistoallowmultipleVLANtraffictotraversethose
ports,aswithtrunkports.Trunkports(orUplinks)cancontainseveralthousandVLANSona
singlelink.ThisisusefulifyouhavemorethanoneVLANatanedgeswitch.Inordertohave
http://oriedza.blogspot.in/2011/12/basiccommandofextremeswitch.html?m=1

3/5

1/20/2015

CopyPasteDocument's:BasicCommandofExtremeswitch

morethanoneVLANonauplinkyouwillneedtoaddan802.1qtagtoport.Pleasebeaware
thatCiscosVLANnumbersshouldbethesameasastandard802.1qtagnumber.(I.e.ifyou
wanttotrunkaCiscoswitchusingVlan500andVlan600toanotherstandardsbasedswitch,the
VLANtagsshouldmatchup.Tag500andTag600shouldbeonthattrunk)
Addinga802.1qtagtoaVLAN
Typethecommand:
ConfigvlanaddtagNote:thisnumbercanbeanynumberbetween2and4096.
Makingaportatrunkport
Typethecommand:
Configvlanaddportntagged
Howtoloadshareports(akaFastEtherchannel)
Todefinealoadsharinggroup,youassignagroupofportstoasinglelogicalportnumber.
Toenableordisableloadsharingusethefollowingcommands.
Enablesharinggrouping
Todisablesharing:
Disablesharing
Forexample
Enablesharing2grouping28
RoutingonanExtremeNetworksswitch
EveryswitchfromExtremeisalayer3switch.Toenablerouting,obviouslyyouneedmorethan
1VLANwithanIPaddressontheswitch.OnceyouhaveyourdesirednumberofVLANS
created,withtheirownuniqueIPaddress,youissueasinglecommandtoenablerouting.
Howtoturnonrouting
Typethecommand:
Enableipforwarding
Note:youcanalsoturnonoroffroutingforanysinglevlanontheswitch.
(i.e.enableipforwardingvlanordisableipforwardingvlan)
YouarenowroutingbetweenVLANS.
RoutingProtocols(gettingroutingtoworkwithotherswitches)
AllExtremeNetworksswitchessupportstaticroutes,Ripv1/v2,OSPF,BGPandISIS.Justlike
anyrouteryoumustusearoutingprotocolinorderforrouters/switchestosharerouting
information.
TurningonOSPF
Typethecommand:
configospfaddvlanarea0.0.0.0
ThisaddseachVLANtotheOSPFArea0
YoucanalsoaddalltheVLANSbytypingthecommand:
Configospfaddvlanallarea0.0.0.0
NowyouenableOSPFbytyping:
EnableOSPF
YounowhaveOSPFrunningonyourswitch.
Thefollowingisasampleconfiguration:
createvlanHQ_10_0_2
createvlanHQ_10_0_3
createvlanLA_161_48_2
http://oriedza.blogspot.in/2011/12/basiccommandofextremeswitch.html?m=1

4/5

1/20/2015

CopyPasteDocument's:BasicCommandofExtremeswitch

createvlanChi_160_26_26
configvlanHQ_10_0_2ipaddress10.0.2.1255.255.255.0
configvlanHQ_10_0_3ipaddress10.0.3.1255.255.255.0
configvlanLA_161_48_26ipaddress161.48.2.26255.255.255.0
configvlanChi_160_26_26ipaddress160.26.2.1255.255.255.0
createospfarea0.0.0.5
createospfarea0.0.0.6
enableipforwarding
configospfarea0.0.0.6stubnosummarystubdefaultcost10
configospfaddvlanLA_161_48_2area0.0.0.6
configospfaddvlanChi_160_26_26area0.0.0.5
configospfaddvirtuallink160.26.25.10.0.0.5
configospfaddvlanall
enableospf

Berbagi

Beranda

Lihatversiweb
DiberdayakanolehBlogger.

http://oriedza.blogspot.in/2011/12/basiccommandofextremeswitch.html?m=1

5/5

Você também pode gostar