Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nat (share internet connection)
#1
i have two computers, one with linux and two network adapters, one with xp and one network adapter. My internet connection goes into my linux computer, but i want it to be shared with the other computer. how do i do that? i have a x-ed cable between the computers..
Reply
#2

read this Nat Howto

 

cheers

 

anyweb

Reply
#3

eth0 Link encap:Ethernet HWaddr 00:10:DC:D8:17:69

inet6 addr: fe80::210:dcff:fed8:1769/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:19132 errors:15 dropped:0 overruns:0 frame:0

TX packets:18650 errors:0 dropped:0 overruns:0 carrier:0

collisions:15 txqueuelen:1000

RX bytes:14742636 (14.0 Mb) TX bytes:1805755 (1.7 Mb)

Interrupt:10

 

eth1 Link encap:Ethernet HWaddr 00:C0:26:00:BF:14

inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0

inet6 addr: fe80::2c0:26ff:fe00:bf14/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:52 errors:0 dropped:0 overruns:0 frame:0

TX packets:24 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:6722 (6.5 Kb) TX bytes:2653 (2.5 Kb)

Interrupt:5 Base address:0xbf00

 

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:4197 errors:0 dropped:0 overruns:0 frame:0

TX packets:4197 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:3688058 (3.5 Mb) TX bytes:3688058 (3.5 Mb)

 

ppp0 Link encap:Point-to-Point Protocol

inet addr:80.184.135.110 P-t-P:62.104.190.21 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1454 Metric:1

RX packets:19007 errors:0 dropped:0 overruns:0 frame:0

TX packets:18515 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:14243183 (13.5 Mb) TX bytes:1313641 (1.2 Mb)

 

 

I have no IP for my eth0 ... since the ppp0 dialup ADSL connection assigns an ip.

 

How do I share this ??

Reply
#4
i have the same problem as kitty, plus i have some problems setting up a lan between the computers, i can ping eth1 from my windows machine, but not the other way around... :/ what subnet and gateway should i have on eth1?
Reply
#5
You use ppp0 as the externel interface, not eth0
Reply
#6
umm... how do i do that? o_O
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)