Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How to setup my ubuntu for static ip address

  1. #1
    Join Date
    Nov 2009
    Beans
    282

    How to setup my ubuntu for static ip address

    Ok so I am trying to access my ubuntu 10.4 pc from my iphone. I have mocha vnc lite installed on my iphone and I got this in my startup applications

    x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800

    It only got connected like once, but haven't been able to connect to my pc again. I'm guessing because i need to have a static ip address, My computer is just connected via ethernet to the modem.

    This is in my /etc/network/interfaces file

    Code:
    auto lo
    iface lo inet loopback
    Code:
    christoph@christoph-desktop:~$ ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:1a:92:be:fd:0c  
              inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::21a:92ff:febe:fd0c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2188115 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3879625 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:1294666451 (1.2 GB)  TX bytes:759529032 (759.5 MB)
              Interrupt:30 
    
    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:1829008 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1829008 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:319524073 (319.5 MB)  TX bytes:319524073 (319.5 MB)
    Last edited by Iowan; August 15th, 2010 at 04:31 PM. Reason: fixed [code] tags

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to setup my ubuntu for static ip address

    A few options:
    You can configure the DHCP server (router?) to configure a "static lease" - essentially a static address.

    Network Manager will let you manually configure an address - just be sure the address is in the same subnet, but outside the DHCP server address range.

    You can configure a manual address in /etc/network/interfaces. As Network Manager evolves, it gets more aggressive and can conflict with /etc/network/interfaces. There are ways to fix it, though...
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to setup my ubuntu for static ip address

    The "gui" way.

    Click System > Preferences > Network Connections


    Go to Wired/Wireless etc "auto eth0 / auto wlan0" click edit > IPv4 Settings > method > manual: and fill in a ip adres
    f.e 192.168.1.10 > netmask=255.255.255.0
    Gateway -your gateway- / routeradress
    f.e; 192.168.1.1

    Dns servers will be found in the router settings.
    use a , to divide the primary and secondary dns
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

  4. #4
    Join Date
    Nov 2009
    Beans
    282

    Re: How to setup my ubuntu for static ip address

    Quote Originally Posted by mhgsys View Post
    The "gui" way.

    Click System > Preferences > Network Connections


    Go to Wired/Wireless etc "auto eth0 / auto wlan0" click edit > IPv4 Settings > method > manual: and fill in a ip adres
    f.e 192.168.1.10 > netmask=255.255.255.0
    Gateway -your gateway- / routeradress
    f.e; 192.168.1.1

    Dns servers will be found in the router settings.
    use a , to divide the primary and secondary dns
    I did this but now i can't connect to the net. what else do i need to do?

  5. #5
    Join Date
    Nov 2009
    Beans
    282

    Re: How to setup my ubuntu for static ip address

    I just want my internet back now

  6. #6
    Join Date
    Nov 2009
    Beans
    282

    Re: How to setup my ubuntu for static ip address

    Quote Originally Posted by Iowan View Post
    A few options:
    You can configure the DHCP server (router?) to configure a "static lease" - essentially a static address.

    Network Manager will let you manually configure an address - just be sure the address is in the same subnet, but outside the DHCP server address range.

    You can configure a manual address in /etc/network/interfaces. As Network Manager evolves, it gets more aggressive and can conflict with /etc/network/interfaces. There are ways to fix it, though...
    Yeah that went over my head

  7. #7
    Join Date
    Nov 2009
    Beans
    282

    Re: How to setup my ubuntu for static ip address

    My computer has been without internet for 2 hours. i can't take it!

  8. #8
    Join Date
    Nov 2009
    Beans
    282

    Re: How to setup my ubuntu for static ip address

    I've got like 20 tabs open on trying to configure a static ip and doing what each one says change this or change that and this and that. and still no internet.

    And when i switch back to DHCP i dont get internet again. why? argghg

  9. #9
    Join Date
    Mar 2007
    Location
    INDIA-Kerala
    Beans
    1,604
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to setup my ubuntu for static ip address

    While configuring NM You should hit enter after giving IP mask and gateway.Then give DNS and apply.

  10. #10
    Join Date
    Nov 2009
    Beans
    282

    Re: How to setup my ubuntu for static ip address

    I entered random numbers in the ip address. like oh 192.168.1.197 saved it restarted my pc and no internet

Page 1 of 2 12 LastLast

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
  •