cisco — Sample VirtualPortGroup Configuration

Sample VirtualPortGroup Configuration VirtualPortGroups are supported only on Cisco routing platforms. Note When using the VirtualPortGroup interface for Guest Shell networking, the VirtualPortGroup interface must have a static IP address configured. The front port interface must be connected to the Internet and Network Address Translation (NAT) must be configured between the VirtualPortGroup and the front panel port. The following is a sample VirtualPortGroup configuration:

Device> enable Device# configure terminal Device(config)# interface VirtualPortGroup 0 Device(config-if)# ip address 192.168.35.1 255.255.255.0 Device(config-if)# ip nat inside Device(config-if)# no mop enabled Device(config-if)# no mop sysid Device(config-if)# exit Device(config)# interface GigabitEthernet 0/0/3 Device(config-if)# ip address 10.0.12.19 255.255.0.0 Device(config-if)# ip nat outside Device(config-if)# negotiation auto Device(config-if)# exit Device(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.1 Device(config)# ip route 10.0.0.0 255.0.0.0 10.0.0.1 !Port forwarding to use ports for SSH and so on.

Device(config)# ip nat inside source static tcp 192.168.35.2 7023 10.0.12.19 7023 extendable Device(config)# ip nat outside source list NAT_ACL interface GigabitEthernet 0/0/3 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 !

App-hosting configuration Device(config)# app-hosting appid guestshell Device(config-app-hosting)# app-vnic gateway1 virtualportgroup 0 guest-interface 0 Device(config-app-hosting-gateway)# guest-ipaddress 192.168.35.2 netmask 255.255.255.0 Device(config-app-hosting-gateway)# exit Device(config-app-hosting)# app-resource profile custom Device(config-app-resource-profile-custom)# cpu 1500 Device(config-app-resource-profile-custom)# memory 512 Device(config-app-resource-profile-custom)# end Device# guestshell enable Device# guestshell run python Guest Shell Sample VirtualPortGroup Configuration Guest Shell 23