Main.How-to-setup-Static-IP-address-in-Ubuntu History
Hide minor edits - Show changes to markup
Changed line 8 from:
Example
/etc/network/interfaces file below
to:
Example /etc/network/interfaces file below
Changed line 8 from:
Example monospace
/etc/network/interfaces file below
to:
Example
/etc/network/interfaces file below
Changed line 8 from:
Examplemonospace
/etc/network/interfaces file below
to:
Example monospace
/etc/network/interfaces file below
Changed line 8 from:
Example /etc/network/interfaces file below
to:
Examplemonospace
/etc/network/interfaces file below
Changed line 8 from:
Example<tab><tab> /etc/network/interfaces file below
to:
Example /etc/network/interfaces file below
Changed line 8 from:
Example /etc/network/interfaces file below
to:
Example<tab><tab> /etc/network/interfaces file below
Changed line 8 from:
Example@@ /etc/network/interfaces file below
to:
Example /etc/network/interfaces file below
Changed line 8 from:
Example
/etc/network/interfaces file below
to:
Example@@ /etc/network/interfaces file below
Changed line 8 from:
Example /etc/network/interfaces file below
to:
Example
/etc/network/interfaces file below
Added lines 1-43:
(:Google1:)
(:Googletxt:)
How to setup Static IP address in Ubuntu
Edit - /etc/network/interfaces
Example /etc/network/interfaces file below
(:table border=1 width=50% bgcolor=yellow cellspacing=0 :)
(:cellnr:)
shine@shine:~$ cat /etc/network/interfaces
# 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
#The Primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
(:tableend:)
Restart the network
(:table border=1 width=50% bgcolor=yellow cellspacing=0 :)
(:cellnr:)
/etc/init.d/networking restart
(:tableend:)
(:Googlemm:)