ok akkor az interfaces filom így néz ki :
auto lo
.iface lo inet loopback
# The primary network interface
auto eth0 eth1
iface eth0 inet static
#a külső interface ami a netre csatlakozik és az oda vonatkozó beállítások
address 192.168.1.178
netmask 255.255.255.0
network 192.1681.1.178
broadcast 192.168.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 195.228.240.249
iface eth1 inet static
# a belső kártyád
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
az ifconfigra ezt mondja :
mokus@Apollo:/etc/network$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:44:7C:6A:7A
inet addr:192.168.1.180 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::202:44ff:fe7c:6a7a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:552 errors:0 dropped:0 overruns:0 frame:0
TX packets:382 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192650 (188.1 KiB) TX bytes:52546 (51.3 KiB)
Interrupt:10 Base address:0xe400
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:17792 errors:0 dropped:0 overruns:0 frame:0
TX packets:17792 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1366522 (1.3 MiB) TX bytes:1366522 (1.3 MiB)
az echos cuccra meg ezt :
bash: /proc/sys/net/ipv4/ip_forward: Hozzáférés megtagadva
mokus@Apollo:/etc/network$ sudo echo "1" > /proc/sys/net/ipv4/ip_forward
bash: /proc/sys/net/ipv4/ip_forward: Hozzáférés megtagadva
The life is hard...