Changes between Version 25 and Version 26 of Internal/OpenFlow/CLISetup


Ignore:
Timestamp:
Jan 26, 2010, 1:55:29 AM (15 years ago)
Author:
yasaswiv
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/CLISetup

    v25 v26  
    287287 
    288288 * Using the serial connection to log in
     289  * step-by-step
    289290  * troubleshooting
    290291 * User modes and contexts
     
    297298 
    298299----
    299 == Logging into the switch for the first time. ==
     300== Using serial to log in (Logging into the switch for the first time.) ==
    300301
    301302Out of the box, the switches are not configured for Telnet. In this case, you need to log into the switch using the serial port, which uses a standard RS-232 cable. You'll also need to have software installed on your PC to be able to establish a serial connection. Kermit is the recommended choice - it's default settings allow you to connect without changing anything.
     303
     304=== The Steps. ===
    302305
    3033061. '''Name your switch.''' People names are easier to remember than IP addresses or machine-like names i.e. as01-hh-alex, and are easier to use in discussion if everyone agrees on names. Note, the names Bob, Nancy, and Andy are already taken.
     
    3463494. '''exiting.''' `Ctrl-\ q` ends the kermit session. The command `exit` or  `logout` will just log you out of the switch, but will not end the session.   
    347350
    348 ==== Troubleshooting serial connections ====
     351=== Troubleshooting serial connections ===
    349352
    350353 * Make sure you are root when you start up kermit.
     
    426429
    427430=== switching contexts and autocompletion ===
    428 From the intitial configuration prompt, you can let the switch autocomplete contexts. For example:
     431From the initial configuration prompt, you can let the switch autocomplete contexts. For example:
    429432{{{
    430433sw-sb09(config)# int gi 0/34     <<-- instead of "interface gigabitethernet 0/34"
     
    432435}}}
    433436
    434 However, if you are already in a context, and you want to switch to another context, you must type the first word in full, else the switch will throw an error:
     437However, if you are already in a context, and you want to switch to another context, you must type the first word in full, or else the switch will throw an error:
    435438{{{
    436439sw-sb09(config-if)# int gi 0/35
     
    460463!(config)#
    461464}}}
    462  3. Enable telnet logins to the switch. The "line vty" context allows you to do this. The numbers following the context denote which virtual terminals users can use to access the switch via telnet. Here, vty 0-2 can be used, meaning 3 users can simultaneously telnet into the switch.   
     465 3. Enable telnet logins to the switch. The "line vty" context allows you to do this. The numbers following the context denote the range of virtual terminals that the users have access to for telnet. Here, vty 0-2 can be used, meaning 3 users can simultaneously telnet into the switch.   
    463466{{{
    464467!(config)# line vty 0 2
    465468!(config-line)# exit
    466469!(config)#   
    467 !(config)# save
    468 (config)# exit
    469 #
    470470}}}
    471471
     
    479479
    480480=== Troubleshooting ===
    481  ...coming soon, if ever
     481 ...coming soon, if ever.
    482482
    483483----
    484 == Creating and configuring VLANs and VLAN interfaces ==
    485 
    486 
    487 
    488 
    489  There are also contexts that support ranges of interfaces/ports/VLANs. For example, to configure ports 1-4 and 30 at once:
    490 {{{
    491  sw-sb09(config)# int range gigabitethernet 0/1-4, gigabitethernet 0/30
    492  sw-sb09(config-if-range)#
    493 }}}
    494 Note how the prompt becomes "(config-if-range)" in this case.
    495 
    496 
    497 === Ports, VLANs, VLAN interfaces ===
    498 
    499 Before we get to configuring things, we cover a few basics about ports and VLANs in terms of these switches. You should be familiar with the following before going through this section or on to configuration:
     484== Creating and configuring VLANs and interface VLANs ==
     485
     486Here we cover the VLAN and interface VLAN in greater detail. You should be familiar with the following before going through this section or on to configuration:
    500487
    501488 * classic VLANs - http://en.wikipedia.org/wiki/Virtual_LAN
    502489 * tagging/trunking - http://en.wikipedia.org/wiki/IEEE_802.1Q
    503490 
    504 ==== ports ====
    505 
    506 By configuring the ports, you can control physical layer properties of the switch e.g. port speed, whether it is full or half duplex, and whether the port is up or down.         
    507 
    508 There are 48 RJ-45 (Ethernet) 1GBps ports and two sockets for GBICs (10GBps fiber links) on the switch. The switch identifies the ports by giving them unique names based on their speed and location. RJ45 ports are geth0/1 through geth0/48, and the GBICs, tengeth0/49 and 0/50.
    509 
    510 The command "show port status" can be used to see this:
    511 {{{
    512 sw-sb09> sh po st
    513 Date 2010/01/18 05:44:23 UTC
    514 Port Counts: 50
    515 Port  Name           Status T/R  All packets   Multicast   Broadcast     Discard
    516  0/ 1 geth0/1        up     Tx        950638         581      437112           0
    517                             Rx         83404           0        2376           0
    518  0/ 2 geth0/2        up     Tx        948981         581      437196           0
    519                             Rx         81580           0        2292           0
    520  0/ 3 geth0/3        up     Tx        948982         581      437194           0
    521                             Rx         81584           0        2294           2
    522  ...
    523  
    524  0/47 geth0/47       down   Tx             0           0           0           0
    525                             Rx             0           0           0           0
    526  0/48 geth0/48       up     Tx        281248          10        6975           0
    527                             Rx       4358554     3135424      481238           0
    528  0/49 tengeth0/49    down   Tx             0           0           0           0               
    529                             Rx             0           0           0           0
    530  0/50 tengeth0/50    down   Tx             0           0           0           0
    531                             Rx             0           0           0           0
    532 }}}
    533 
    534 The ports are counted beginning the top left RJ-45 at 0/1 and end at the lower right port at 0/48. If you look at the front of the switch you can see that they are labeled above the link lights of each of the pairs of ports.
    535 
    536491==== VLANs ====
    537492
    538 In the context of switching, VLANs tie Layer 1 with Layer 2 by assigning each port a VLAN. A host connected to a port assigned to VLAN n will become a member of that VLAN. The VLANs on a switch can be seen with the command `show vlan` under enabled (super user) mode:
     493In the context of switching, VLANs tie Layer 1 with Layer 2 by assigning each port a VLAN. A host connected to a port assigned to VLAN n will become a member of that VLAN. The VLANs on a switch can be seen with the command "show vlan" under enabled (super user) mode:
    539494{{{
    540495sw-sb09# sh vlan
     
    554509  Untagged(10)  :0/39-48
    555510VLAN ID:3     Type:Port based      Status:Up
    556   Learning:On            Tag-Translation:
    557   BPDU Forwarding:       EAPOL Forwarding:
    558   Router Interface Name:VLAN0003
    559   IP Address:
    560   Source MAC address: 0012.e2c8.1f9c(System)
    561   Description:CM
    562   Spanning Tree:
    563   AXRP RING ID:      AXRP VLAN group:
    564 
     511 
    565512...
    566 
    567 }}}
    568 Rest assured, there are many details in this output that you don't have to worry about.
     513}}}
     514
    569515   
    570 ==== VLAN interfaces ====
    571 
    572 In addition to the classic VLANs, the IP8800 also allows you to assign IP addresses and subnets to VLANs as if they are IP Layer constructs. These L2/L3 conglomerates are referred to as "VLAN interfaces", and give the switch extra functionality that would otherwise only be found in higher-layer devices.
    573 
    574 VLAN interfaces are also important because it provides a means to interact with a Layer 2 device (the switch) using Layer 3 means (IP). Hence, you will need to deal with VLAN interfaces if you want to, say, use telnet to communicate with the switch.
    575 
    576 Otherwise, VLAN interfaces are handled like any other VLAN.
     516==== Interface VLANs ====
     517
     518In addition to the classic VLANs, the IP8800 also allows you to assign IP addresses and subnets to VLANs as if they are IP Layer constructs. These L2/L3 conglomerates are referred to as "interface VLANs", and give the switch extra functionality that would otherwise only be found in higher-layer devices.
     519
     520Interface VLANs are also important because it provides a means to interact with a Layer 2 device (the switch) using Layer 3 means (IP). This is why we have to configure an interface VLAN in order to set up telnet.
     521
     522=== Creating/ Configuring VLANs and Interface VLANs ===
     523
     524The following steps outline the general configuration of VLANs and interface VLANs through the CLI.
     525
     5261. '''Creating VLANs.''' Entering the "vlan n" context creates a new VLAN when VLAN n doesn't exist already. Here we create VLAN 3, and name it "CM".   
     527{{{
     528(config)# vlan 3
     529!(config-vlan)# name "CM"
     530!(config-vlan)# exit
     531}}} 
     532
     533Many VLANs can be created at once by denoting a range of VLANs when entering a context:
     534{{{
     535(config)# vlan 1-8          <<--create 8 VLANs numbered 1 through 8
     536!(config-vlan)#
     537}}}
     538
     539
     540This cannot be done with interface VLANs (although you can configure multiple interface VLANs at once, if they exist, using context "interface range vlan <range>"). Hence when we need to generate many VLANs, we'd first create them with "vlan 1-n", then configure the VLANs as interface VLANs later. 
     541
     542
     543
     5442. '''Asssociate Ports.'''
     545
     546 There are also contexts that support ranges of interfaces/ports/VLANs. For example, to configure ports 1-4 and 30 at once:
     547{{{
     548 sw-sb09(config)# int range gigabitethernet 0/1-4, gigabitethernet 0/30
     549 sw-sb09(config-if-range)#
     550}}}
     551Note how the prompt becomes "(config-if-range)" in this case.
     552
     553
     554
     555==== ports ====
     556
     557By configuring the ports, you can control physical layer properties of the switch e.g. port speed, whether it is full or half duplex, and whether the port is up or down.         
     558
     559There are 48 RJ-45 (Ethernet) 1GBps ports and two sockets for GBICs (10GBps fiber links) on the switch. The switch identifies the ports by giving them unique names based on their speed and location. RJ45 ports are geth0/1 through geth0/48, and the GBICs, tengeth0/49 and 0/50.
     560
     561The command "show port status" can be used to see this:
     562{{{
     563sw-sb09> sh po st
     564Date 2010/01/18 05:44:23 UTC
     565Port Counts: 50
     566Port  Name           Status T/R  All packets   Multicast   Broadcast     Discard
     567 0/ 1 geth0/1        up     Tx        950638         581      437112           0
     568                            Rx         83404           0        2376           0
     569 0/ 2 geth0/2        up     Tx        948981         581      437196           0
     570                            Rx         81580           0        2292           0
     571 0/ 3 geth0/3        up     Tx        948982         581      437194           0
     572                            Rx         81584           0        2294           2
     573 ...
     574 
     575 0/47 geth0/47       down   Tx             0           0           0           0
     576                            Rx             0           0           0           0
     577 0/48 geth0/48       up     Tx        281248          10        6975           0
     578                            Rx       4358554     3135424      481238           0
     579 0/49 tengeth0/49    down   Tx             0           0           0           0               
     580                            Rx             0           0           0           0
     581 0/50 tengeth0/50    down   Tx             0           0           0           0
     582                            Rx             0           0           0           0
     583}}}
     584
     585The ports are counted beginning the top left RJ-45 at 0/1 and end at the lower right port at 0/48. If you look at the front of the switch you can see that they are labeled above the link lights of each of the pairs of ports.
     586
    577587
    578588 * Virtual interfaces - Also called "VLANs" by the switch. They do function as VLANs in the traditional sense, but in this case, are also associated with IP addresses used by the switch (i.e. the IP address used when telnetting).