Pitihän tuota kokeilla. Tämä on Ubuntu Alternate 8.10.
ltsp@ubuntu-ltsp:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
auto eth0:0
iface eth0:0 inet static
address 192.168.1.102
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
ltsp@ubuntu-ltsp:~$
ltsp@ubuntu-ltsp:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
* if-up.d/mountnfs[eth0]: waiting for interface eth0:0 before doing NFS mounts
SIOCSIFFLAGS: Cannot assign requested address
[ OK ]
ltsp@ubuntu-ltsp:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:d1:e1:38:2a
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:d1ff:fee1:382a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:95686 errors:0 dropped:0 overruns:0 frame:0
TX packets:59965 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:133137456 (133.1 MB) TX bytes:4967001 (4.9 MB)
Memory:90300000-90320000
eth0:0 Link encap:Ethernet HWaddr 00:19:d1:e1:38:2a
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:90300000-90320000
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:324 errors:0 dropped:0 overruns:0 frame:0
TX packets:324 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19440 (19.4 KB) TX bytes:19440 (19.4 KB)
ltsp@ubuntu-ltsp:~$ ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data.
64 bytes from 192.168.1.101: icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from 192.168.1.101: icmp_seq=2 ttl=64 time=0.025 ms
^C
--- 192.168.1.101 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.025/0.026/0.028/0.005 ms
ltsp@ubuntu-ltsp:~$ ping 192.168.1.102
PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=0.032 ms
64 bytes from 192.168.1.102: icmp_seq=2 ttl=64 time=0.030 ms
^C
--- 192.168.1.102 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.030/0.031/0.032/0.001 ms
ltsp@ubuntu-ltsp:~$
Kun pingaus toimii, niin verkkokin kai toimii?
Edelleen mielenkiinnosta. Mihin tällaista ominaisuutta aiot käyttää?
Ystävällisin terveisin Asmo Koskinen.