Announcement

Collapse
No announcement yet.

Editing Auto eth0 connection [SOLVED]

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

    Editing Auto eth0 connection [SOLVED]

    I worked on this a while back, but just couldn't get it to work.

    on a Kubuntu 10.10 box, I'm trying to..

    A. Give it a static IP address of 192.168.1.59
    B. Change the DNS servers to 208.67.222.222 & 208.67.220.220

    First, using kdesudo, I opened up kate and the file at /etc/dhcp3/dhclient.conf

    I found the line that started with "prepend domain-name-servers", deleted the IP address of 127.0.0.1 and inserted the above DNS servers.

    Saved, rebooted, but no effect.

    Then I looked at the file at /etc/resolv.conf, but it was three lines that pointed back to my router.

    Looking at the Wired tab for the Network Connections, there simply is NO option to edit the auto eth0! I can make a new one, but if I do, the system keeps reverting back to the auto eth0.

    Using the command line, I know I successfully did it back in the 9.10 days, but I simply can't remember the correct file(s)!

    #2
    Re: Editing Auto eth0 connection

    This covered it for me.
    Home: Kubuntu 12.04-amd64; Intel i7-860 on Intel DH55PJ; Nvidia 9500GT; 6GB RAM
    Network Slave: Xubuntu 11.10-x86; Intel P4-Prescott on MSI; 2GB RAM; Nvidia FX5200
    Portable: Xubuntu 11.10-amd64; Asus EeePC 1015PEM

    Comment


      #3
      Re: Editing Auto eth0 connection

      My advice: Remove knetworkmanager completely. Edit /etc/resolv.conf and /etc/network/interfaces manually. Restart the network. Done.

      Please Read Me

      Comment


        #4
        Re: Editing Auto eth0 connection

        Ok, i looked at the link and followed the instruction (also removing network manager), after restarting the computer, now I have no network connection whatsoever.

        Here's the contents of my interfaces and resolv.conf files. Hopefully somebody can see what i did wrong! Thanks.

        Interfaces -

        Code:
        auto lo
        iface lo inet loopback
        
        # the primary network interface
        auto eth0
        iface eth0 inet static
        address 192.168.1.59
        netmask 255.255.255.0
        gateway 192.168.1.254
        resolve.conf

        Code:
        # Generated by NetworkManager
        nameserver 208.67.222.222
        nameserver 208.67.220.220
        nameserver 192.168.1.254

        Comment


          #5
          Re: Editing Auto eth0 connection

          Is the 192.168 address a router? If you're connecting via a router, the router needs to have the DNS addresses in it and your local nameserver is the router.

          Code:
          domain home
          search home
          nameserver 192.168.1.254
          Also, check your route route -n and make sure your router is connected to your NIC

          :~$ route -n
          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   0   0    0 eth0
          169.254.0.0   0.0.0.0     255.255.0.0   U   1000  0    0 eth0
          0.0.0.0     192.168.1.254  0.0.0.0     UG  100  0    0 eth0

          Please Read Me

          Comment


            #6
            Re: Editing Auto eth0 connection

            What router do you have? On my WRT54g the Gateway is 192.168.1.1, not 192.168.1.254 as you have in your interfaces file.

            Comment


              #7
              Re: Editing Auto eth0 connection

              Yes, the gateway address seems suspect.
              Home: Kubuntu 12.04-amd64; Intel i7-860 on Intel DH55PJ; Nvidia 9500GT; 6GB RAM
              Network Slave: Xubuntu 11.10-x86; Intel P4-Prescott on MSI; 2GB RAM; Nvidia FX5200
              Portable: Xubuntu 11.10-amd64; Asus EeePC 1015PEM

              Comment


                #8
                Re: Editing Auto eth0 connection

                I just went over to the windows computer and verified the default gateway, and it is .254 (We have AT&T U-verse)

                Connection-specific DNS Suffix . : gateway.2wire.net
                Link-local IPv6 Address . . . . . : fe80::614e:5c09:b5c3:4b46%11
                IPv4 Address. . . . . . . . . . . : 192.168.1.70
                Subnet Mask . . . . . . . . . . . : 255.255.255.0
                Default Gateway . . . . . . . . . : 192.168.1.254

                oshunluvr - Just verified, and my route -n listing is the same as what you posted above.

                Update - went to restart the network via the command line, and got this error..

                Code:
                SI0CADDRT: File exists
                failed to bring up eth0
                Solved! Went back and looked at the /etc/dhcp3/dhclient.conf, and took out the two name servers I had in there, put back in the default of 127.0.0.1 and now it's working. using the OpenDNS servers I wanted to, and getting out on the internet.

                Comment

                Working...
                X