Code Examples |
CODE EXAMPLE 4-1 SSH sshKeygen.sh Example
CODE EXAMPLE 4-2 SSL pemCreate.sh Example
CODE EXAMPLE 4-3 SSL root.cnf Example
CODE EXAMPLE 4-4 SSH server.cnf Example
CODE EXAMPLE 5-1 Creating Two VLANs
CODE EXAMPLE 5-2 Assigning Ports to VLAN2
CODE EXAMPLE 5-3 Assigning Ports to VLAN3
CODE EXAMPLE 5-4 Assigning VLAN3 as Default
CODE EXAMPLE 5-5 Assigning IP Addresses to VLAN2
CODE EXAMPLE 5-6 Protecting the Switchport
CODE EXAMPLE 6-1 Creating Two Port Channels
CODE EXAMPLE 6-2 Showing Port Channels
CODE EXAMPLE 6-3 Adding Ports to the Port Channels
CODE EXAMPLE 6-4 Enabling Both Port Channels
CODE EXAMPLE 7-1 Set Broadcast Storm Control for All Interfaces
CODE EXAMPLE 7-2 Set Multicast Storm Control for All Interfaces
CODE EXAMPLE 7-3 Set Unicast Storm Control for All Interfaces
CODE EXAMPLE 8-1 show igmpsnooping
CODE EXAMPLE 8-2 show ip igmp Interface
CODE EXAMPLE 8-3 show mac-address-table igmpsnooping
CODE EXAMPLE 8-4 show ip igmp interface
CODE EXAMPLE 8-5 (Config) #ip igmp
CODE EXAMPLE 8-6 #show ip igmp
CODE EXAMPLE 8-7 (Interface 1/0/2) #ip igmp
CODE EXAMPLE 9-1 Setting Up a Port Mirroring Session
CODE EXAMPLE 9-2 Showing the Port Mirroring Session
CODE EXAMPLE 9-3 Showing Status of Source and Destination Ports
CODE EXAMPLE 10-1 show port security
CODE EXAMPLE 10-2 show port security on a Specific Interface
CODE EXAMPLE 10-3 (Config) port security
CODE EXAMPLE 11-1 Specifying Port Description
CODE EXAMPLE 11-2 show port description
CODE EXAMPLE 12-1 Setting Global LLDP Parameters
CODE EXAMPLE 12-2 Setting Interface LLDP Parameters
CODE EXAMPLE 12-3 Showing Global LLDP Parameters
CODE EXAMPLE 12-4 Showing Interface LLDP Parameters
CODE EXAMPLE 13-1 Configuring DoS via CLI
CODE EXAMPLE 14-1 Enabling Routing for the Switch
CODE EXAMPLE 14-2 Enabling Routing for Ports on the Switch
CODE EXAMPLE 15-1 Enable Routing for the Switch
CODE EXAMPLE 15-2 Enable Routing for the Ports
CODE EXAMPLE 15-3 Enable RIP for the Switch
CODE EXAMPLE 15-4 Enable RIP for Ports 1/0/2 and 1/0/3
CODE EXAMPLE 16-1 Enabling Routing for the Switch
CODE EXAMPLE 16-2 Assigning IP Addresses for Ports
CODE EXAMPLE 16-3 Specifying Router ID and Enabling OSPF for the Switch
CODE EXAMPLE 16-4 Enabling and Configuring OSPF for the Ports
CODE EXAMPLE 16-5 Enabling Routing for the Switch
CODE EXAMPLE 16-6 Enabling Routing and Assigning IP Ports 1/0/2, 1/0/3, and 1/0/4
CODE EXAMPLE 16-7 Specifying Router ID and Enabling OSPF for the Switch
CODE EXAMPLE 16-8 Enabling OSPF for the Ports
CODE EXAMPLE 17-1 Creating Two VLANs
CODE EXAMPLE 17-2 Enabling Routing for the VLANs
CODE EXAMPLE 17-3 Configuring IP Addresses and Subnet for the VLAN Ports
CODE EXAMPLE 17-4 Configuring VLAN Routing with RIP Support
CODE EXAMPLE 17-5 Enabling RIP for the Switch
CODE EXAMPLE 17-6 Configuring IP Addresses and Subnet Mask for Non-virtual Router Port
CODE EXAMPLE 17-7 Enabling RIP for VLAN Router Ports
CODE EXAMPLE 17-8 Creating VLANs and Enabling VLAN Routing on an Inter-area Router With OSPF
CODE EXAMPLE 17-9 Speciying Router ID
CODE EXAMPLE 17-10 Enabling OSPF for the VLAN and Router Ports
CODE EXAMPLE 17-11 Set OSPF Priority and Cost for the VLAN and Router Ports
CODE EXAMPLE 18-1 Enabling Routing for the Switch
CODE EXAMPLE 18-2 Configuring IP Addresses and Subnet Masks
CODE EXAMPLE 18-3 Enabling VRRP for the Switch
CODE EXAMPLE 18-4 Assinging a Virtual Router to the Port
CODE EXAMPLE 18-5 Specifying IP Address for Virtual Router
CODE EXAMPLE 18-6 Enabling VRRP on the Port
CODE EXAMPLE 18-7 Enabling Routing for the Switch
CODE EXAMPLE 18-8 Configuring IP Addresses and Subnet Masks
CODE EXAMPLE 18-9 Enabling VRRP for the Switch
CODE EXAMPLE 18-10 Assigning a Virtual Router to the Port
CODE EXAMPLE 18-11 Specifying the IP Address for the Virtual Router
CODE EXAMPLE 18-12 Setting Port Priority
CODE EXAMPLE 18-13 Enabling VRRP on the Port
CODE EXAMPLE 19-1 show ip interface
CODE EXAMPLE 19-2 ip proxy-arp
CODE EXAMPLE 20-1 Configuring the Interface
CODE EXAMPLE 20-2 Setting Unsolicited Report Interval
CODE EXAMPLE 20-3 Resetting Host Interface Status Parameters
CODE EXAMPLE 20-4 Showing IGMP Proxy Host Interfaces
CODE EXAMPLE 20-5 Showing Host Interface Status
CODE EXAMPLE 20-6 Showing IGMP Proxy Groups
CODE EXAMPLE 20-7 Showing Detailed Information About Proxy Groups
CODE EXAMPLE 21-1 Device 1
CODE EXAMPLE 21-2 Device 2
CODE EXAMPLE 22-1 Set Up a MAC Access Label
CODE EXAMPLE 22-2 Specify MAC ACL Attributes
CODE EXAMPLE 22-3 Configure MAC Access Group
CODE EXAMPLE 22-4 Set Up ACL with Permit Action
CODE EXAMPLE 22-5 Show MAC Access Lists
CODE EXAMPLE 23-1 Configuring Ingress
CODE EXAMPLE 23-2 Configuring Egress
CODE EXAMPLE 24-1 Creating a Diffserv Class Type All
CODE EXAMPLE 24-2 Creating a Diffserv Policy for Inbound Traffic
CODE EXAMPLE 24-3 Attaching the Policy to Interfaces
CODE EXAMPLE 24-4 Setting CoS Queue for Egress
CODE EXAMPLE 24-5 Setting Queue on All Ports
CODE EXAMPLE 24-6 Creating a Diffserv Classifier
CODE EXAMPLE 24-7 Creating a Second Diffserv Classifier
CODE EXAMPLE 24-8 Creating a Diffserv Policy
CODE EXAMPLE 24-9 Attaching the Policy to Inbound Interface
CODE EXAMPLE 25-1 Configuring 802.1x Port Access Control
CODE EXAMPLE 26-1 Configuring RADIUS for Authentication of Users
CODE EXAMPLE 27-1 Configuring Access Control for Networked Devices
CODE EXAMPLE 29-1 Configuring Traceroute
CODE EXAMPLE 30-1 script Command
CODE EXAMPLE 30-2 script list and script delete Commands
CODE EXAMPLE 30-3 script apply running-config.scr Command
CODE EXAMPLE 30-4 show running-config Command
CODE EXAMPLE 30-5 copy nvram: script Command
CODE EXAMPLE 30-6 script validate running-config.scr Command
CODE EXAMPLE 30-7 script validate default.scr Command
CODE EXAMPLE 31-1 show network Command
CODE EXAMPLE 31-2 show telnet Command
CODE EXAMPLE 31-3 transport output telnet Command
CODE EXAMPLE 31-4 session-limit and session-timeout Commands
CODE EXAMPLE 32-1 Creating a Pre-login Banner
CODE EXAMPLE 33-1 show sntp Command
CODE EXAMPLE 33-2 show sntp client
CODE EXAMPLE 33-3 show sntp server Command
CODE EXAMPLE 33-4 Configure sntp Command
CODE EXAMPLE 33-5 sntp client mode broadcast Command
CODE EXAMPLE 33-6 Configure sntp server Command
CODE EXAMPLE 33-7 Configure sntp client port Command
CODE EXAMPLE 34-1 show logging Command
CODE EXAMPLE 34-2 show logging buffered Command
CODE EXAMPLE 34-3 show logging traplogs Command
CODE EXAMPLE 34-4 show logging hosts Command
CODE EXAMPLE 34-5 Logging Port Configuration Commands
Copyright © 2009 Sun Microsystems, Inc. All rights reserved.