Sun Logo


Sun Netra CP3240 Switch User’s Guide

820-3252-11



Contents

Figures

Tables

Code Examples

Preface

1. Getting Started

Default Settings

Initial Configuration

procedure iconsmall spaceObtain Configuration Information

In-band and Out-of-band Connectivity

Initial Access Configuration

MGMT Serial Configuration

Configuring for In-band Connectivity

procedure iconsmall spaceUsing DHCP

procedure iconsmall spaceUsing a Static IP

Configuring for Out-Of-Band Connectivity

procedure iconsmall spaceUsing DHCP

procedure iconsmall spaceUsing a Static IP

Saving Settings

Quick Start

System Information and System Setup

Quick Startup Software Version Information

Quick Startup Physical Port Data

Quick Startup User Account Management

Quick Startup IP Address

Quick Startup Uploading from Networking Device to TFTP Server

Quick Startup Downloading from TFTP Server

Quick Startup Factory Defaults

2. Using the Command-Line Interface

Command Syntax

Command Conventions

Parameter Conventions

Parameter Values

Slot/Port Naming Convention

‘No’ Form of a Command

Command Modes

Mode-Based Topology

Mode-Based Command Hierarchy

User Exec Mode

Privileged Exec Mode

Global Config Mode

VLAN Mode

Operation Flow

Command Completion and Abbreviation

CLI Error Messages

CLI Line-Editing Conventions

Using CLI Help

Accessing the CLI

Comments

3. Using the Web Interface

Configuring for Web Access

procedure iconsmall spaceTo Configure for Web Access

Starting the Web Interface

Web Page Layout

Configuring an SNMP V3 User Profile

Command Buttons

4. Establishing Management Security

Certificate Generation

Configuring Secure Shell

Configuring Secure Socket Layer

Using Certificate Generation Scripts

SSH sshKeygen.sh

SSL pemCreate.sh

SSL root.cnf

SSH server.cnf

5. Configuring Virtual LANs

VLAN Configuration Example

CLI Examples

Example 1: Create Two VLANs

Example 2: Assign Ports to VLAN2

Example 3: Assign Ports to VLAN3

Example 4: Assign VLAN3 as the Default VLAN

Example 5: Assign IP Addresses to VLAN 2

Web Interface

Private Edge VLANs

CLI Example

Example 1: Switchport Protected

Example 2: Show Switchport Protected

6. Configuring Port Channels by Link Aggregation

Using the Link Aggregation Feature

Configuring Link Aggregation via CLI

CLI Example 1: Create Two Port Channels

CLI Example 2: Add Physical Ports to the Port Channels

CLI Example 3: Enable Both Port Channels

Configuring Link Aggregation via Web Interface

7. Configuring Storm Control

Understanding Traffic Storms

CLI Examples

Example 1: Set Broadcast Storm Control for All Interfaces

Example 2: Set Multicast Storm Control for All Interfaces

Example 3: Set Unicast Storm Control for All Interfaces

8. Monitoring IGMP Snooping

CLI Examples

Example 1: show igmpsnooping

Example 2: show ip igmp Interface

Example 3: show mac-address-table igmpsnooping

Example 4: show ip igmp interface

Example 5: (Config) #ip igmp

Example 6: #show ip igmp

Example 7: (Interface 1/0/2) #ip igmp

Web Examples

9. Configuring Port Mirroring

Configuring Port Mirroring via CLI

Example 1: Set Up a Port Mirroring Session

Example 2: Show the Port Mirroring Session

Example 4: Show Status of Source and Destination Ports

Configuring Port Mirroring via Web Interface

10. Configuring Port Security

Port Security Benefits

Configuring Port Security via CLI

Example 1: show port security

Example 2: show port security on a Specific Interface

Example 3: (Config) port security

Configuring Port Security via Web Interfaces

11. Configuring Port Description

Configuring Port Description via CLI

Example 1: Enter a Description for a Port

Example 2: Show the Port Description

Configuring Port Description via the Web Interface

12. Configuring Link Layer Discovery Protocol

Configuring LLDP via CLI

Example 1: Set Global LLDP Parameters

Example 2: Set Interface LLDP Parameters

Example 3: Show Global LLDP Parameters

Example 4 Show Interface LLDP Parameters

Configuring LLDP via Web Interface

13. Configuring Denial of Service Attack Protection

Configuring Denial of Service via CLI

14. Configuring Port Routing

Understanding Port Routing

Configuring Port Routing via CLI

Example 1. Enabling Routing for the Switch

Example 2. Enabling Routing for Ports on the Switch

Configuring Port Routing via Web Interface

15. Configuring Routing Information Protocol

Understanding Routing Information Protocol

Configuring RIP via CLI

Example 1: Enable Routing for the Switch:

Example 2: Enable Routing for Ports

Example 3. Enable RIP for the Switch

Example 4. Enable RIP for Ports 1/0/2 and 1/0/3

Configuring RIP via Web Interface

16. Configuring Open Shortest Path First (OSPF)

Understanding Open Shortest Path First (OSPF)

Configuring OSPF via CLI

Example 1: Configuring an Inter-Area Router

Enable Routing for the Switch

Assign IP Addresses for Ports

Specify Router ID and Enable OSPF for the Switch

Enable and Configure OSPF for the Ports

Example 2: Configuring OSPF on a Border Router

Enable Routing for the Switch

Enable Routing and Assign IP for Ports 1/0/2, 1/0/3, and 1/0/4

Specify Router ID and Enable OSPF for the Switch

Enable OSPF for the Ports

Configuring OSPF via Web Interface

Configuring an Inter-Area Router

Configuring a Border Router

17. Configuring VLAN Routing

Understanding VLAN Routing

Configuring VLAN Routing via CLI

Example 1: Create Two VLANs

Example 2: Set Up VLAN Routing for the VLANs and the Switch

Configuring VLAN Routing via Web Interface

Configuring VLAN Routing With RIP

Configuring VLAN With RIP via CLI

Example 1: Configuring VLAN Routing with RIP Support

Example 2: Enable RIP for the Switch

Configuring VLAN Routing with RIP via Web Interface

Configuring VLAN Routing With OSPF

Configuring VLAN Routing With OSPF via CLI

Example 1: OSPF on FASTPATH as an Inter-area Router

Example 2: Specify the Router ID and Enable OSPF for the Switch

Configuring VLAN Routing via Web Interface

18. Configuring Virtual Router Redundancy Protocol

Configuring VRRP via CLI

Example 1: Configuring VRRP on FASTPATH as a Master Router

Example 2: Configuring VRRP on FASTPATH as a Backup Router

Configuring VRRP via Web Interface

19. Proxy Address Resolution Protocol (ARP)

Configuring Proxy ARP via CLI

Example 1: show ip interface

Example 2: ip proxy-arp

Configuring Proxy ARP via Web Interface

20. Configuring IGMP Proxy

Understanding IGMP Proxy

Configuring IGMP Proxy via CLI

Example 1: Configuring the Interface

Example 2: Set the Unsolicited Report Interval

Example 3: Reset the Host Interface Status Parameters

Example 4: Show IGMP Proxy Host Interfaces

Example 5: Show Detailed Listing of Host Interface Status

Example 6: Show IGMP Proxy Groups

Example 7: Show Detailed Information about IGMP Proxy Groups

21. Configuring Internet Protocol (IPv6)

Understanding PPv6

Using IPv6 Configurations

Configuring IPv6 via CLI

22. Configuring Access Control Lists (ACLs)

Understanding Access Control Lists

Features

Limitations

MAC ACLs

IP ACLs

Configuring Access Control Lists

procedure iconsmall spaceTo Configure ACLs

Setting Up an IP ACL via CLI

Example 1: Create ACL 179 and Define an ACL Rule

Example 2: Define the Second Rule for ACL 179

Example 3: Apply the rule to Inbound Traffic on Port 1/0/2

Setting Up a MAC ACL via CLI

Example 1: Set up a MAC Access List

Example 2: Specify MAC ACL Attributes

Example 3: Configure MAC Access Group

Example 4: Set up an ACL with Permit Action

Example 5: Show MAC Access Lists

Setting Up ACLs via Web Interface

23. Configuring Class of Service Queuing

Understanding Class of Service (CoS)

Ingress Port Configurations

Trusted and Untrusted Ports/CoS Mapping Table

CoS Mapping Table for Trusted Ports

Egress Port Configurations

Queue Configurations

Configuring CoS Mapping and Queues via CLI

Configuring CoS Mapping and Queues via Web Interface

24. Configuring Differentiated Services

Understanding Differentiated Services (DiffServ)

Configuring Differentiated Services via CLI

Enabling DiffServ Inbound

Configuring DiffServ on FASTPATH Software

Configuring Differentiated Services via Web Interface

Configuring DiffServ for Voice Over IP (VoIP)

25. Configuring Network Access Control

Understanding Port-Based Network Access Control

Configuring Network Access Control

26. Configuring RADIUS

Authenticating Users Through RADIUS

Configuring RADIUS

27. Configuring Access Control for Networked Devices

Understanding the Terminal Access Controller Access Control System

Configuring Access Control for Networked Devices

28. Configuring DHCP Filtering

Understanding Dynamic Host Configuration Protocol (DHCP) Filtering

Configuring DHCP Filtering

Example 1: Enable DHCP Filtering for the Switch

Example 2: Enable DHCP Filtering for an Interface

Example 3: Show DHCP Filtering Configuration

29. Configuring Traceroute

Configuring Traceroute

30. Generating Script Files

Understanding Configuration Scripting

Configuring Scripting

Example 1: script

Example 2: script list and script delete

Example 3: script apply running-config.scr

Example 4: show running-config

Example 5: copy nvram: script

Example 6: script validate running-config.scr

Example 7: Validate Another Configuration Script

31. Establishing an Outbound Telnet Connection

Configuring a Telnet Connection via CLI

Example 1: show network

Example 2: show telnet

Example 3: transport output telnet

Example 4: session-limit and session-timeout

Configuring a Telnet Connection via Web Interface

32. Creating a Pre-Login Banner

Creating a Pre-login Banner via CLI

procedure iconsmall spaceTo Create a Pre-Login Banner

Removing a Pre-login Banner via CLI

33. Configuring Simple Network Time Protocol (SNTP)

Configuring SNTP via CLI

Example 1: show sntp

Example 2: show sntp client

Example 3: show sntp server

Example 4: configure sntp

Example 5: configure sntp client mode

Example 6: configuring sntp server

Example 7: configure sntp client port

Configuring SNTP via Web Interface

34. Storing and Collecting Message Logs with Syslog

Configuring Syslog via CLI

Example 1: show logging

Example 2: show logging buffered

Example 3: show logging traplogs

Example 4: show logging hosts

Example 5: logging port configuration

Configuring Syslog via Web Interface

Interpreting Log Files

Index