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 | |
| 486 | Here 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: |
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 | | |
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 | |
| 518 | 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 "interface VLANs", and give the switch extra functionality that would otherwise only be found in higher-layer devices. |
| 519 | |
| 520 | Interface 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 | |
| 524 | The following steps outline the general configuration of VLANs and interface VLANs through the CLI. |
| 525 | |
| 526 | 1. '''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 | |
| 533 | Many 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 | |
| 540 | This 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 | |
| 544 | 2. '''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 | }}} |
| 551 | Note how the prompt becomes "(config-if-range)" in this case. |
| 552 | |
| 553 | |
| 554 | |
| 555 | ==== ports ==== |
| 556 | |
| 557 | 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. |
| 558 | |
| 559 | 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. |
| 560 | |
| 561 | The command "show port status" can be used to see this: |
| 562 | {{{ |
| 563 | sw-sb09> sh po st |
| 564 | Date 2010/01/18 05:44:23 UTC |
| 565 | Port Counts: 50 |
| 566 | Port 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 | |
| 585 | 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. |
| 586 | |