Announcement

Collapse
No announcement yet.

Making a static ip

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

    Making a static ip

    I read that kubuntu automatically assigns a DHCP address even if the network uses static ips. How can I in kubuntu change it to static ip?

    thanks

    #2
    Re: Making a static ip

    Here's how to change eth0 to 192.168.1.1 with a 255.255.255.0 netmask. Substitute your own values, obviously.

    Type this into a konsole window to edit the interfaces file:
    sudo kate /etc/network/interfaces

    find the line that reads 'iface eth0 inet dhcp' and change it to:

    iface eth0 inet static
    address 192.168.1.1
    netmask 255.255.255.0

    Note the following two lines are indented.

    Comment

    Working...
    X