How to create network interface aliases in UBUNTU 7.04

Agustin Navarro agustin.navarro at gmail.com
Sun Apr 22 17:38:14 UTC 2007


I just noticed bug number Bug #95968 in
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/95968 which
reports the problem.

Anyone have a temporary solution ??



On 4/22/07, Agustin Navarro <agustin.navarro at gmail.com> wrote:
>
> In UBUNTU 7.04 I have not been able to create aliases for the network
> interface.
>
> I modified the /etc/network/intercaes to:
>
> auto lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet dhcp
>
> auto eth0:0
> iface eth0:0 inet static
>      address 192.168.0.2
>      network 192.168.0.0
>      broadcast 192.168.0.255
>      netmask 255.255.255.0
>
> auto eth0:1
> iface eth0:1 inet static
>      address 192.168.0.3
>      network 192.168.0.0
>      broadcast 192.168.0.255
>      netmask 255.255.255.0
>
> auto eth0:2
> iface eth0:2 inet static
>      address 192.168.0.4
>      network 192.168.0.0
>      broadcast 192.168.0.255
>      netmask 255.255.255.0
>
> auto eth0:3
> iface eth0:3 inet static
>      address 192.168.0.5
>      network 192.168.0.0
>      broadcast 192.168.0.255
>      netmask 255.255.255.0
>
> root at abril:~# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:11:11:76:5F:68
>           inet addr:200.84.240.218  Bcast:200.84.255.255  Mask:
> 255.255.224.0
>           inet6 addr: fe80::211:11ff:fe76:5f68/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:7124 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6702 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:6952014 (6.6 MiB)  TX bytes:1145898 (1.0 MiB)
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:8 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:460 (460.0 b)  TX bytes:460 (460.0 b)
>
>
> I get no errors
> and I can do it manually by the command:
>
> root at abril:~# ifconfig eth0:0 192.168.0.2 network 192.168.0.0 netmask
> 255.255.255.0
>
>
> and get:
>
> root at abril:~# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:11:11:76:5F:68
>           inet addr: 200.84.240.218  Bcast:200.84.255.255  Mask:
> 255.255.224.0
>           inet6 addr: fe80::211:11ff:fe76:5f68/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:7124 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6702 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:6952014 (6.6 MiB)  TX bytes:1145898 ( 1.0 MiB)
>
> eth0:0    Link encap:Ethernet  HWaddr 00:11:11:76:5F:68
>           inet addr:192.168.0.0  Bcast:192.168.0.255  Mask: 255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask: 255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:8 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:460 (460.0 b)  TX bytes:460 (460.0 b)
>
>
> Can somebody provide some help here ??
>
> By the way, it works fine in UBUNTU 6.06
>
> Thanks in advance.....
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070422/9380df7f/attachment.html>


More information about the ubuntu-users mailing list