You are not logged in.
Hi all,
my server has one physical network card and some aliases defined (eth0:0, eth0:1 ecc.).
I want to switch to new netcfg but I don't know in wich way I can define them within a profile.
Now my /etc/rc.conf is:
eth0="eth0 192.168.x.1 netmask 255.255.255.0 broadcast 192.168.x.255"
eth0a0="eth0:0 192.168.x.5 netmask 255.255.255.0 broadcast 192.168.x.255"
eth0a1="eth0:1 192.168.x.20 netmask 255.255.255.0 broadcast 192.168.x.255"
eth0a2="eth0:2 192.168.x.9 netmask 255.255.255.0 broadcast 192.168.x.255"
..
eth0a8="eth0:8 192.168.x.69 netmask 255.255.255.0 broadcast 192.168.x.255"
INTERFACES=(lo eth0 eth0a0 eth0a1 eth0a2 eth0a3 eth0a4 eth0a5 eth0a6 eth0a7 eth0a8)
Any idea?
Thanks
Luca
Last edited by luca (2008-03-27 20:04:14)
Offline
Hi.
Have you looked at /etc/network.d/examples/ethernet-static.example? It seems like it has what you need.
Offline
Hi tigrmesh,
yes I saw the static example, but I want to know how define additional aliases
Offline
If I understand correctly, you don't have aliases any more, you define a profile for each of your aliases in /etc/network.d. In your case you would name them eth0a0, eth0a1, eth0a2, etc.
Then you'd put them in NETWORKS=().
Offline
If what you're doing works, you don't have to switch. The classic configuration style is here to stay.
Offline
noob question:
can have virtual interfaces with any NIC ???
Offline
noob question:
can have virtual interfaces with any NIC ???
Easy way to find out if your nic supports it.... open a console and try and use one.
Offline
Since the OP'er has gotten an answer -> little hijacking of this thread...
Why would you use virtual interfaces? I have never heard of it (not pretending it has no use if I don't know if, of course...)
Zl.
Offline
Thank you iphitus,
I will stay with the "old" configuration
Offline