You are not logged in.

#1 2009-11-18 07:58:50

nullvoid
Member
Registered: 2009-01-18
Posts: 33

Virtual NIC, DHCP and rc.conf

Hello!

I'm running an Arch box as my home server. My ISP offers me 5 public IP addresses, and I would like to have 2 assigned to my server. Is it possible to get Arch to use two ip addresses on the same NIC using rc.conf? I would also like to have the virtual NIC pull an IP address from the DHCP server.

Thanks!

Offline

#2 2009-11-18 11:47:04

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Virtual NIC, DHCP and rc.conf

I don't think you can do this in rc.conf because you can't have colons (:) in bash variable names I don't believe...

You can just add it to rc.local like:

ip a a x.x.x.x/yy dev eth0

Replace x.x.x.x/yy with the appropriate IP address and CIDR mask.

Offline

Board footer

Powered by FluxBB