Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Sharing files and Internet connection w/crossover cable & Win XP client

  1. #21
    Join Date
    Oct 2007
    Beans
    668
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files and Internet connection w/crossover cable & Win XP client

    I messed with iptables a while back, when trying to install Xubuntu to a laptop over my network. I probably have some wacky iptables rules doing weird things with traffic.

    How would I get everything back to a stock Ubuntu configuration? I tried "iptables --flush" but that made no apparent difference. I still have to disconnect eth0, or I can't get to the Internet from my Ubuntu machine.

  2. #22
    Join Date
    Dec 2009
    Location
    Panama City, FL, USA
    Beans
    543
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Sharing files and Internet connection w/crossover cable & Win XP client

    You could see what your particular iptables rules are running "iptables -L".

    I don't think iptables rules you add at the command line get saved by default. I run 9.10 Server on another machine and I had to set up scripts to save and restore iptables rules after a reboot.

    You could check your kernel routing tables with "route -n" to see what your default gateway is with and without eth0 connected. If it's showing your XP machine as a gateway you could just add your real gateway. For details see "man route".

  3. #23
    Join Date
    Oct 2007
    Beans
    668
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files and Internet connection w/crossover cable & Win XP client

    With eth0 active, I get:
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
    10.0.0.0        0.0.0.0         255.255.255.0   U     1      0        0 eth0
    192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1
    0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
    With eth0 disconnected, I get:
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1
    0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
    Does that tell you anything? Can I fix my problem here?

  4. #24
    Join Date
    Dec 2009
    Location
    Panama City, FL, USA
    Beans
    543
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Sharing files and Internet connection w/crossover cable & Win XP client

    Well, it definitely shows what the problem is. It has 192.168.1.1 listed (properly) as your gateway. Unfortunately 192.168.1.1 also has its own entry using eth0.

    If you can delete this entry I think it will work for you (at least you'll have internet while eth0 is connected to work on it).

    The command to do this is:
    Code:
    sudo route del -host 192.168.1.1
    If it comes back again after a reboot or the next time you connect some other config is off in another place, but at least it's a start, right?

  5. #25
    Join Date
    Oct 2007
    Beans
    668
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files and Internet connection w/crossover cable & Win XP client

    Nope, that didn't work either. I still couldn't get to the Internet as long as eth0 was active.

    Out of desperation, I tried switching the physical connections, so that eth1 was going to my router and eth0 to the Win XP computer I've been trying to share my Internet connection with for the past week. I set the eth0 connection to just plain "DHCP" in NetworkManager applet. I then manually set the IP addresses etc. on both eth0 and the Win XP machine. Now at least I can have both eth0 & eth1 active AND get to the Internet on my Ubuntu machine. Of course, I still can't get to the Internet from the Win XP machine.

    I can run an Apache server on my Ubuntu machine & see it from the WinXP machine by entering my Ubuntu machine's IP on eth1 (assigned by DHCP server on the router, happens to be 198.162.1.22 at the moment). So I don't understand why I can't get anywhere else from the Windows XP machine.

    So I'm back where I was a couple of pages ago. I hope I can still get to the Internet while having both eth0 and eth1 active, after a reboot.
    Last edited by Objekt; January 27th, 2010 at 06:03 AM.

  6. #26
    Join Date
    Oct 2007
    Beans
    668
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Sharing files and Internet connection w/crossover cable & Win XP client

    NetworkManager is still failing to automatically connect via eth0 upon login. How I do make it automagically connect? It is annoying to have to manually select eth0 every time I log in.

  7. #27
    Join Date
    Aug 2010
    Beans
    2

    Arrow Re: Sharing files and Internet connection w/crossover cable & Win XP client

    this looks like a good plan. If you are trying to share the internet between xp and ubuntu. Anyways good luck!

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •