Od razu wspomnę, że jestem nowym( chociaż w Linuksie już trochę siedzę
Dodam też, że na sieciach znam się jak wilk na gwiazdach.
Mój problem polega na tym, że chciałbym dać komputerowi dostęp do internetu:
Kod: Zaznacz cały
 __________________________________________ 
|[wlan0]__[eth0]  __                       |
|W    \|  |     \|  |                      |
|L \ \ :  |[----]|  |                      |
|A / / |  |\     |  |\                     |
|N    /|__| [eth0]__| \                    |
|    /                 [Tylko siec kablowa]|
|[On ma dostęp do WiFi]                    | 
|__________________________________________|Router jest domyślną bramą na komputerze z WiFi(pierwszym od lewej).
Drugi nie ma karty graficznej i jest sterowany przez ssh.
Mam nadzieję że zrozumiale to wytłumaczyłem.
ifconfig -a pierwszego(Debian jessie):
Kod: Zaznacz cały
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1f:e2:4c:1d:45  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:e2ff:fe4c:1d45/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:324 errors:0 dropped:0 overruns:0 frame:0
          TX packets:488 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:43887 (42.8 KiB)  TX bytes:57710 (56.3 KiB)
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:65536  Metric:1
          RX packets:74469 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74469 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:10517499 (10.0 MiB)  TX bytes:10517499 (10.0 MiB)
wlan0     Link encap:Ethernet  HWaddr f8:d1:11:09:6d:13  
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::fad1:11ff:fe09:6d13/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32869 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19682 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:26238857 (25.0 MiB)  TX bytes:2811064 (2.6 MiB)
Kod: Zaznacz cały
# ssh 192.168.2.2
root@192.168.2.2's password: 
Welcome to Linux Mint 16 Petra (GNU/Linux 3.11.0-12-generic i686)
Welcome to Linux Mint
 * Documentation:  http://www.linuxmint.com
Last login: Fri Jan 24 13:11:16 2014 from jeremiasz.local
jeremiasz-server ~ # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:e0:4d:0d:f3:93  
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4dff:fe0d:f393/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:518 errors:0 dropped:0 overruns:0 frame:0
          TX packets:470 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:63002 (63.0 KB)  TX bytes:65422 (65.4 KB)
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:65536  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3666 (3.6 KB)  TX bytes:3666 (3.6 KB)