1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


#The Internal Network
auto eth1
iface eth1 inet static
   address 10.0.0.4
   subnetmask 255.255.255.0
   gateway 10.0.0.1
   broadcast 10.0.0.255
   dns-search google.com
   dns-nameservers 8.8.8.8

ian@stick:~$ ifconfig
eth1      Link encap:Ethernet  HWaddr e8:11:32:50:99:eb  
          inet addr:10.0.0.4  Bcast:10.0.0.255  Mask:255.0.0.0
          inet6 addr: fe80::ea11:32ff:fe50:99eb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6769 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11123 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:701632 (701.6 KB)  TX bytes:812671 (812.6 KB)

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:65536  Metric:1
          RX packets:1827 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1827 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:184689 (184.6 KB)  TX bytes:184689 (184.6 KB)