LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-08-2005, 11:22 AM   #1
banner
Member
 
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 192.168.1.1, but it is showing the defualt gateway in eth0,


Why is that??



O by the way my default gatway for eth0 should is 192.168.1.4

My routing table it looks like this

root@bangde ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.4 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.4 0.0.0.0 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
pierre-luc
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
 
  


Reply


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


All times are GMT -5. The time now is 06:31 PM.

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