
Originally Posted by
SeijiSensei
Code:
auto eth0
iface eth0 inet static
address net1-IP
netmask 255.255.255.192
gateway net1-GW
Shouldn't the address lines in /etc/network/interfaces have IP address entries? Even if net1-IP is in /etc/hosts, I'm not sure that the network startup scripts will do any name resolution. Just put the actual addresses in there for the "address" and "gateway" fields, not symbolic names.
I have put "net1-IP" and "net1-GW" instead of the IP address that I have in the /etc/network/interfaces files. It's only because I didn't want to show the IP address of the server 

Originally Posted by
SeijiSensei
I've used interface aliasing when I wanted to have a separate HTTP and HTTPS servers on the same box. Since HTTPS doesn't take too well to name-based virtual hosts, it's easier to assign a second IP address to the NIC and bind the HTTPS server to that address.
Of course you need an ISP that will give you an IP subnet, not just a single address to make this work. Many ISPs will give their commercial customers a /29 or even a /28, though that's less common in these days of IP address shortages.
The netmask you're using (255.255.255.192) is for a /26, or 62 usable addresses. Did your ISP really give you a /26? Pretty generous if so.
We are an ISP so we don't have that problem
.
I agree with you regarding to interface aliasing is very old, but it seems to be well configured as you can see in my /etc/network/interfaces file but ifconfig don't show the interface aliases:
Code:
root@server:~# ifconfig
eth0 Link encap:Ethernet direcciónHW d0:27:88:75:c2:90
Direc. inet:X.X.X.X Difus.:0.0.0.0 Másc:255.255.255.192
Dirección inet6: fe80::d227:88ff:fe75:c290/64 Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:4458717 errores:0 perdidos:1674 overruns:0 frame:0
Paquetes TX:1717477 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:586832356 (586.8 MB) TX bytes:432502236 (432.5 MB)
Interrupción:40 Dirección base: 0x4000
lo Link encap:Bucle local
Direc. inet:127.0.0.1 Másc:255.0.0.0
Dirección inet6: ::1/128 Alcance:Anfitrión
ACTIVO BUCLE FUNCIONANDO MTU:16436 Métrica:1
Paquetes RX:53176 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:53176 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:0
Bytes RX:4708318 (4.7 MB) TX bytes:4708318 (4.7 MB)
root@server:~# ifconfig eth0:1
eth0:1 Link encap:Ethernet direcciónHW d0:27:88:75:c2:90
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Interrupción:40 Dirección base: 0x4000
It seems a bug, it isn't? or Am I doing something bad?
Bookmarks