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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
ian072@sundown:~$ 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 p3p1
#iface p3p1 inet dhcp

auto p3p1
iface p3p1 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1




#The internal network interface
#auto p5p1
#iface p5p1 inet dhcp

  
ian072@sundown:~$ sudo nano /etc/network/interfaces
[sudo] password for ian072: 
ian072@sundown:~$ sudo nano /etc/network/interfaces
ian072@sundown:~$ sudo service networking restart
stop: Job failed while stopping
start: Job is already running: networking
ian072@sundown:~$ sudo ifdown p3p1 && sudo ifup p3p1
ian072@sundown:~$ ifconfig
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:1321 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1321 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:103589 (103.5 KB)  TX bytes:103589 (103.5 KB)

p3p1      Link encap:Ethernet  HWaddr d0:50:99:7d:26:6b  
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::d250:99ff:fe7d:266b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:33 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2556 (2.5 KB)  TX bytes:5271 (5.2 KB)

ian072@sundown:~$ sudo nano /etc/network/interfaces
ian072@sundown:~$ sudo ifdown p3p1 && sudo ifup p3p1
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/p3p1/d0:50:99:7d:26:6b
Sending on   LPF/p3p1/d0:50:99:7d:26:6b
Sending on   Socket/fallback
DHCPRELEASE on p3p1 to 192.168.1.1 port 67 (xid=0x6791c2bc)
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/p3p1/d0:50:99:7d:26:6b
Sending on   LPF/p3p1/d0:50:99:7d:26:6b
Sending on   Socket/fallback
DHCPDISCOVER on p3p1 to 255.255.255.255 port 67 interval 3 (xid=0x81057d23)
DHCPDISCOVER on p3p1 to 255.255.255.255 port 67 interval 3 (xid=0x81057d23)
DHCPREQUEST of 192.168.1.3 on p3p1 to 255.255.255.255 port 67 (xid=0x237d0581)
DHCPOFFER of 192.168.1.3 from 192.168.1.1
DHCPACK of 192.168.1.3 from 192.168.1.1
bound to 192.168.1.3 -- renewal in 35209 seconds.
ian072@sundown:~$