cisco — Managing the Guest Shell

An application or management interface must also be configured to enable and operate Guest Shell. See "Configuring the AppGigabitEthernet Interface for Guest Shell" and "Enabling Guest Shell on the Management Interface" sections for more information on enabling an interface for Guest Shell. SUMMARY STEPS 1. enable 2. guestshell enable 3. guestshell run linux-executable 4. guestshell run bash 5. guestshell disable 6. guestshell destroy DETAILED STEPS Procedure Guest Shell Managing the Guest Shell Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 guestshell enable Example:

Device# guestshell enable Enables the Guest Shell service. Note • The guestshell enable command uses the management virtual routing and forwarding (VRF) instance for networking. • When using VirtualPortGroups (VPGs) for front panel networking, the VPG must be configured first. • The guest IP address and the gateway IP address must be in the same subnet. Step 3 guestshell run linux-executable Example: Device# guestshell run python or Device# guestshell run python3 Executes or runs a Linux program in the Guest Shell. Note In Cisco IOS XE Amsterdam 17.3.1 and later releases, only Python version 3 is supported. Step 4 guestshell run bash Example:

Device# guestshell run bash Starts a Bash shell to access the Guest Shell. Step 5 guestshell disable Example: Disables the Guest Shell service. Guest Shell 14