Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Add a second ip to Linux - Arch Linux rc.conf

Date: 2010-04-09 00:00:00 -0400

Continuing with Add second IP Ubuntu" Now let's see how to do it on Arch Linux.

First edit the file rc.conf (I like the way Arch Linux is so simple).

You have these options:

Two Statics IPs

eth0="eth0 10.1.1.2 netmask 255.255.255.0 broadcast 1.1.1.255"
eth0_0="eth0:0 10.1.1.3 netmask 255.255.255.0 broadcast 10.1.1.255"
INTERFACES=(lo eth0 eth0_0)

In the routes section include something like this

gateway="default gw 10.1.1.1"
ROUTES=(gateway)

One static and dynamic IP

I have made this, I do not know if it correct, but works for me, I need one IP from the DHCP, and one static IP

eth0="dhcp"
eth0_0="eth0:0 200.87.61.XX netmask 255.255.255.240 broadcast 200.87.61.XX"
INTERFACES=(eth0 eth0_0)

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.