I have a machine that has eth0 and eth1, and now I want to create an eth2 and assign it some IP address.
What's the command for doing this?
On Linux machines, eth0 and eth1 correspond to real network ports. To add an eth2, you'll need to add another NIC, either by adding an internal PCI(e) network card, or by adding a USB network adapter. See Redhat network interface configuration.
If all you want is another IP address, you can create an ethernet alias on one of your existing adapters. An alias is like a virtual network card -- it lets you assign another IP address to an existing port. Let's assume your eth0 has the IP address 192.168.1.5.
To do this once, run (as root)
To configure it permanently, add it to a configuration script. Make a copy of
The remove or comment out any GATEWAY lines in both files, and add the GATEWAY line to your
Follow these steps: