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.
Question
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)- A12% (4)
- B76% (26)
- C9% (3)
- D3% (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.
`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.
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.
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.
`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
Community Discussion
No community discussion yet for this question.