<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mkcs.at/wikien/index.php?action=history&amp;feed=atom&amp;title=Linux_Networking</id>
	<title>Linux Networking - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mkcs.at/wikien/index.php?action=history&amp;feed=atom&amp;title=Linux_Networking"/>
	<link rel="alternate" type="text/html" href="https://wiki.mkcs.at/wikien/index.php?title=Linux_Networking&amp;action=history"/>
	<updated>2026-05-03T19:48:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://wiki.mkcs.at/wikien/index.php?title=Linux_Networking&amp;diff=254&amp;oldid=prev</id>
		<title>MkWikiEnSysOp: Initial creation: add address, gateway, forwarding</title>
		<link rel="alternate" type="text/html" href="https://wiki.mkcs.at/wikien/index.php?title=Linux_Networking&amp;diff=254&amp;oldid=prev"/>
		<updated>2019-09-02T06:01:16Z</updated>

		<summary type="html">&lt;p&gt;Initial creation: add address, gateway, forwarding&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some important commands and settings that are needed frequently.&lt;br /&gt;
&lt;br /&gt;
== Add IPv4/IPv6 address to interface ==&lt;br /&gt;
&lt;br /&gt;
In the past, &amp;lt;code&amp;gt;ifconfig&amp;lt;/code&amp;gt; was used to add ip addresses. Nowadays, the &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; command is used instead.&lt;br /&gt;
&lt;br /&gt;
 ip [-6] a a &amp;#039;&amp;#039;address&amp;#039;&amp;#039; dev &amp;#039;&amp;#039;iface&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
 ip a a 10.0.0.1 dev enp2s0&lt;br /&gt;
 ip -6 a a fd40:cafe:affe:1234::1 dev enp0s3&lt;br /&gt;
&lt;br /&gt;
== Set default IPv6 gateway ==&lt;br /&gt;
&lt;br /&gt;
 ip -6 r a &amp;#039;&amp;#039;gateway&amp;#039;&amp;#039; dev &amp;#039;&amp;#039;iface&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;gateway&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;must not&amp;#039;&amp;#039;&amp;#039; be a link local address (that is one that starts with &amp;quot;fe80&amp;quot;)!&lt;br /&gt;
&lt;br /&gt;
== IPv6 forwarding ==&lt;br /&gt;
&lt;br /&gt;
Query:&lt;br /&gt;
&lt;br /&gt;
 sysctl net.ipv6.conf.all.forwarding&lt;br /&gt;
&lt;br /&gt;
Or using procfs:&lt;br /&gt;
&lt;br /&gt;
 cat /proc/sys/net/ipv6/conf/all/forwarding&lt;br /&gt;
&lt;br /&gt;
Activating:&lt;br /&gt;
&lt;br /&gt;
 sysctl -w net.ipv6.conf.all.forwarding=1&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Remark:&amp;#039;&amp;#039;&amp;#039; &amp;quot;all&amp;quot; can be substituted by any network interface on the system, for example, &amp;lt;code&amp;gt;cat /proc/sys/net/ipv6/conf/eth0/forwarding&amp;lt;/code&amp;gt; prints the value for interface &amp;quot;eth0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>MkWikiEnSysOp</name></author>
	</entry>
</feed>