Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-08-2005, 11:22 AM   #1
Registered: Mar 2005
Posts: 49

Rep: Reputation: 15
How to change defualt gateway interface

I would like to know how i can change my default gateway interface from eth0 to eth1. I am trying to acces my internet through my pci wirless card on eth1.

My eth0 is set up for my thin clients andi have setup eth1 to be able to access the internet. my default gateway for eth1 which is suppose to access the internet is, but it is showing the defualt gateway in eth0,

Why is that??

O by the way my default gatway for eth0 should is

My routing table it looks like this

root@bangde ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0
default UG 0 0 0 eth0
default UG 0 0 0 eth0
default UG 0 0 0 eth0

[root@bangde ~]#

Need your help bad, been atthis for more then 2 days
Old 05-08-2005, 11:47 AM   #2
LQ Newbie
Registered: Oct 2004
Location: Montreal
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
Are you asking about how using "route" command ? Then, you simply have to type something like:

$route add default gw GATEWAYIP ethx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Interface Name kidskc Linux - Networking 3 08-17-2005 03:40 PM
ip + interface + gateway alaios Debian 3 11-12-2004 04:35 PM
adobe acrobat: change defualt print script true_atlantis Linux - Software 2 10-11-2004 03:28 AM
Change defualt gateway permanently mrpc_cambodia Red Hat 0 07-13-2004 11:01 PM
Why does my internet interface keep getting a gateway silence Linux - Networking 2 06-18-2004 11:34 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration