Setup a fixed IP address for your computer in Pisi Linux

When you use your Pisi Linux  in a LAN network  and you will sharing printer(s) or you will make remote file sharing with another LinuxPC via ssh or with a WindowsPC via samba it is highly advisable to give all computers a fixed IP address.

This is to prevent problems after a restart of the computer(s).

What we need

We need to know the “DHCP Client Range” and the “Default Gateway” of the router. The DHCP Client Range can only be found after making contact with the router. How to get access to the router can you read in the manual of your router.

Once you have access to your router check for:

  • DHCP Client Range
  • Default Gateway (if not present in the manual, try the IP address to get access to the router)
  • or type in the Terminal the following command “/sbin/ifconfig”

you become a Output as this example:

eth0     Link encap:Ethernet  HWaddr 00:0F:EA:91:04:07
  inet addr:  Bcast:  Mask:
  inet6 addr: fe80::20f:eaff:fe91:407/64 Scope:Link
  RX packets:31167 errors:0 dropped:0 overruns:0 frame:0
  TX packets:26404 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:38338591 (36.5 MiB)  TX bytes:3538152 (3.3 MiB)
  Interrupt:18 Base address:0xc000
lo        Link encap:Local Loopback
  inet addr:  Mask:
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:1994 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1994 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:188041 (183.6 KiB)  TX bytes:188041 (183.6 KiB)

To show only the IP-Address type in the Terminal

#ip addr show

You become then a Output as this example:

2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP qlen 1000
    link/ether b8:ac:6f:65:31:e5 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth0
    inet6 fe80::baac:6fff:fe65:31e5/64 scope link
       valid_lft forever preferred_lft forever

Changing the IP address

Make a right click in the System Tray at the Network Symbol> Configure Network Connections.

Click at the connection at the interface and select [Edit].
Select the tab “IPv4” and change the  Method from Automatic to Manual  at the Bottom on the right side clcik on “Add” and fill in:

Address: new fixed IP address
Net mask:
Gateway: Default Gateway of the router
(for ‘new fixed IP address’ take an address just above the DHCP Client Range)

Select [OK].
Mark the interface and the new IP address should appear.
Check if your internet connection is still working in your Browser and in case of problems return to “Automatic Query (DHCP)” in Network Manager.
Close the Network Manager. You are done now

I hope this little Tutorial can help to solving your Problems


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s