LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-13-2013, 11:42 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 405

Rep: Reputation: 30
Exclamation How to change the default gateway?


I setup the l2to tunnel these are the route command for gateways:
Quote:
# ip route show
default dev ppp0 scope link
46.165.221.230 via 118.104.230.2 dev ppp0 src 118.104.230.2
118.104.228.4 dev ppp0 proto kernel scope link src 118.104.230.2
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
How to change the second gateway to the first default gateway with the exact parameters please?
 
Old 02-14-2013, 10:12 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,570

Rep: Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822Reputation: 2822
Quote:
Originally Posted by shams View Post
I setup the l2to tunnel these are the route command for gateways:
How to change the second gateway to the first default gateway with the exact parameters please?
Read the man page on the ifconfig command. And how did you configure the gateways now, if you don't know the commands??
 
Old 02-14-2013, 11:34 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,347

Rep: Reputation: 184Reputation: 184
the tunnel device shouldn't be the same as the default gw.

What's an l2to tunnel?
Is it an ipsec tunnel?

Should you not have a tap device for the tunnel?
 
Old 02-14-2013, 09:01 PM   #4
shams
Member
 
Registered: Jan 2004
Posts: 405

Original Poster
Rep: Reputation: 30
Thanks for replies, yes it is ipsec and xl2tpd tunnel, the traffic fully didn't go throught the tunnel.
 
  


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
[SOLVED] change default Gateway amartlk Linux - Networking 10 12-23-2011 07:19 AM
How do I change the default gateway? tbruer1138 Linux - Networking 3 03-10-2005 09:21 PM
commit default gateway change complus Linux - Networking 5 09-04-2003 04:58 PM
Cannot change default gateway parr Linux - Networking 22 07-31-2003 07:13 PM
want to change default gateway juanb Linux - General 1 03-12-2003 11:28 AM


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

Main Menu
Advertisement
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