<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Debian / Ubuntu Linux Setting a Default Gateway</title> <atom:link href="http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Wael Hawa</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-60998</link> <dc:creator>Wael Hawa</dc:creator> <pubDate>Mon, 25 Jul 2011 20:55:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-60998</guid> <description>I am using my nanostation 5 as a router... but I can&#039;t receive ping from the ISP gateway... even though I have my ip in the same range. I found this site but the GW isn&#039;t adding... Here are my tables
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.64.64.64     *               255.255.255.255     UH    0        0         0   ppp0
10.29.136.0     *               255.255.255.0         U      0        0          0  eth0
169.254.0.0     *               255.255.0.0             U      0        0          0  eth0
default             *               0.0.0.0                     U      0        0          0 ppp0
My ip range is 10.29.136.0... I need to add 10.29.136.1 as GW</description> <content:encoded><![CDATA[<p>I am using my nanostation 5 as a router&#8230; but I can&#8217;t receive ping from the ISP gateway&#8230; even though I have my ip in the same range. I found this site but the GW isn&#8217;t adding&#8230; Here are my tables</p><p>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br
/> 10.64.64.64     *               255.255.255.255     UH    0        0         0   ppp0<br
/> 10.29.136.0     *               255.255.255.0         U      0        0          0  eth0<br
/> 169.254.0.0     *               255.255.0.0             U      0        0          0  eth0<br
/> default             *               0.0.0.0                     U      0        0          0 ppp0</p><p>My ip range is 10.29.136.0&#8230; I need to add 10.29.136.1 as GW</p> ]]></content:encoded> </item> <item><title>By: Mahmoud Ibrahim</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-55804</link> <dc:creator>Mahmoud Ibrahim</dc:creator> <pubDate>Sun, 20 Feb 2011 13:49:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-55804</guid> <description>How can i use 2 gateway , I have a complex network using 2 ISP and Linux as a cache and firewall and a router.
i WANT lINUX router to be able to use both ISP in same time and could nat global IP.</description> <content:encoded><![CDATA[<p>How can i use 2 gateway , I have a complex network using 2 ISP and Linux as a cache and firewall and a router.</p><p>i WANT lINUX router to be able to use both ISP in same time and could nat global IP.</p> ]]></content:encoded> </item> <item><title>By: Daniel Smith</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-46514</link> <dc:creator>Daniel Smith</dc:creator> <pubDate>Sat, 20 Mar 2010 12:07:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-46514</guid> <description>How can I find Gateway server !?  to add the numbers to the address code!?</description> <content:encoded><![CDATA[<p>How can I find Gateway server !?  to add the numbers to the address code!?</p> ]]></content:encoded> </item> <item><title>By: Josh</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44900</link> <dc:creator>Josh</dc:creator> <pubDate>Thu, 26 Nov 2009 04:04:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44900</guid> <description>I just switched to static ip&#039;s and set everything through wicd..works perfectly. Also I used the network admin tool and I believe that screwed up lots of things.</description> <content:encoded><![CDATA[<p>I just switched to static ip&#8217;s and set everything through wicd..works perfectly. Also I used the network admin tool and I believe that screwed up lots of things.</p> ]]></content:encoded> </item> <item><title>By: Stuart Smith</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44899</link> <dc:creator>Stuart Smith</dc:creator> <pubDate>Thu, 26 Nov 2009 02:33:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44899</guid> <description>I eventually removed Network Manager. Set everything up manually and it works fine.</description> <content:encoded><![CDATA[<p>I eventually removed Network Manager. Set everything up manually and it works fine.</p> ]]></content:encoded> </item> <item><title>By: joshlondon</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44850</link> <dc:creator>joshlondon</dc:creator> <pubDate>Tue, 24 Nov 2009 01:39:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44850</guid> <description>I am having the same problem..I have to manually set my default gateway after each boot up even though all my network settings include it. How do I get it to stick?</description> <content:encoded><![CDATA[<p>I am having the same problem..I have to manually set my default gateway after each boot up even though all my network settings include it. How do I get it to stick?</p> ]]></content:encoded> </item> <item><title>By: Stuart Smith</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44084</link> <dc:creator>Stuart Smith</dc:creator> <pubDate>Tue, 13 Oct 2009 14:30:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-44084</guid> <description>I have the &quot;gateway 192.168.1.1&quot; in my network file but I&#039;m still required to manually set the route after reboot.  This behavior began only after I &quot;bonded&quot; my two NIC&#039;s. The routing table before the manual route command shows
&lt;code&gt;Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 bond0
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 bond0&lt;/code&gt;
and after adds this one line just below the 169.254... line
&lt;code&gt;0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 bond0&lt;/code&gt;
Am I missing something or am I experiencing a true bug?
I&#039;m using Kubuntu 9.04 Jaunty.</description> <content:encoded><![CDATA[<p>I have the &#8220;gateway 192.168.1.1&#8243; in my network file but I&#8217;m still required to manually set the route after reboot.  This behavior began only after I &#8220;bonded&#8221; my two NIC&#8217;s. The routing table before the manual route command shows<br
/> <code>Kernel IP routing table<br
/> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br
/> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 bond0<br
/> 192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1<br
/> 192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0<br
/> 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0<br
/> 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1<br
/> 0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 bond0</code><br
/> and after adds this one line just below the 169.254&#8230; line<br
/> <code>0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 bond0</code></p><p>Am I missing something or am I experiencing a true bug?</p><p>I&#8217;m using Kubuntu 9.04 Jaunty.</p> ]]></content:encoded> </item> <item><title>By: catalin</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-43706</link> <dc:creator>catalin</dc:creator> <pubDate>Wed, 16 Sep 2009 09:42:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-43706</guid> <description>I am having some routing problems with Ubuntu 9.04:
Whenever I start up my system, the Internet won&#039;t work unless I do:
&lt;code&gt;&quot;sudo route add default gw 192.168.1.254&quot;&lt;/code&gt;
I tried to alter /etc/network/interfaces, but with no luck. After restart, it doesn&#039;t work. executing route prints:
&lt;code&gt;
catalin@lolinux:~$ 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 wlan0
&lt;/code&gt;
After I manually add the gateway, everything is fine, and route prints another gateway:
&lt;code&gt;
catalin@lolinux:~$ 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 wlan0
default         dsldevice.lan   0.0.0.0         UG    0      0        0 wlan0
&lt;/code&gt;
Is there any difference from what I altered and the kernel routing table? If there is, how do I modify that? Or would a startup script be a better solution?</description> <content:encoded><![CDATA[<p>I am having some routing problems with Ubuntu 9.04:<br
/> Whenever I start up my system, the Internet won&#8217;t work unless I do:<br
/> <code>"sudo route add default gw 192.168.1.254"</code><br
/> I tried to alter /etc/network/interfaces, but with no luck. After restart, it doesn&#8217;t work. executing route prints:<br
/> <code><br
/> catalin@lolinux:~$ route<br
/> Kernel IP routing table<br
/> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br
/> 192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0<br
/> </code><br
/> After I manually add the gateway, everything is fine, and route prints another gateway:<br
/> <code><br
/> catalin@lolinux:~$ route<br
/> Kernel IP routing table<br
/> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface<br
/> 192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0<br
/> default         dsldevice.lan   0.0.0.0         UG    0      0        0 wlan0<br
/> </code><br
/> Is there any difference from what I altered and the kernel routing table? If there is, how do I modify that? Or would a startup script be a better solution?</p> ]]></content:encoded> </item> <item><title>By: Peter Holmes</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-43517</link> <dc:creator>Peter Holmes</dc:creator> <pubDate>Tue, 01 Sep 2009 11:30:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-43517</guid> <description>I have two interfaces, eth0 &amp; eth1.  eth0 fixed IP 192.168.1.20 hardwired to test machine with fixed IP 192.168.1.6, (not easily altered).
I want eth1 to connect to internet via a DHCP Server Router.  Without eth1 enabled there is no problem but as soon as I enable eth1 as DHCP client I lose any access to 192.168.1.6
Have spent many hours altering the route(s), etc., with no success.
Do I have to use ipchains or can it be achieved with route?</description> <content:encoded><![CDATA[<p>I have two interfaces, eth0 &amp; eth1.  eth0 fixed IP 192.168.1.20 hardwired to test machine with fixed IP 192.168.1.6, (not easily altered).<br
/> I want eth1 to connect to internet via a DHCP Server Router.  Without eth1 enabled there is no problem but as soon as I enable eth1 as DHCP client I lose any access to 192.168.1.6<br
/> Have spent many hours altering the route(s), etc., with no success.<br
/> Do I have to use ipchains or can it be achieved with route?</p> ]]></content:encoded> </item> <item><title>By: Kuldeep Yadav</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-40626</link> <dc:creator>Kuldeep Yadav</dc:creator> <pubDate>Fri, 06 Mar 2009 14:30:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-40626</guid> <description>Is there any way,so that we can give proxy addresss frm command line apart from browser.because if we give this from command line,it will be applicable to all system.</description> <content:encoded><![CDATA[<p>Is there any way,so that we can give proxy addresss frm command line apart from browser.because if we give this from command line,it will be applicable to all system.</p> ]]></content:encoded> </item> <item><title>By: adam</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39083</link> <dc:creator>adam</dc:creator> <pubDate>Thu, 30 Oct 2008 06:22:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39083</guid> <description>For two interfaces that both do dhcp the metrics on the default gateway can be added like this.
auto eth1
iface eth1 inet dhcp
metric 10
auto eth2
iface eth2 inet dhcp
metric 20</description> <content:encoded><![CDATA[<p>For two interfaces that both do dhcp the metrics on the default gateway can be added like this.</p><p>auto eth1<br
/> iface eth1 inet dhcp<br
/> metric 10</p><p>auto eth2<br
/> iface eth2 inet dhcp<br
/> metric 20</p> ]]></content:encoded> </item> <item><title>By: Mauro</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39004</link> <dc:creator>Mauro</dc:creator> <pubDate>Sat, 18 Oct 2008 17:26:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39004</guid> <description>vivek, many many many thanks. It works!</description> <content:encoded><![CDATA[<p>vivek, many many many thanks. It works!</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39002</link> <dc:creator>vivek</dc:creator> <pubDate>Sat, 18 Oct 2008 12:01:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39002</guid> <description>Run following to display default gateway:
&lt;code&gt; ip route show &#124; grep default &#124; awk &#039;{ print $3}&#039;&lt;/code&gt;
Use following to store gateway IP in a variable called GW:
&lt;code&gt;GW=$(ip route show &#124; grep default &#124; awk &#039;{ print $3}&#039;)
echo $GW&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Run following to display default gateway:<br
/> <code> ip route show | grep default | awk '{ print $3}'</code><br
/> Use following to store gateway IP in a variable called GW:<br
/> <code>GW=$(ip route show | grep default | awk '{ print $3}')<br
/> echo $GW</code></p> ]]></content:encoded> </item> <item><title>By: Mauro</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39000</link> <dc:creator>Mauro</dc:creator> <pubDate>Sat, 18 Oct 2008 10:05:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-39000</guid> <description>How can I get (in a variable) the current default gateway? Is there a sort of &quot;default gateway enviroment variable&quot; that I can read?
Thanks</description> <content:encoded><![CDATA[<p>How can I get (in a variable) the current default gateway? Is there a sort of &#8220;default gateway enviroment variable&#8221; that I can read?<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-38702</link> <dc:creator>vivek</dc:creator> <pubDate>Tue, 02 Sep 2008 10:46:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-38702</guid> <description>Petrus,
You need to install routed and configure /etc/gateway. Another recommended option is install zebra / Quagga server and configure it. Both allows you to define and configure various routing parameters including metric.
http://www.quagga.net/</description> <content:encoded><![CDATA[<p>Petrus,</p><p>You need to install routed and configure /etc/gateway. Another recommended option is install zebra / Quagga server and configure it. Both allows you to define and configure various routing parameters including metric.</p><p><a
href="http://www.quagga.net/" rel="nofollow">http://www.quagga.net/</a></p> ]]></content:encoded> </item> <item><title>By: Petrus</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-38701</link> <dc:creator>Petrus</dc:creator> <pubDate>Tue, 02 Sep 2008 10:09:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-38701</guid> <description>How do I add a second gateway on higher metric  incase the first goes down?</description> <content:encoded><![CDATA[<p>How do I add a second gateway on higher metric  incase the first goes down?</p> ]]></content:encoded> </item> <item><title>By: shutty</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-38326</link> <dc:creator>shutty</dc:creator> <pubDate>Wed, 16 Jul 2008 13:01:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-38326</guid> <description>Rajesh,
for dns, edit file /etc/resolv.conf and add lines
nameserver 1.1.1.1
nameserver 2.2.2.2
(where 1.1.1.1 and 2.2.2.2 are your nameservers)
for proxy, use your browser configuration</description> <content:encoded><![CDATA[<p>Rajesh,</p><p>for dns, edit file /etc/resolv.conf and add lines<br
/> nameserver 1.1.1.1<br
/> nameserver 2.2.2.2<br
/> (where 1.1.1.1 and 2.2.2.2 are your nameservers)</p><p>for proxy, use your browser configuration</p> ]]></content:encoded> </item> <item><title>By: Rajesh</title><link>http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-37544</link> <dc:creator>Rajesh</dc:creator> <pubDate>Thu, 28 Feb 2008 17:31:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-debian-ubutnu-set-default-gateway-ipaddress/#comment-37544</guid> <description>I also want to set my defualt DNS server and proxy settings, just like in windows. How do I do that ??</description> <content:encoded><![CDATA[<p>I also want to set my defualt DNS server and proxy settings, just like in windows. How do I do that ??</p> ]]></content:encoded> </item> </channel> </rss>
