LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10:42 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 535

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, 09:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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, 10:34 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
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, 08:01 PM   #4
shams
Member
 
Registered: Jan 2004
Posts: 535

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:24 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
Open Source Consulting | Domain Registration