Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6724327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:40:36+00:00 2026-05-26T09:40:36+00:00

By default, the packets of default connection will use eth0 to go out/in. The

  • 0

By default, the packets of default connection will use eth0 to go out/in.
The default gateway in the routing table is eth0’s gw ip.

When another interface said eth1 is up, I want to add another default gateway for eth1.
Is that possible in android?
Since I cannot add another default gateway for eth1 because there already exists eth0’s.

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:40:37+00:00Added an answer on May 26, 2026 at 9:40 am

    A default gateway is only one, it’s the default. You can have several interfaces each one with a different gateway, but only one default (your system cannot choose).

    Imagine this:

    eth0 - IP: 192.168.0.10/24 Gateway: 192.168.0.1
    eth1 - IP: 192.168.1.10/24
    

    You should have at least 3 routes (usually automatic):

    To go to some IP on 192.168.0.0, go thru eth0.
    To go to some IP on 192.168.1.0, to thru eth1.
    To go to anywhere else, go thru 192.168.0.1.
    

    So you see, you don’t need more than one default gateway. What you might want is a gateway for a specific route. Imagine that you have the network 192.168.2.0 that can only be reached by using gateway at 192.168.1.1. With the above configuration, your machine would try to use the default gateway 192.168.0.1. You could use something like:

    route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.1
    

    This way you’ll have a 2 gateways, but only 1 is the default. This second one is only used for 192.168.2.0 network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to route packets sended from my application to another gateway but i
I found out how to change the default value of max_allowed_packet in MySQL using
The default behaviour in browsers is to select the next form element. I want
Will Oracle PreparedStatement.executeUpdate() API throw an exception of type SQLException if the connection pool
I've been trying to send packets to a tap interface using python. I'm monitoring
In Linux, one can specify the system's default receive buffer size for network packets,
I have a linux server with two NICs (eth0 and eth1), and have set
While using the default (blocking) behavior on an UDP socket, in which case will
Default JVM uses maximum 1.5 GB RAM/JVM Java application. But my Server have 8
The default markdown syntax for code blocks is indented by 4 spaces on each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.