Find the answer to your Linux question:
Results 1 to 6 of 6
I use my cell phone for internet with easy tether and I have a network printer on eth 0 my web browser always tries to use eth 0 for access ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Aug 2010
    Posts
    229

    making a connection default


    I use my cell phone for internet with easy tether and I have a network printer on eth 0
    my web browser always tries to use eth 0 for access to the internet and I have to disconnect eth0 for it to use easytether0 how can I make it use easytether0 instead so I don't have to keep disconnecting my printer to get on the internet.

    I use Mint 10 and chromium for a browser

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Take a look at your routing table there should be the answer to your problem. The browser doesn't know the difference in interfaces it only knows it has to get to something. It is the routing table that tells the packets which interface to use.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Newbie
    Join Date
    Aug 2010
    Posts
    229
    how do I find the routing table

  4. #4
    Linux Newbie
    Join Date
    Aug 2010
    Posts
    229
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.117.0 0.0.0.0 255.255.255.0 U 1 0 0 easytether0
    192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1
    169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 easytether0
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    6

    re: making a connection default

    Hello,

    Please add new routing table entry in your linux pc.
    ip route add netowrk-id subnetmask dev easytether0
    ex: ip route 78.12.45.21(ip) 0.0.0.0(for ip) dev easytether0
    please check with this and let me know further help.

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    I am going to assume that 192.168.117.0 should be your default gw.

    Code:
    route add default gw <ip of your phone> easytether0
    Replace ip of your phone> with the ip address on your phone. You can make this the default by editing /etc/sysconfig/network and replacing what is list for your GATEWAY with your phones ip address.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •