Example: Configuring the AppGigabitEthernet Interface for Guest Shell The following task is applicable only to Catalyst switches that have the AppGigabitEthernet interface. All other Catalyst switches use the management port. Note The following example shows how to configure an AppGigabitEthernet interface for Guest Shell. Here, VLAN 4094 creates a Network Address Translation (NAT) this is used for Guest Shell. VLAN 1 is an external interface.
Device> enable Device# configure terminal Device(config)# ip nat inside source list NAT_ACL interface vlan 1 overload Device(config)# ip access-list standard NAT_ACL Device(config-std-nacl)# permit 192.168.0.0 0.0.255.255 Device(config-std-nacl)# exit Device(config)# vlan 4094 Device(config-vlan)# exit Device(config)# interface vlan 4094 Device(config-if)# ip address 192.168.2.1 255.255.255.0 Device(config-if)# ip nat inside Device(config-if)# exit Device(config)# interface vlan 1 Device(config-if)# ip nat outside Device(config-if)# exit Device(config)# ip routing Device(config)# ip route 0.0.0.0 0.0.0.0 209.165.201.1 Device(config)# interface AppGigabitEthernet 1/0/1 Device(config-if)# switchport mode trunk Device(config-if)# exit Device(config)# app-hosting appid guestshell Device(config-app-hosting)# app-vnic AppGigEthernet trunk Device(config-config-app-hosting-trunk)# vlan 4094 guest-interface 0 Device(config-config-app-hosting-vlan-access-ip)# guest-ipaddress 192.168.2.2 netmask 255.255.255.0 Device(config-config-app-hosting-vlan-access-ip)# exit Device(config-config-app-hosting-trunk)# exit Device(config-app-hosting)# app-default-gateway 192.168.2.1 guest-interface 0 Device(config-app-hosting)# name-server0 172.16.0.1 Device(config-app-hosting)# name-server1 198.51.100.1 Device(config-app-hosting)# end Device# guestshell enable Example:
Enabling Guest Shell on the Management Interface This example is applicable to Cisco Catalyst 9200 Series Switches, Cisco Catalyst 9300 Series Switches, Cisco Catalyst 9400 Series Switches, Cisco Catalyst 9500 Series Switches, and Cisco Catalyst 9600 Series Switches. Device> enable Device# configure terminal Device(config)# app-hosting appid guestshell Device(config-app-hosting)# app-vnic management guest-interface 0 Device(config-app-hosting-mgmt-gateway)# end Guest Shell Example: Configuring the AppGigabitEthernet Interface for Guest Shell Guest Shell 24