nerdexam
Cisco

350-901 · Question #2

On a Cisco Catalyst 9300 Series Switch, the guest shell is being used to create a service within a container. Which change is needed to allow the service to have external access?

The correct answer is B. Apply ip nat inside on Interface VirtualPortGroup0. To enable external network access for a service running within a guest shell container on a Cisco Catalyst 9300 Series Switch, the VirtualPortGroup0 interface must be configured as an ip nat inside interface.

Cisco Platforms and Development

Question

On a Cisco Catalyst 9300 Series Switch, the guest shell is being used to create a service within a container. Which change is needed to allow the service to have external access?

Options

  • AApply ip nat overload on VirtualPortGroup0.
  • BApply ip nat inside on Interface VirtualPortGroup0.
  • CApply ip nat outside on Interface VirtualPortGroup0.
  • DApply ip nat inside on Interface GigabitEthernet1.

How the community answered

(34 responses)
  • A
    12% (4)
  • B
    76% (26)
  • C
    9% (3)
  • D
    3% (1)

Why each option

To enable external network access for a service running within a guest shell container on a Cisco Catalyst 9300 Series Switch, the `VirtualPortGroup0` interface must be configured as an `ip nat inside` interface.

AApply ip nat overload on VirtualPortGroup0.

`ip nat overload` is a command used to enable Port Address Translation (PAT) on an outside interface, but it requires the interface to first be defined as an `ip nat inside` or `ip nat outside` interface.

BApply ip nat inside on Interface VirtualPortGroup0.Correct

The `VirtualPortGroup0` interface is the internal interface used by the guest shell and its containers on Cisco IOS-XE devices. Applying `ip nat inside` to `Interface VirtualPortGroup0` correctly designates it as part of the internal network, enabling outbound NAT for the guest shell service to access external networks.

CApply ip nat outside on Interface VirtualPortGroup0.

Applying `ip nat outside` on `Interface VirtualPortGroup0` would incorrectly identify the guest shell's internal interface as external, preventing proper NAT for outbound container traffic.

DApply ip nat inside on Interface GigabitEthernet1.

`GigabitEthernet1` is a physical network interface, not the dedicated virtual interface (`VirtualPortGroup0`) through which the guest shell container communicates.

Concept tested: Cisco IOS-XE Guest Shell NAT configuration

Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1610/b_1610_prog_cr_book/b_1610_prog_cr_book_chapter_0100.html

Topics

#Guest Shell#Cisco IOS XE#Network Address Translation (NAT)#Container Networking

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice