23.12.11

Basic Command of Extreme switch

Basic Command of Extreme switch

Basic’s of the CLI
SYNTAX HELPER
The CLI has a built-in syntax helper. If you are unsure of the complete syntax for a particular command, enter as much of the command as possible and press [Return]. The syntax helper provides a list of options for the remainder of the command. The syntax helper also provides assistance if you have entered an incorrect command.
COMMAND COMPLETION WITH SYNTAX HELPER
ExtremeWare provides command completion by way of the [Tab] key. If you enter a partial command, pressing the [Tab] key posts a list of available options, and places the cursor at the end of the command.
ABBREVIATED SYNTAX
Abbreviated syntax is the most unambiguous, shortest allowable abbreviation of a command or parameter. Typically, this is the first three letters of the command.
When using abbreviated syntax, you must enter enough characters to make the command unambiguous and distinguishable to the switch.
COMMAND SHORTCUTS
All named components of the switch configuration must have a unique name.
Components are named using the create command. When you enter a command to configure a named component, you do not need to use the whole keyword of the component. For example, to create a VLAN, you must enter a unique VLAN name:
create vlan engineering
Once you have created the VLAN with a unique name, you can then eliminate the keyword vlan from all other commands that require the name to be entered. For example, instead of entering the switch command
config vlan engineering delete port 1:3,4:6
you could enter the following shortcut:
config engineering delete port 1:3,4:6
Similarly, on the Summit switch, instead of entering the command
config vlan engineering delete port 1-3,6
you could enter the following shortcut:
config engineering delete port 1-3,6
SUMMIT SWITCH NUMERICAL RANGES
Commands that require you to enter one or more port numbers on a Summit switch use the parameter in the syntax. A portlist can be a range of numbers, for example:
port 1-3
You can add additional port numbers to the list, separated by a comma:
port 1-3,6,8
NAMES
All named components of the switch configuration must have a unique name. Names must begin with an alphabetical character and are delimited by white space, unless enclosed in quotation marks.
Basics of the Web Browser interface
Each switch has a built in HTTP server that drives the web based GUI interface. To access the GUI interface simply open a web browser and point to the IP Address of the switch. Now the switch has an easy point and click means of configuration.
Things to do with ports on an Extreme switch
Resetting Back to Factory Configs.
To reset the switch back to factory configs, and keep the user account informantion type the command:
Unconf switch
To rest the switch back to factory configs and remove the users account information type the command:
Unconf switch all
Mirroring Ports
Port mirroring configures to the switch to copy all traffic associated with one or more ports. The monitor port can then be connected to a Sniffer or RMON probe for analysis. The traffic filter can be defined based on one of the following criteria:
Physical port – All data that traverses that port, regardless of the VLAN, is copied to the mirror port
VLAN – All data that traverses the VLAN, regardless of the physical port, is copied to the mirror port.
Virtual Post – All data specific to a VLAN on a specific port is copied to the mirror port.
Note: The port you configure to be the mirror port must be active prior to enabling it for mirroring.
The following example selects port 3 as the mirror port and sends all traffic coming into out of port 1 to the mirror port
enable mirroring to port 3
config mirroring add port 1
The following example sends all traffic for the Default VLAN to the mirror port
config mirroring add vlan default
The following example sends all traffic coming into and out of port 1 and the Default VLAN to the mirror port.
config mirroring add port 1 vlan default
To disable mirroring:
Disable mirroring
Naming Ports
You can name switch ports in order to keep track of what is plugged in to them, or for personal records.
To name a port type the command:
Config port display-string
To reset port name type:
unconfig port display-string
Setting Speed and Duplex on a port
To set a port for 100Meg full duplex type the command:
Config port auto off duplex full speed 100
To set a port for 10Meg Half duplex type the command:
Config port auto off duplex half speed 10
To reset the port able to auto negotiation type the command:
Config port auto on
Looking at Port Errors
Note: If you want to look at all ports, simply leave out the port number and the switch will display all ports. Also you can specify port groups. (i.e. port 1-19, 20,34,46, etc)
Show port collision
Show port configuration
Show port info detail
Show port packet
Show port rxerror
Show port stat
Show port txerror
Show port util (use the space bar to scroll through different utilization screens)
Configuring VLANS on an Extreme Switch
With all switches from Extreme Networks there is no need to create a “router interface” in order to use VLANS. Since every port can be a router and the routing mechanism is built into the switch fabric, VLAN configuration has become incredibly easy. When the switch is first started up our of the box, there is a single VLAN called “Default” (VLAN 1) and contains all ports on the switch. If you desire to add ports to other VLANS, you must first delete the port out of the VLAN they are in. (for security purposes).
VLAN Basics
Creating a VLAN
Type the command:
Create vlan Note: the name can be any unique name the user desires.
Giving the VLAN an IP Address
Type the command:
Config vlan ip x.x.x.x /xx Note: The network mask can be either “slash notation” or “dotted decimel”, (i.e. /24 or 255.255.255.0)
Adding ports to that VLAN
Type the command:
Config vlan add port n Note: You can also add multiple ports by using commas or dashes. (i.e. port 1-48 or 1,2,8,10 or 1-10,5-20)
Deleting ports out of a VLAN
Type the command:
Config vlan delete port n
Assigning tags and designating Trunk (uplink) ports
Be default when you add ports to a VLAN, they are added untagged. Most user ports will be untagged. The reason for adding tags to ports is to allow multiple VLAN traffic to traverse those ports, as with trunk ports. Trunk ports (or Uplinks) can contain several thousand VLANS on a single link. This is useful if you have more than one VLAN at an edge switch. In order to have more than one VLAN on a uplink you will need to add an 802.1q tag to port. Please be aware that Cisco’s VLAN numbers should be the same as a standard 802.1q tag number. (I.e. if you want to trunk a Cisco switch using Vlan500 and Vlan600 to another standards based switch, the VLAN tags should match up. Tag 500 and Tag 600 should be on that trunk)
Adding a 802.1q tag to a VLAN
Type the command:
Config vlan add tag Note: this number can be any number between 2 and 4096.
Making a port a “trunk” port
Type the command:
Config vlan add port n tagged
How to load share ports (aka Fast Etherchannel)
To define a load sharing group, you assign a group of ports to a single logical port number.
To enable or disable loadsharing use the following commands.
Enable sharing grouping
To disable sharing:
Disable sharing
For example
Enable sharing 2 grouping 2-8
Routing on an Extreme Networks switch
Every switch from Extreme is a layer 3 switch. To enable routing, obviously you need more than 1 VLAN with an IP address on the switch. Once you have your desired number of VLANS created, with their own unique IP address, you issue a single command to enable routing.
How to turn on routing
Type the command:
Enable ipforwarding
Note: you can also turn on or off routing for any single vlan on the switch.
(i.e. enable ipforwarding vlan or disable ipforwarding vlan )
You are now routing between VLANS.
Routing Protocols (getting routing to work with other switches)
All Extreme Networks switches support static routes, Rip v1/v2, OSPF, BGP and IS-IS. Just like any router you must use a routing protocol in order for routers/switches to share routing information.
Turning on OSPF
Type the command:
config ospf add vlan area 0.0.0.0
This adds each VLAN to the OSPF Area 0
You can also add all the VLANS by typing the command:
Config ospf add vlan all area 0.0.0.0
Now you enable OSPF by typing:
Enable OSPF
You now have OSPF running on your switch.
The following is a sample configuration:
create vlan HQ_10_0_2
create vlan HQ_10_0_3
create vlan LA_161_48_2
create vlan Chi_160_26_26
config vlan HQ_10_0_2 ipaddress 10.0.2.1 255.255.255.0
config vlan HQ_10_0_3 ipaddress 10.0.3.1 255.255.255.0
config vlan LA_161_48_26 ipaddress 161.48.2.26 255.255.255.0
config vlan Chi_160_26_26 ipaddress 160.26.2.1 255.255.255.0
create ospf area 0.0.0.5
create ospf area 0.0.0.6
enable ipforwarding
config ospf area 0.0.0.6 stub nosummary stub-default-cost 10
config ospf add vlan LA_161_48_2 area 0.0.0.6
config ospf add vlan Chi_160_26_26 area 0.0.0.5
config ospf add virtual-link 160.26.25.1 0.0.0.5
config ospf add vlan all
enable ospf

zte c300 trunk mode

  gpon   profile tcont PPPOE type 4 maximum 9900000   profile tcont 100M type 4 maximum 100000   profile tcont 50M-TRUNK type 4 maximum 5000...