Manage network interfaces
Access Gateway can use multiple network interfaces. How many network interfaces are defined and how they're used is primarily based on preference.
Managing network interfaces involves the following tasks:
- Creating a network interface: See Network interfaces for information about adding second and subsequent network interfaces by virtual environment.
- Assign IP address to an interface: Assign an IP address to an interface.
- Managing interface routing: Define appropriate routing information for a given interface.
- Managing DNS: Add DNS servers for an Access Gateway node or cluster.
- NIC bonding: Bond interfaces together to improve performance.
- cURL connectivity test: Test connectivity to a URL.
All network operations are performed using the Access Gateway Management console.
To access the command-line management console:
- Use SSH to connect to the Access Gateway Management console.
- Sign in using the management console credentials:
Username: oag-mgmt
Password: Default credentials
- Select 1 - Manage network interfaces to enter the Network menu.
- Select, by number, a network interface to manage.
Assign IP address to an interface
To manage the IP address associated with a given network interface:
- Connect to the Access Gateway Management console and go to a network interface as previously described.
- Enter the line number of the interface that you want to manage, or enter x to exit: Available networking interfaces. Select interface to manage: 1: eth0 2: eth1 3: eth2 . . . x: Exit The system displays information about the selected interface, followed by the managing interface submenu. For example, if you enter 3 to view eth2, the looks similar to this example: Managing interface eth2 (MAC 09:. . . :00) Status: UP DHCP IP Address: 192.168.1.230/24 Routes: default via 192.168.1.1 proto dhcp metric 103 dev eth2 192.168.1.0/24 proto kernel scope link src 192.168.1.230 metric 103 dev eth2 a: Assign static IP address d: Set up DHCP r: Manage Routes x: Exit
- Enter a to assign a static IP address.
If an interface already has a static IP address, or has a DHCP-assigned address, then this option is unavailable.
- Enter the IP address and press Enter.
IP Address: 192.168.1.230
- Enter the netmask for the address, as four hexadecimal digits and press Enter.
Netmask: 255.255.255.0
- Enter the gateway address for the static IP address and press Enter.
Gateway: 192.168.1.1
- The system displays a confirmation message: The following network configuration change will be made to your running configuration: Configuring static IP address 192.168.1.230/255.255.255.0 on device eth3 with gateway 192.168.1.1 a: abort change c: continue with change
- Enter c to continue with the change, or a to abort the change.
- Enter the IP address and press Enter.
- Enter d to set up DHCP for the interface.Setup DHCP for device ethX Are you sure you want to setup DHCP (y/n):
- Enter y: The following network configuration change will be made to your running configuration: Configuring DHCP for device ethX a: abort change c: continue with change
Managing interface routing
To manage routes for a given network interface:
- Connect to the Access Gateway Management console and go to a network interface as previously described.
Manage Route
Enter r to open the Manage Routes submenu and begin the Add route process.
Managing routes for interface eth3 Routes: default via 192.168.1.1 proto static metric 103 dev eth1 192.168.1.0/24 proto kernel scope link src 192.168.1.230 metric 103 dev eth3 a: Add route d: Delete route x: Exit
-
Enter a to add a route.
- Enter y to make this route the default route, otherwise enter n. Press Enter.
Default? (y/n)
- Enter the gateway for the route and press Enter.
Gateway: 192.168.1.1
- Enter the destination for the route and press Enter.
Destination (CIDR): 192.168.195.78
- The system displays a confirmation message:The following network configuration change will be made to your running configuration: adding route to 192.168.1.1 on dev eth3 a: abort chance c: continue with change
- Enter y to make this route the default route, otherwise enter n. Press Enter.
- Enter d to delete a route. This displays a list of routes that you can choose to delete.
- Enter the number of the route to delete.
- Enter y to confirm. The route is unassigned from the interface and you return to the Add/Delete IP addresses submenu.
- Commit changes
- Return to the main networking menu.
- Enter c to commit changes.
Managing DNS
The Manage DNS Network submenu allows you to manage DNS settings.
-
Select 8 from the network menu. The current DNS Name Server settings appear.
Managing DNS Setting Current Name Servers: Primary: 192.168.8.8 Secondary: Tertiary: Search Domains: okta.com someotherdomain.com 1: Manage DNS servers 2: Manage search domains x: Exit - Enter x to exit and return to the parent menu.
NIC bonding
NIC bonding is the process of combining two ethernet ports together into a bonded virtual port. Typically, NIC bonding is used if there is sufficient traffic on a single port to saturate a single network connection.
-
Enter 5 to set up NIC bonding.
-
Enter the IP address, and select Enter.
-
Enter the netmask value and select Enter.
-
Enter the default gateway value and select Enter.
-
Enter the primary DNS server value and select Enter.
-
Enter the secondary DNS server value and select Enter.
-
Enter the search domain address and select Enter.
-
Press c to commit the changes.
-
Review the network configuration and enter y and select Enter to confirm the changes. Alternatively, enter n and select Enter to discard your changes and return to the Networking menu.
-
After the change is complete, use any key to return to the Networking menu.
cURL connectivity test
You can validate connectivity to your backend servers or other URLs.
- Enter 1 - Network.
- Enter u - Connectivity test (cURL).
- Enter the URL to which you want to test connectivity.
- Press Enter to return to the 1 - Network menu.