Default Gateway IP Address for a SNAT Router
When setting up a
SNAT router, you need to define a default gateway. In Cisco Modeling Labs, the
default gateway is the internal SNAT router that the system defines for each
active project. As system administrator, you need to provide end users with the
IP address of the SNAT router that maps to their project(s).
The SNAT router
IP address is statically defined. It is only reset when a project is deleted;
in which case, it is removed.
To determine the IP
address for a SNAT router, complete the following steps:
Log in to the
Cisco Modeling Labs server.
net-list command to verify that the targeted SNAT project(s) appear. This
command lists all of the active networks on the Cisco Modeling Labs server.
Each project is automatically assigned a SNAT network. The format is
<project name>_snat. Verify that the project is active and that it has a
corresponding SNAT network.
router-list command to locate the unique identifier (ID) for the SNAT
router for the targeted project. Take note of this identifier as you will need
it to run the next series of commands.
Modeling Labs server automatically creates a SNAT router for reach project.
For example, if you have a project
will need to provide the IP address of the SNAT router associated with the
to the members of that project.
router-show <id> command to verify that the router for the targeted
project is ACTIVE. The id you enter is the string displayed next to the project
name for the network_id field. You should see that the status field for the
router is ACTIVE.
which IP address on the SNAT router will act as the gateway, first determine
the full list of ports on the SNAT router for the targeted project by entering
router-port-list <id> command, where id is the id field from the list
displayed from the neutron router-show <id> command.
router may have a number of active ports.
which one is assigned to the SNAT router and will therefore be used by the end
users as the default gateway in their nodes, enter the
subnet-show <id> command for each port until you see one that has the
name format of <project name>_snat, for example,
This is the default gateway IP address to provide to your end users.