Announcement

Collapse
No announcement yet.

Network making me want to shoot myself in the face.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Network making me want to shoot myself in the face.

    OK, I'm a complete linux n00b, and can't for the life of me get my ethernet up.

    Short story, I was wireless, and never could get online. For other reasons, I moved the PC to where it was wired, and it fired right up, no worries.

    A few weeks later, I pulled out the wifi card, and lost my ethernet connection in the process, and now can't connect to save my life.

    I'm using Kubuntu Fiesty, and about to loose my mind.

    Here's my interfaces file:

    # 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

    address 127.0.0.1
    netmask 255.0.0.0
    # This is a list of hotpluggable network interfaces.
    # They will be activated automatically by the hotplug subsystem.
    mapping hotplug
    script grep
    map eth0

    # The primary network interface
    iface eth0 inet static
    address 192.168.15.100
    netmask 255.255.255.0
    gateway 192.168.15.1

    auto eth0
    I have no issues on the same PC in XP, and configured my eth0 interface with the same settings I use in XP.
    Any help would be greatly appreciated.


    #2
    Re: Network making me want to shoot myself in the face.

    Comment out all lines in the interfaces file except:

    auto lo
    iface lo inet loopback

    # 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

    #address 127.0.0.1
    #netmask 255.0.0.0
    # This is a list of hotpluggable network interfaces.
    # They will be activated automatically by the hotplug subsystem.
    #mapping hotplug
    # script grep
    # map eth0

    # The primary network interface
    #iface eth0 inet static
    #address 192.168.15.100
    #netmask 255.255.255.0
    #gateway 192.168.15.1

    #auto eth0
    Then restart networking:

    Code:
    sudo /etc/init.d/networking restart
    Mike
    http://monte48lowes.blogspot.com

    Comment


      #3
      Re: Network making me want to shoot myself in the face.

      Thanks, I'll try that in a minute.

      If I do that, will it then be correct on startup the next time around?




      Thanks again for the reply.

      Comment


        #4
        Re: Network making me want to shoot myself in the face.

        I am unclear on what "it" you are speaking of. As far the network, yes. This is mine:

        Code:
        michael@racing:/etc/modprobe.d$ cat /etc/network/interfaces
        auto lo
        iface lo inet loopback
        
        michael@racing:/etc/modprobe.d$
        This file is the same on all three PCs here, including two laptops.

        Mike
        http://monte48lowes.blogspot.com

        Comment


          #5
          Re: Network making me want to shoot myself in the face.

          OK, that worked a little, at least the interface shows up in KNetworkManager now, but I still can't get an IP or connect. If set to automatic, I get an IP of 169.xxx.xxx.x, and if manual, I can't do anything either.

          Comment


            #6
            Re: Network making me want to shoot myself in the face.

            Aren't you using a router?

            It's easier to manually configure and just learn what you need in the /etc/network/interfaces file. KNM and even NM (NM = Network Manager) in Gnome doesn't work. I don't know why people bother with it. Use it as long as it works but whenever it 'breaks', go edit the "/etc/network/interfaces" file.

            Comment


              #7
              Re: Network making me want to shoot myself in the face.

              I am using a router. The IP should be 192.168.15.100. If I set it that way manually, I can't even access my router.

              Perhaps I'm missing something in my interfaces file?

              It was like so:

              iface eth0 inet static
              address 192.168.15.100
              netmask 255.255.255.0
              gateway 192.168.15.1

              auto eth0

              Comment


                #8
                Re: Network making me want to shoot myself in the face.

                Then try:

                auto wlan0
                iface wlan0 inet static
                address 192.168.15.100
                netmask 255.255.255.0
                gateway xxx.xxx.xxx.xxx
                pre-up iwconfig wlan0 mode managed
                pre-up ifconfig wlan0 up
                pre-up iwconfig wlan0 essid "sjsjdjdjdjdjdjdjd"
                pre-up iwpriv wlan0 set AuthMode=WPAPSK
                pre-up iwpriv wlan0 set WPAPSK=sjsjsjsjjsjsjs
                pre-up iwpriv wlan0 set EncrypType=TKIP

                The essid is what you have in your router settings.

                I found this example in another thread and will be using this.

                Btw. are you sure to use: 192.168.15.100? I know of using 192.168.1.xxx and 192.168.0.xxx

                Comment


                  #9
                  Re: Network making me want to shoot myself in the face.

                  That's just the thing, this is a wired connection. Should it really be this hard?

                  DHCP returns an incorrect IP, and configuring it manually doesn't work.

                  Or am I missing something somewhere?

                  Comment

                  Working...
                  X