<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://vwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Interface_Hot_Add_%28Vyatta%29</id>
	<title>Interface Hot Add (Vyatta) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Interface_Hot_Add_%28Vyatta%29"/>
	<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Interface_Hot_Add_(Vyatta)&amp;action=history"/>
	<updated>2026-05-29T17:39:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://vwiki.co.uk/index.php?title=Interface_Hot_Add_(Vyatta)&amp;diff=2639&amp;oldid=prev</id>
		<title>Sstrutt: Initial creation</title>
		<link rel="alternate" type="text/html" href="http://vwiki.co.uk/index.php?title=Interface_Hot_Add_(Vyatta)&amp;diff=2639&amp;oldid=prev"/>
		<updated>2016-10-04T15:19:09Z</updated>

		<summary type="html">&lt;p&gt;Initial creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#widget:Widget:GoogleAdSenseSkyscraper}}&lt;br /&gt;
{{#seo:&lt;br /&gt;
|title=Add NIC without downtime&lt;br /&gt;
|titlemode=append&lt;br /&gt;
|keywords=vyatta,vyos,nic,vmware,vm,add,downtime&lt;br /&gt;
|description=This procedure allows you to add a new network interface to a virtual router without shutting the machine down&lt;br /&gt;
}}&lt;br /&gt;
This procedure allows you to add a new network interface to a Vyatta/VyOS router without downtime.  This assumes you can physically add the interface (most commonly true in a virtualised environment).  Have tried an tested this procedure on various versions of Vyatta router, all running on VMware environments.  Only issue has been very occasionally the NIC can&amp;#039;t be added without a reboot, though I&amp;#039;d recommend doing this outside of peak traffic hours, and to put a snapshot in place 1st!&lt;br /&gt;
&lt;br /&gt;
# Login to Vyatta make sure the running config has been saved&lt;br /&gt;
#* &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt;&lt;br /&gt;
#* &amp;lt;code&amp;gt;save&amp;lt;/code&amp;gt;&lt;br /&gt;
#* &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
# Go into root&lt;br /&gt;
# Check current NIC&amp;#039;s&lt;br /&gt;
#* &amp;lt;code&amp;gt; ls -l /sys/class/net/ &amp;lt;/code&amp;gt;&lt;br /&gt;
# Add NIC via VMware&lt;br /&gt;
#* Should be VMXNET3&lt;br /&gt;
# Find PCI Bus ID for an existing network card&lt;br /&gt;
#* &amp;lt;code&amp;gt; dmesg | grep vmxnet &amp;lt;/code&amp;gt;&lt;br /&gt;
# Rescan for network devices&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; echo &amp;quot;1&amp;quot; &amp;gt; /sys/class/pci_bus/0000:03/device/rescan &amp;lt;/code&amp;gt;&lt;br /&gt;
# Check new device has been found&lt;br /&gt;
#* &amp;lt;code&amp;gt; dmesg | grep vmxnet &amp;lt;/code&amp;gt;&lt;br /&gt;
#* &amp;lt;code&amp;gt; ls -l /sys/class/net/ &amp;lt;/code&amp;gt;&lt;br /&gt;
# Exit out of root&lt;br /&gt;
#* &amp;lt;code&amp;gt; exit &amp;lt;/code&amp;gt;&lt;br /&gt;
# Get the MAC address of the new interface (replace &amp;lt;code&amp;gt;eth2&amp;lt;/code&amp;gt; as required)&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; show interfaces ethernet eth2&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enter config mode&lt;br /&gt;
#* &amp;lt;code&amp;gt; configure &amp;lt;/code&amp;gt;&lt;br /&gt;
# Add MAC address to config&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; set interfaces ethernet eth2 hw-id 00:50:56:80:7d:8a &amp;lt;/code&amp;gt;&lt;br /&gt;
# Commit/apply MAC address config&lt;br /&gt;
#* &amp;lt;code&amp;gt; commit &amp;lt;/code&amp;gt;&lt;br /&gt;
#* The NIC&amp;#039;s MAC address needs to be applied in the config before any other interface config (otherwise it&amp;#039;ll fail to commit).&lt;br /&gt;
#* An error of &amp;lt;code&amp;gt; not setting autoneg &amp;lt;/code&amp;gt; is sometimes received and isn&amp;#039;t a problem&lt;br /&gt;
# Configure other basic settings&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; set interfaces ethernet eth2 duplex &amp;#039;auto&amp;#039; &amp;lt;/code&amp;gt;&lt;br /&gt;
#* EG &amp;lt;code&amp;gt; set interfaces ethernet eth2 speed &amp;#039;auto&amp;#039; &amp;lt;/code&amp;gt;&lt;br /&gt;
# Commit/apply changes&lt;br /&gt;
#* &amp;lt;code&amp;gt; commit &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The new interface can now be configured as normal (remove the snapshot if you put one in place), for example...&lt;br /&gt;
&lt;br /&gt;
 set interfaces ethernet eth2 description &amp;quot;NewNIC for stuff&amp;quot;&lt;br /&gt;
 set interfaces ethernet eth2 address 192.168.10.0/24&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Vyatta]]&lt;/div&gt;</summary>
		<author><name>Sstrutt</name></author>
	</entry>
</feed>