Internet megosztás
Előre szólok, hogy valószínű a probléma nem haladó, viszont gondolom ezt a topikot több (linux-expert) nézi :)
én már sztem mindent kipróbáltam, de nem megy a két gép közti net megosztás.
a felállás:
debian és xp
az én gépem debianos ebben van két háló kari az egyi dhcp-ről kap ip-t ami a 160.114.41.38
a másik háló kari rögzített ip-t kap ez pedig 192.168.0.4 ennek az átjárója pedig 160.114.41.38 az xp-s gépben van egy kari aminek az ip-je 192.168.0.2 az átjárója pedig 192.168.0.4
a debianon van internet minden faxán megy de az xp-s nem kap nete sehogysem, még pingelni sem tudom és az se vissza, (nyilván xlink kábelvan a két gép közt, régebben ment vele, de újra kellett rakni a lin-t)
ezen beállítások mellett futtattam régebben egy scriptet, amit most is megtettem de nem müxik, bár míg ping nincs gondolom ez is fölösleges volt.
ifconfig:
debian:/home/pawee# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:76:24:06:AF
inet addr:160.114.41.38 Bcast:160.114.41.255 Mask:255.255.255.0
inet6 addr: fe80::20c:76ff:fe24:6af/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37425 errors:0 dropped:0 overruns:0 frame:0
TX packets:23729 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31693917 (30.2 MiB) TX bytes:8752053 (8.3 MiB)
Interrupt:217 Base address:0xe400
eth1 Link encap:Ethernet HWaddr 00:40:C7:97:7D:4A
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:c7ff:fe97:7d4a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1556 errors:3 dropped:0 overruns:0 frame:0
TX packets:307 errors:37 dropped:0 overruns:0 carrier:37
collisions:0 txqueuelen:1000
RX bytes:148684 (145.1 KiB) TX bytes:82654 (80.7 KiB)
Interrupt:177 Base address:0xe000
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:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6776 (6.6 KiB) TX bytes:6776 (6.6 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
/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
allow-hotplug eth0
iface eth0 inet dhcp
# 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
allow-hotplug eth0
iface eth0 inet dhcp
auto eth0
iface eth1 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 160.114.41.38
auto eth1
auto eth0
iface eth1 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 160.114.41.38
auto eth1
- Tovább (Internet megosztás)
- 5977 megtekintés