Ora con Ubuntu mi sono accorto che mi assegna come indirizzo predefinito 10.0.0.15 e localhost 127.0.0.1 (sinceramente non so la differenza che c'è tra l'indirizzo del client e questo "localhost"). Il problema è che non riesco a cambiare l'indirizzo 10.0.0.15 a 10.0.0.4 perchè non vorrei ridefinire tutte le regole del router forwardando le porte all'indirizzo 10.0.0.15.
Con il comando ifconfig mi viene restituito:
Codice: Seleziona tutto
eth0 Link encap:Ethernet HWaddr 00:13:D4:DC:41:FA
inet addr:10.0.0.15 Bcast:255.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::213:d4ff:fedc:41fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98527 errors:0 dropped:0 overruns:0 frame:0
TX packets:65842 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:125559089 (119.7 MiB) TX bytes:6268189 (5.9 MiB)
Interrupt:16 Base address:0x8000
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:20960 errors:0 dropped:0 overruns:0 frame:0
TX packets:20960 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1068080 (1.0 MiB) TX bytes:1068080 (1.0 MiB)
/etc/network/interfaces prima delle modifiche
Codice: Seleziona tutto
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcpCodice: Seleziona tutto
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
adress 10.0.0.4
netmask 255.0.0.0
broadcast 255.255.255.255
gateway 10.0.0.2
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcpCodice: Seleziona tutto
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.1.1 client2Codice: Seleziona tutto
# The following lines are desirable for IPv6 capable hosts
10.0.0.2 indirizzo router
10.0.0.4 client2Come posso configurare correttamente la rete?
Vi ringrazio per l'aituto!