<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Multiple_Subnets</id>
	<title>Multiple Subnets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Multiple_Subnets"/>
	<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=Multiple_Subnets&amp;action=history"/>
	<updated>2026-11-06T13:39:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://gigatux.com/wiki/index.php?title=Multiple_Subnets&amp;diff=367&amp;oldid=prev</id>
		<title>Cocodude: Created page with &quot;If a user wishes to use more than one subnet on a VPS, they will need specific routes set up. This is because you can only have one default gateway and packets with a source IP f...&quot;</title>
		<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=Multiple_Subnets&amp;diff=367&amp;oldid=prev"/>
		<updated>2013-02-28T13:36:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If a user wishes to use more than one subnet on a VPS, they will need specific routes set up. This is because you can only have one default gateway and packets with a source IP f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If a user wishes to use more than one subnet on a VPS, they will need specific routes set up. This is because you can only have one default gateway and packets with a source IP from the second subnet will attempt to be sent through this default gateway, which is invalid.&lt;br /&gt;
&lt;br /&gt;
If we assume that this VPS is on subnets on 109.169.0.0/25 and 109.169.23.0/24, where the default gateway is setup to be 109.169.23.1, we can do the following to get 109.169.23.0/24 to work:&lt;br /&gt;
&lt;br /&gt;
* Add a new route table to /etc/iproute2/rt_tables. This can be called &amp;#039;&amp;#039;100 twentythree&amp;#039;&amp;#039;&lt;br /&gt;
* ip rule add from 109.169.23.0/24 table twentythree&lt;br /&gt;
* ip route add default via 109.169.23.1 table twentythree&lt;br /&gt;
&lt;br /&gt;
Put the ip commands in /etc/rc.local to make these changes persistent.&lt;/div&gt;</summary>
		<author><name>Cocodude</name></author>
	</entry>
</feed>