Adding routes in AIX

Configuring a gateway in AIX

To configure a machine to act as a gateway, use these instructions.

For clarity, this procedure assumes that the gateway machine
connects two networks, and that the gateway machine has already been minimally
configured on one of the networks.

  1. Install and configure the second network adapter.
  2. Choose an IP address for the second network interface.
  3. Add a route to the second network.
  4. To use a machine as an internetwork router over TCP/IP networks,
    type:

    no -o ipforwarding=1
The gateway machine can now access both of the networks to which it
is directly attached.

  1. Table 1. Configuring gateway tasks
    Task SMIT fast path Command file Web-based System Manager Management Environment
    Displaying the Routing Table smit lsroute netstat -rn1 Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    —> Statistics.
    Adding a Static Route smit mkroute route add destination gateway2 Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    . Complete the following in Add/Change a static
    route
    : Destination Type, Gateway
    address
    , Network interface name (drop-down
    menu), Subnet mask, Metric (Cost),
    and the Enable active dead gateway detection check
    box. Click Add/Change Route.
    Removing a Static Route smit rmroute route delete destination gateway2 Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    . Select a route, and click Delete Route.
    Flushing the Routing Table smit fshrttbl route flush Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    —> Delete All.
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s