internet connection sharing

Asked by David Jones

connie@connie-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:e3:17:8f:c5
          inet6 addr: fe80::202:e3ff:fe17:8fc5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13362 (13.3 KB) TX bytes:343163 (343.1 KB)
          Interrupt:23

eth1 Link encap:Ethernet HWaddr 00:03:47:c6:15:91
          inet addr:192.168.99.105 Bcast:192.168.99.255 Mask:255.255.255.0
          inet6 addr: fe80::203:47ff:fec6:1591/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:5600 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4792 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3864531 (3.8 MB) TX bytes:492052 (492.0 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:16436 Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)
connie@connie-desktop:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
connie@connie-desktop:~$ lspci -nn |grep Ethernet
02:08.0 Ethernet controller [0200]: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller [8086:2449] (rev 03)
02:0b.0 Ethernet controller [0200]: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller [100b:0020]

I have eht0 set to share with other computers in network manager it keeps saying wired network established then wired network disconnected
I have dnsmasq installed even tried firestarter
any help is greatly appreciated since this pc is for some friends who don't have funds to buy a router so please don't tell me to buy one. I am here asking for a little help thanks everyone in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
David Jones (dj) said :
#1

connie@connie-desktop:~$ nm-tool

NetworkManager Tool

State: connected

- Device: eth1 [Auto eth1] ----------------------------------------------------
  Type: Wired
  Driver: e100
  State: connected
  Default: yes
  HW Address: 00:03:47:C6:15:91

  Capabilities:
    Carrier Detect: yes
    Speed: 100 Mb/s

  Wired Properties
    Carrier: on

  IPv4 Settings:
    Address: 192.168.99.105
    Prefix: 24 (255.255.255.0)
    Gateway: 192.168.99.1

    DNS: xx.xxx.xxx.x
    DNS: xx.xxx.xxx.x

- Device: eth0 -----------------------------------------------------------------
  Type: Wired
  Driver: natsemi
  State: disconnected
  Default: no
  HW Address: 00:02:E3:17:8F:C5

  Capabilities:
    Carrier Detect: yes
    Speed: 100 Mb/s

  Wired Properties
    Carrier: on

although computer #2 says connected but can not go to internet

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#2

Is your routing set correctly? Can you ping 8.8.8.8? Can you resolve names using DNS?

The interface you share the connection with (to clients) will need a static IP setting but no gateway IP.

Revision history for this message
David Jones (dj) said :
#3

every time i add bcast address and apply is goes to all 0.0.0.0
connie@connie-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:e3:17:8f:c5
          inet addr:10.42.43.1 Bcast:10.42.43.255 Mask:255.255.255.0
          inet6 addr: fe80::202:e3ff:fe17:8fc5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:499 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5073 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:59981 (59.9 KB) TX bytes:1173914 (1.1 MB)
          Interrupt:23

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

And the routing?

Revision history for this message
David Jones (dj) said :
#5

Thanks actionparsnip, that solved my question.